-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[3006.x] Make rpms more universal by replacing systemd_* scriptlets with RHEL7/8 styled forward-compatible definitions #66030
[3006.x] Make rpms more universal by replacing systemd_* scriptlets with RHEL7/8 styled forward-compatible definitions #66030
Conversation
Requires a test review and updates to: The upgrades and downgrades need to:
Though, technically, if you downgrade to one of the older versions (v3006.6 and earlier), this test will fail because the RPMs used for older versions haven't been updated yet. So, this may be a case of ensuring it is setup for upgrade/downgrade service validation where the version is >3006.6 ?
|
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.
Don't know enough to validate the spec file changes.
@dwoz or @dmurphy18 ?
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.
need to check comments for post
Looked up the actual code for the macros being replaced Made sure we're doing the proper if statements Cleaned up the tests a little
a538e7e
to
fbfba41
Compare
What does this PR do?
Uses systemd_* scriptlet definitions from RHEL 7/8 that are forward-compatible with RHEL 9, allowing for the RPMs to be built on newer systems while the built artifacts are still compatible with RHEL 7/8/9.
What issues does this PR fix or reference?
Fixes: #65987
Previous Behavior
systemd_*
scriptlet definitions were not compatible with RHEL 7/8 systems (including Photon OS 3, Photon OS 4, AlmaLinux 8, etc.).New Behavior
systemd_*
scriptlet definitions were used from RHEL 7/8 build macros, allowing for more universal compatibility on RHEL 7/8/9 systems, regardless of OS that package is built on. Definitions have been tested on RHEL 9 systemd and work as expected.Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
Yes
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.