--- a/Makefile Mon Aug 08 17:26:04 2022 +0200
+++ b/Makefile Mon Aug 08 17:27:49 2022 +0200
@@ -203,9 +203,11 @@
packaging_targets := \
rhel7 \
rhel8 \
+ rhel9 \
deb \
docker-rhel7 \
docker-rhel8 \
+ docker-rhel9 \
docker-debian-bullseye \
docker-debian-buster \
docker-debian-stretch \
--- a/contrib/packaging/Makefile Mon Aug 08 17:26:04 2022 +0200
+++ b/contrib/packaging/Makefile Mon Aug 08 17:27:49 2022 +0200
@@ -15,7 +15,8 @@
RHEL_RELEASES := \
7 \
- 8
+ 8 \
+ 9
# Build a Python for these RHEL (and derivatives) releases.
RHEL_WITH_PYTHON_RELEASES :=
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/packaging/docker/rhel9 Mon Aug 08 17:27:49 2022 +0200
@@ -0,0 +1,25 @@
+FROM rockylinux/rockylinux:9
+
+RUN groupadd -g %GID% build && \
+ useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build
+
+RUN dnf install 'dnf-command(config-manager)' -y
+# crb repository is necessary for docutils
+RUN dnf config-manager --set-enabled crb
+
+RUN yum install -y \
+ gcc \
+ gettext \
+ make \
+ python3-devel \
+ python3-docutils \
+ rpm-build
+
+# For creating repo meta data
+RUN yum install -y createrepo
+
+# For rust extensions
+RUN yum install -y cargo
+
+# avoid incorrect docker image permissions on /tmp preventing writes by non-root users
+RUN chmod 1777 /tmp