provision: Build tsearch_extras from source for CentOS support.

This commit is contained in:
rht
2018-12-14 02:25:25 +00:00
committed by Tim Abbott
parent 448303b3f0
commit 25a8dbef11
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -x
set -e
cd "$(mktemp -d)"
git clone https://github.com/zulip/tsearch_extras
(cd tsearch_extras && gmake && make install)
# Link installed hunspell-en-US to tsearch data
ln -sf /usr/share/myspell/en_US.dic /usr/pgsql-10/share/tsearch_data/en_us.dict
ln -sf /usr/share/myspell/en_US.aff /usr/pgsql-10/share/tsearch_data/en_us.affix

View File

@@ -231,7 +231,8 @@ def install_apt_deps():
print(WARNING + "CentOS support is still experimental.")
run(["sudo", "./scripts/lib/setup-yum-repo"])
run(["sudo", "yum", "install", "-y"] + deps_to_install)
# TODO tsearch-extras must be compiled from scratch
# Compile tsearch-extras from scratch
run(["sudo", "./scripts/lib/build-tsearch-extras"])
else:
# setup-apt-repo does an `apt-get update`
run(["sudo", "./scripts/lib/setup-apt-repo"])