Skip to content
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

pacific: rpm: drop use of $FIRST_ARG in ceph-immutable-object-cache #42480

Merged
merged 1 commit into from Jul 30, 2021

Conversation

smithfarm
Copy link
Contributor

backport tracker: https://tracker.ceph.com/issues/51836


backport of #42452
parent tracker: https://tracker.ceph.com/issues/51797

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh

The use of $FIRST_ARG was probably required because the SUSE-specific
%service_* rpm macros were playing tricks on the shell positional parameters.
This is bad practice and error-prone, so let's assume that no macros should do
that anymore and hence it's safe to assume that positional parameters remain
unchanged after any rpm macro call.

Thanks to Franck Bui for providing the original patch
926433f that this patch is modeled after.

NOTE: the use of FIRST_ARG had already been eliminated by
926433f but was re-introduced later by
9466d70

Fixes: 9466d70
Fixes: https://tracker.ceph.com/issues/51797
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 1cb84a1)
@smithfarm smithfarm added this to the pacific milestone Jul 25, 2021
@smithfarm smithfarm added the rbd label Jul 25, 2021
@yuriw yuriw merged commit 5a784c8 into ceph:pacific Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants