summaryrefslogtreecommitdiff
path: root/ci/fedora.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/fedora.sh')
-rwxr-xr-xci/fedora.sh19
1 files changed, 10 insertions, 9 deletions
diff --git a/ci/fedora.sh b/ci/fedora.sh
index b7d29fe..314635b 100755
--- a/ci/fedora.sh
+++ b/ci/fedora.sh
@@ -4,6 +4,7 @@ set -ex
yum -y install \
clang \
+ docbook5-style-xsl \
gcc \
gettext \
iproute \
@@ -12,18 +13,18 @@ yum -y install \
make \
pkg-config
-yum -y install libidn2-devel docbook5-style-xsl || true
-
-# supported since CentOS 7 (CentOS 6 don't have python 3.5 meson dependency)
-if [ "$(basename $0)" = "centos.sh" ]; then
- # CentOS 7: provided by epel
+if [ "$(basename $0)" = "centos.sh" ] || [ "$(basename $0)" = "rockylinux.sh" ]; then
+ # CentOS Linux 7: libidn2-devel, meson, ninja-build are provided by EPEL
yum -y install epel-release
- # CentOS >= 8 provided by PowerTools (but epel still needed)
+ # Enable CRB (formerly PowerTools) on CentOS/RHEL/Rocky >= 8 via EPEL
+ # CentOS/RHEL/Rocky >= 8: meson and ninja-build are provided by CRB
if [ "$DISTRO_VERSION" != 7 ]; then
- yum -y install dnf-plugins-core
- yum config-manager --set-enabled powertools
+ # Update epel-release because CentOS Stream 9 ships 9-2.el9,
+ # which is unfortunately too old to provide the crb command.
+ dnf -y install 'dnf-command(config-manager)' epel-release
+ crb enable
fi
fi
-yum -y install meson ninja-build
+yum -y install libidn2-devel meson ninja-build