Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
provision: Upgrade support for Fedora to version 33.
Ganesh Pawarc1628e7605c5
diff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.mdindex ed9313aac8d..d0ebc11445c 100644--- a/docs/development/setup-advanced.md+++ b/docs/development/setup-advanced.md@@ -15,7 +15,7 @@ that's running one of:* Ubuntu 20.04 Focal, 18.04 Bionic* Debian 10 Buster* CentOS 7 (beta)-* Fedora 29 (beta)+* Fedora 33 (beta)* RHEL 7 (beta)You can just run the Zulip provision script on your machine.diff --git a/scripts/lib/setup-yum-repo b/scripts/lib/setup-yum-repoindex 8207366f85c..e1f736d28dd 100755--- a/scripts/lib/setup-yum-repo+++ b/scripts/lib/setup-yum-repo@@ -53,6 +53,7 @@ elif [ "$is_rhel" = true ]; thenyum localinstall -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-latest-x86_64/pgdg-redhat10-10-2.noarch.rpmyum localinstall -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpmelse- # TODO only fedora29 for now- dnf install -y "https://download.postgresql.org/pub/repos/yum/$PGVER/fedora/fedora-29-x86_64/pgdg-fedora$PGVER-$PGVER-4.noarch.rpm"+ # TODO only fedora33 for now+ PGVER=13+ dnf install -y "https://download.postgresql.org/pub/repos/yum/reporpms/F-33-x86_64/pgdg-fedora-repo-latest.noarch.rpm"fidiff --git a/tools/lib/provision.py b/tools/lib/provision.pyindex b332ce64418..730507ee4b8 100755--- a/tools/lib/provision.py+++ b/tools/lib/provision.py@@ -26,7 +26,6 @@ from scripts.lib.zulip_tools import (WARNING,get_dev_uuid_var_path,os_families,- overwrite_symlink,parse_os_release,run_as_root,)@@ -108,8 +107,8 @@ elif vendor == "ubuntu" and os_version == "20.10": # groovyPOSTGRESQL_VERSION = "13"elif vendor == "neon" and os_version == "20.04": # KDE NeonPOSTGRESQL_VERSION = "12"-elif vendor == "fedora" and os_version == "29":- POSTGRESQL_VERSION = "10"+elif vendor == "fedora" and os_version == "33":+ POSTGRESQL_VERSION = "13"elif vendor == "rhel" and os_version.startswith("7."):POSTGRESQL_VERSION = "10"elif vendor == "centos" and os_version == "7":@@ -135,18 +134,7 @@ COMMON_DEPENDENCIES = ["unzip", # Needed for Slack import"crudini", # Used for shell tooling w/ zulip.conf# Puppeteer dependencies from here- "gconf-service",- "libgconf-2-4",- "libgtk-3-0",- "libatk-bridge2.0-0",- "libx11-xcb1",- "libxcb-dri3-0",- "libgbm1",- "libxss1",- "fonts-freefont-ttf",- "libappindicator1","xdg-utils",- "xvfb",# Puppeteer dependencies end here.]@@ -156,6 +144,19 @@ UBUNTU_COMMON_APT_DEPENDENCIES = ["hunspell-en-us","puppet-lint","default-jre-headless", # Required by vnu-jar+ # Puppeteer dependencies from here+ "fonts-freefont-ttf",+ "gconf-service",+ "libappindicator1",+ "libatk-bridge2.0-0",+ "libgbm1",+ "libgconf-2-4",+ "libgtk-3-0",+ "libx11-xcb1",+ "libxcb-dri3-0",+ "libxss1",+ "xvfb",+ # Puppeteer dependencies end here.*THUMBOR_VENV_DEPENDENCIES,]@@ -165,6 +166,17 @@ COMMON_YUM_DEPENDENCIES = ["hunspell-en-US","rubygem-puppet-lint","nmap-ncat",+ "ccache", # Required to build pgroonga from source.+ # Puppeteer dependencies from here+ "at-spi2-atk",+ "GConf2",+ "gtk3",+ "libX11-xcb",+ "libxcb",+ "libXScrnSaver",+ "mesa-libgbm",+ "xorg-x11-server-Xvfb",+ # Puppeteer dependencies end here.*YUM_THUMBOR_VENV_DEPENDENCIES,]@@ -323,13 +335,21 @@ def install_yum_deps(deps_to_install: List[str]) -> None:# Later steps will ensure PostgreSQL is started# Link in tsearch data files- overwrite_symlink(- "/usr/share/myspell/en_US.dic",- f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.dict",+ run_as_root(+ [+ "ln",+ "-nsf",+ "/usr/share/myspell/en_US.dic",+ f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.dict",+ ])- overwrite_symlink(- "/usr/share/myspell/en_US.aff",- f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.affix",+ run_as_root(+ [+ "ln",+ "-nsf",+ "/usr/share/myspell/en_US.aff",+ f"/usr/pgsql-{POSTGRESQL_VERSION}/share/tsearch_data/en_us.affix",+ ])