Repository navigation
umbrella: ceph.spec.in: add update-alternatives as runtime dep and correct macro call - #69852
Merged
Merged
Conversation
a37b5b5 added %preun scriptlets that use ${_sbindir}, which is shell syntax rather than an rpm macro, so it expands to empty at run time and the scriptlet runs "/update-alternatives", failing on uninstall/upgrade with: /var/tmp/rpm-tmp.K1fvm3: line 2: /update-alternatives: No such file or directory error: %preun(ceph-osd-crimson-2:20.3.0-5054.g33c1d671.el9.x86_64) scriptlet failed, exit status 127 Error in PREUN scriptlet in rpm package ceph-osd-crimson. use %{_sbindir}, like the %posttrans --install lines already do, so it expands to /usr/sbin/update-alternatives at build time. Fixes: https://tracker.ceph.com/issues/77323 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit b571051)
ceph-osd-crimson and ceph-osd-classic call update-alternatives in their %posttrans and %preun scriptlets but don't depend on it. declare it as a scriptlet dependency so the binary is there when they run. Fixes: https://tracker.ceph.com/issues/77323 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 7fc3a9e)
Contributor
Author
|
@djgalloway and @phlogistonjohn hi David and John, do you mind reviewing this backport as well? |
phlogistonjohn
approved these changes
Jul 5, 2026
Contributor
|
This PR has been added to wip-yuri-testing-20260724.161317-umbrella. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/77360
backport of #69408
parent tracker: https://tracker.ceph.com/issues/77323
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh