diff --git a/scripts/lib/build-pgroonga b/scripts/lib/build-pgroonga new file mode 100755 index 0000000000..d6980000ff --- /dev/null +++ b/scripts/lib/build-pgroonga @@ -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 diff --git a/scripts/lib/build-tsearch-extras b/scripts/lib/build-tsearch-extras index 72d6cabf4e..f569104ea0 100755 --- a/scripts/lib/build-tsearch-extras +++ b/scripts/lib/build-tsearch-extras @@ -2,6 +2,8 @@ set -x set -e +# Has only been tested on Red Hat systems; gmake is wrong for others. + cd "$(mktemp -d)" git clone https://github.com/zulip/tsearch_extras diff --git a/tools/lib/provision.py b/tools/lib/provision.py index 7b465ea9bd..c1e5ec2876 100755 --- a/tools/lib/provision.py +++ b/tools/lib/provision.py @@ -279,8 +279,7 @@ def install_yum_deps(deps_to_install, retry=False): if vendor == "fedora": # Compile PGroonga from scratch, since pgroonga upstream # doesn't provide Fedora packages. - print("TODO: compile PGroonga for", codename) - exit(1) + run(["sudo", "./scripts/lib/build-pgroonga"]) run(["sudo", "-H", "/usr/%s/bin/postgresql-%s-setup" % (postgres_dir, POSTGRES_VERSION), "initdb"]) # Use vendored pg_hba.conf instead pg_hba_conf = "/var/lib/pgsql/%s/data/pg_hba.conf" % (POSTGRES_VERSION,)