Skip to content

Conversation

@renecannao
Copy link
Collaborator

@renecannao renecannao commented Feb 3, 2026

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

  • Added systemd-rpm-macros to RHEL-based Dockerfiles using yum
  • Added systemd-rpm-macros to OpenSUSE-based Dockerfiles using zypper
  • Updated both regular and experimental Amazon Linux Dockerfiles

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

  • Chores
    • Updated build dependencies across all supported Linux distributions (AlmaLinux, CentOS, Fedora, OpenSUSE, Amazon Linux) to enhance build environment configuration. Changes apply to all supported platform versions and variants.

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
@renecannao
Copy link
Collaborator Author

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

Copilot AI left a 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-macros to all yum/dnf/zypper-based build-tool install steps for RHEL-family images (CentOS Stream, AlmaLinux, Amazon Linux, Fedora).
  • Added systemd-rpm-macros to openSUSE Leap 15.6 and 16.0 build images via zypper.
  • Updated both experimental Amazon Linux 2 and Amazon Linux 2023 build images to include systemd-rpm-macros in 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.

@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 2026

📝 Walkthrough

Walkthrough

The PR adds the systemd-rpm-macros package to the build dependencies across 12 Docker build image Dockerfiles spanning CentOS, AlmaLinux, Fedora, OpenSUSE, and Amazon Linux distributions. This change provides macro support required for proper RPM package uninstallation.

Changes

Cohort / File(s) Summary
RHEL-based distributions
build-images/build-centos9/Dockerfile, build-images/build-centos10/Dockerfile, build-images/build-almalinux8/Dockerfile, build-images/build-almalinux9/Dockerfile, build-images/build-almalinux10/Dockerfile
Added systemd-rpm-macros to yum package installation list for build dependencies.
Fedora distributions
build-images/build-fedora41/Dockerfile, build-images/build-fedora42/Dockerfile, build-images/build-fedora43/Dockerfile
Added systemd-rpm-macros to dnf package installation list for build dependencies.
OpenSUSE distributions
build-images/build-opensuse15/Dockerfile, build-images/build-opensuse16/Dockerfile
Added systemd-rpm-macros to zypper package installation list for build dependencies.
Experimental distributions
build-images/experimental/build-amazon2/Dockerfile, build-images/experimental/build-amazon2023/Dockerfile
Added systemd-rpm-macros to yum package installation list for build dependencies.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~10 minutes

Poem

🐰 A macro so fine, systemd-rpm in line,
Across twelve Dockerfiles, the dependencies align,
From CentOS to Fedora, OpenSUSE's care,
RPM uninstalls smooth everywhere,
One hop, one change, building with flair! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'Add systemd-rpm-macros to Docker build images' directly and clearly describes the main change: adding the systemd-rpm-macros package to build image Dockerfiles.
Linked Issues check ✅ Passed All required Dockerfiles have been updated to add systemd-rpm-macros: RHEL-based (centos9/10, almalinux8/9/10, fedora41/42/43) and OpenSUSE-based (opensuse15/16), plus experimental Amazon Linux images, fully addressing issue #15 requirements.
Out of Scope Changes check ✅ Passed All changes are in-scope: only the addition of systemd-rpm-macros to existing yum/zypper install commands across all specified build image Dockerfiles, with no unrelated modifications or refactoring.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/systemd-rpm-macros

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build Images Need systemd-rpm-macros for Proper RPM Uninstall Support

2 participants