Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

provision: Replace Fedora 38 support with Fedora 43.

Aman Agrawal75afa9c055a4
diff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.md
index e47358ae37d..1fe5873abe7 100644
--- a/docs/development/setup-advanced.md
+++ b/docs/development/setup-advanced.md
@@ -22,7 +22,7 @@ are:
- Ubuntu 22.04, 24.04, 26.04
- Debian 12, 13
- CentOS 7 (beta)
-- Fedora 38 (beta)
+- Fedora 43 (beta)
- RHEL 7 (beta)
**Note**: You should not use the `root` user to run the installation.
diff --git a/scripts/lib/build-groonga b/scripts/lib/build-groonga
deleted file mode 100755
index a659967c510..00000000000
--- a/scripts/lib/build-groonga
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env bash
-set -euxo pipefail
-
-version="16.0.1"
-sha256=d7c5c2fdd9f3734c00392e3da7c7dbbd9b28e3801f965458ba79c72e7ae581e1
-
-tmpdir="$(mktemp -d)"
-trap 'rm -r "$tmpdir"' EXIT
-cd "$tmpdir"
-tarball="groonga-$version.tar.gz"
-curl -fLO --retry 3 "https://github.com/groonga/groonga/releases/download/v$version/$tarball"
-sha256sum -c <<<"$sha256 $tarball"
-tar -xzf "$tarball"
-cd "groonga-$version"
-
-./configure --prefix=/usr
-make -j "$(nproc)"
-make install
diff --git a/scripts/lib/setup-yum-repo b/scripts/lib/setup-yum-repo
index 3ddfd7efe8d..2a12d279806 100755
--- a/scripts/lib/setup-yum-repo
+++ b/scripts/lib/setup-yum-repo
@@ -36,13 +36,13 @@ fi
yum update -y
-# "Development Tools" is the equivalent of build-essential
-yum groupinstall -y "Development Tools"
-
RHVER="$(rpm -qf --queryformat="%{VERSION}" /etc/redhat-release)"
RHARCH="$(rpm -qf --queryformat="%{ARCH}" /etc/redhat-release)"
PGVER=10
if [ "$is_centos" = true ]; then
+ # "Development Tools" is the equivalent of build-essential
+ yum groupinstall -y "Development Tools"
+
# PostgreSQL $PGVER
yum localinstall -y "https://yum.postgresql.org/$PGVER/redhat/rhel-$RHVER-$RHARCH/pgdg-redhat-repo-latest.noarch.rpm"
@@ -50,9 +50,13 @@ if [ "$is_centos" = true ]; then
# https://pgroonga.github.io/install/centos.html
yum localinstall -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
elif [ "$is_rhel" = true ]; then
+ yum groupinstall -y "Development Tools"
yum localinstall -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-latest-x86_64/pgdg-redhat10-10-2.noarch.rpm
yum localinstall -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
else
+ # dnf5 (Fedora 41+) dropped the `groupinstall` alias and no longer
+ # resolves the "Development Tools" display name, so install by group ID.
+ dnf group install -y development-tools
# TODO make the postgres version a variable.
PGVER=13
dnf install -y "https://download.postgresql.org/pub/repos/yum/reporpms/F-$RHVER-x86_64/pgdg-fedora-repo-latest.noarch.rpm"
diff --git a/tools/lib/provision.py b/tools/lib/provision.py
index ac8cde6a1bb..270a1c2f182 100755
--- a/tools/lib/provision.py
+++ b/tools/lib/provision.py
@@ -84,8 +84,8 @@ elif vendor == "ubuntu" and os_version == "24.04": # noble
POSTGRESQL_VERSION = "16"
elif vendor == "ubuntu" and os_version == "26.04": # resolute
POSTGRESQL_VERSION = "18"
-elif vendor == "fedora" and os_version == "38":
- POSTGRESQL_VERSION = "15"
+elif vendor == "fedora" and os_version == "43":
+ POSTGRESQL_VERSION = "17"
elif vendor == "rhel" and os_version.startswith("7."):
POSTGRESQL_VERSION = "10"
elif vendor == "centos" and os_version == "7":
@@ -151,7 +151,6 @@ COMMON_YUM_DEPENDENCIES = [
# Puppeteer dependencies end here.
]
-BUILD_GROONGA_FROM_SOURCE = False
BUILD_PGROONGA_FROM_SOURCE = False
if (vendor == "debian" and os_version == "13") or (vendor == "ubuntu" and os_version == "26.04"):
# For platforms without a PGroonga release, we need to build it
@@ -197,10 +196,22 @@ elif "fedora" in os_families():
f"postgresql{POSTGRESQL_VERSION}",
f"postgresql{POSTGRESQL_VERSION}-devel",
# Needed to build PGroonga from source
+ "groonga-devel",
"msgpack-devel",
+ # PGroonga compiles against <xxhash.h>; on systems where
+ # `xxhash-libs` is already pulled in transitively (e.g. by
+ # blosc2 / pyarrow) but `xxhash-devel` is not, meson detects
+ # libxxhash via pkg-config and skips its vendored fallback,
+ # so we have to provide the header ourselves.
+ "xxhash-devel",
+ "meson",
+ # Provides /usr/lib/rpm/redhat/redhat-hardened-cc1 and
+ # redhat-annobin-cc1 spec files referenced by the CFLAGS that
+ # PostgreSQL's pg_config exports; without it the PGroonga
+ # compile fails with "cannot read spec file".
+ "redhat-rpm-config",
*VENV_DEPENDENCIES,
]
- BUILD_GROONGA_FROM_SOURCE = True
BUILD_PGROONGA_FROM_SOURCE = True
if "fedora" in os_families():
@@ -230,8 +241,6 @@ def install_system_deps() -> None:
# For some platforms, there aren't published PGroonga
# packages available, so we build them from source.
- if BUILD_GROONGA_FROM_SOURCE:
- run_as_root(["./scripts/lib/build-groonga"])
if BUILD_PGROONGA_FROM_SOURCE:
run_as_root(["./scripts/lib/build-pgroonga"])
@@ -361,11 +370,6 @@ def main(options: argparse.Namespace) -> NoReturn:
with open("scripts/lib/setup-yum-repo", "rb") as fb:
sha_sum.update(fb.read())
- # hash the content of build-pgroonga if Groonga is built from source
- if BUILD_GROONGA_FROM_SOURCE:
- with open("scripts/lib/build-groonga", "rb") as fb:
- sha_sum.update(fb.read())
-
# hash the content of build-pgroonga if PGroonga is built from source
if BUILD_PGROONGA_FROM_SOURCE:
with open("scripts/lib/build-pgroonga", "rb") as fb: