mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
provision: Add build-pgroonga and use it for Fedora.
This commit is contained in:
17
scripts/lib/build-pgroonga
Executable file
17
scripts/lib/build-pgroonga
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
|
PGROONGA_VERSION="2.1.6"
|
||||||
|
|
||||||
|
# Currently only tested for Fedora systems.
|
||||||
|
|
||||||
|
yum install -y groonga-devel msgpack-devel
|
||||||
|
cd "$(mktemp -d)"
|
||||||
|
|
||||||
|
wget https://packages.groonga.org/source/pgroonga/pgroonga-"$PGROONGA_VERSION".tar.gz
|
||||||
|
tar xvf pgroonga-"$PGROONGA_VERSION".tar.gz
|
||||||
|
cd pgroonga-"$PGROONGA_VERSION"
|
||||||
|
|
||||||
|
make HAVE_MSGPACK=1
|
||||||
|
make install
|
||||||
@@ -2,6 +2,8 @@
|
|||||||
set -x
|
set -x
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Has only been tested on Red Hat systems; gmake is wrong for others.
|
||||||
|
|
||||||
cd "$(mktemp -d)"
|
cd "$(mktemp -d)"
|
||||||
|
|
||||||
git clone https://github.com/zulip/tsearch_extras
|
git clone https://github.com/zulip/tsearch_extras
|
||||||
|
|||||||
@@ -279,8 +279,7 @@ def install_yum_deps(deps_to_install, retry=False):
|
|||||||
if vendor == "fedora":
|
if vendor == "fedora":
|
||||||
# Compile PGroonga from scratch, since pgroonga upstream
|
# Compile PGroonga from scratch, since pgroonga upstream
|
||||||
# doesn't provide Fedora packages.
|
# doesn't provide Fedora packages.
|
||||||
print("TODO: compile PGroonga for", codename)
|
run(["sudo", "./scripts/lib/build-pgroonga"])
|
||||||
exit(1)
|
|
||||||
run(["sudo", "-H", "/usr/%s/bin/postgresql-%s-setup" % (postgres_dir, POSTGRES_VERSION), "initdb"])
|
run(["sudo", "-H", "/usr/%s/bin/postgresql-%s-setup" % (postgres_dir, POSTGRES_VERSION), "initdb"])
|
||||||
# Use vendored pg_hba.conf instead
|
# Use vendored pg_hba.conf instead
|
||||||
pg_hba_conf = "/var/lib/pgsql/%s/data/pg_hba.conf" % (POSTGRES_VERSION,)
|
pg_hba_conf = "/var/lib/pgsql/%s/data/pg_hba.conf" % (POSTGRES_VERSION,)
|
||||||
|
|||||||
Reference in New Issue
Block a user