-
Notifications
You must be signed in to change notification settings - Fork 5
Add systemd-rpm-macros to Docker build images #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This change adds the systemd-rpm-macros package to all RHEL-based and OpenSUSE-based Docker build images. This is required for proper RPM package uninstallation on Amazon Linux 2023 and other systemd-based RHEL distributions, as the %systemd_preun macro in the RPM spec files requires this package to be available in the build environment. Fixes #15 Related to: - ProxySQL issue sysown/proxysql#5335 - ProxySQL PR sysown/proxysql#5336
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates all active RHEL-like (CentOS Stream, AlmaLinux, Amazon Linux, Fedora) and openSUSE build Docker images to include systemd-rpm-macros, ensuring %systemd_preun and related macros are available during RPM build/uninstall operations.
Changes:
- Added
systemd-rpm-macrosto all yum/dnf/zypper-based build-tool install steps for RHEL-family images (CentOS Stream, AlmaLinux, Amazon Linux, Fedora). - Added
systemd-rpm-macrosto openSUSE Leap 15.6 and 16.0 build images viazypper. - Updated both experimental Amazon Linux 2 and Amazon Linux 2023 build images to include
systemd-rpm-macrosin their base toolchains.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| build-images/experimental/build-amazon2023/Dockerfile | Adds systemd-rpm-macros to the Amazon Linux 2023 yum-installed build toolchain to support systemd RPM macros. |
| build-images/experimental/build-amazon2/Dockerfile | Adds systemd-rpm-macros to the Amazon Linux 2 yum-installed build toolchain. |
| build-images/build-opensuse16/Dockerfile | Extends the zypper-installed compiler/toolchain set with systemd-rpm-macros on openSUSE Leap 16.0. |
| build-images/build-opensuse15/Dockerfile | Extends the zypper-installed compiler/toolchain set with systemd-rpm-macros on openSUSE Leap 15.6. |
| build-images/build-fedora43/Dockerfile | Adds systemd-rpm-macros to the Fedora 43 dnf-installed build tools. |
| build-images/build-fedora42/Dockerfile | Adds systemd-rpm-macros to the Fedora 42 dnf-installed build tools. |
| build-images/build-fedora41/Dockerfile | Adds systemd-rpm-macros to the Fedora 41 dnf-installed build tools. |
| build-images/build-centos9/Dockerfile | Adds systemd-rpm-macros to the CentOS Stream 9 yum-installed build tools. |
| build-images/build-centos10/Dockerfile | Adds systemd-rpm-macros to the CentOS Stream 10 yum-installed build tools. |
| build-images/build-almalinux9/Dockerfile | Adds systemd-rpm-macros to the AlmaLinux 9 yum-installed build tools. |
| build-images/build-almalinux8/Dockerfile | Adds systemd-rpm-macros to the AlmaLinux 8 yum-installed build tools. |
| build-images/build-almalinux10/Dockerfile | Adds systemd-rpm-macros to the AlmaLinux 10 yum-installed build tools. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📝 WalkthroughWalkthroughThe PR adds the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This PR adds the systemd-rpm-macros package to all RHEL-based and OpenSUSE-based Docker build images. This is required for proper RPM package uninstallation on Amazon Linux 2023 and other systemd-based RHEL distributions, as the %systemd_preun macro in the RPM spec files requires this package to be available in the build environment.
Changes
Related Issues
The changes are minimal and focused, only adding the required dependency without modifying any other functionality. All Dockerfiles maintain their existing structure and formatting.
Summary by CodeRabbit