Skip to content

umbrella: ceph.spec.in: add update-alternatives as runtime dep and correct macro call - #69852

Merged
batrick merged 2 commits into
ceph:umbrellafrom
tchaikov:wip-77360-umbrella
Aug 5, 2026
Merged

batrick merged 2 commits into
ceph:umbrellafrom
tchaikov:wip-77360-umbrella

Conversation

@tchaikov

@tchaikov tchaikov commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

tchaikov added 2 commits July 1, 2026 10:11
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)
@tchaikov
tchaikov requested a review from a team as a code owner July 1, 2026 02:11
@tchaikov tchaikov added this to the umbrella milestone Jul 1, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 1, 2026
@tchaikov

tchaikov commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

@djgalloway and @phlogistonjohn hi David and John, do you mind reviewing this backport as well?

@yuriw

yuriw commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20260724.161317-umbrella.

@lee-j-sanders

Copy link
Copy Markdown
Member

@batrick batrick removed the releng-audit-pass Release engineering: passed backport verification audit. label Aug 5, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 5, 2026
@batrick batrick modified the milestones: umbrella, v21.1.1 Aug 5, 2026
@batrick
batrick merged commit f9f9e20 into ceph:umbrella Aug 5, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build/ops needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants