# HG changeset patch # User Mathias De Mare # Date 1659972469 -7200 # Node ID 2edb41ed6c4990b52d0154af05d565b6870fb5b2 # Parent ccccd5064c6c86b2ac0c495378ecc08845a86be2 contrib: add support for rhel9 diff -r ccccd5064c6c -r 2edb41ed6c49 Makefile --- 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 \ diff -r ccccd5064c6c -r 2edb41ed6c49 contrib/packaging/Makefile --- 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 := diff -r ccccd5064c6c -r 2edb41ed6c49 contrib/packaging/docker/rhel9 --- /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