[Rpm-maint] [rpm-software-management/rpm] Multi-line update-alternatives calls in scriptlets failing with 6.0 beta 1 (Issue #3865)
Zbigniew Jędrzejewski-Szmek
notifications at github.com
Fri Jul 18 09:07:03 UTC 2025
keszybz left a comment (rpm-software-management/rpm#3865)
execsnoop says:
`alternatives 1387515 1387511 0 /usr/sbin/alternatives --install /usr/bin/fakeroot fakeroot /usr/bin/fakeroot-tcp 50 --slave /usr/bin/faked faked /usr/bin/faked-tcp --slave /usr/lib64/libfakeroot/libfakeroot-0.so libfakeroot.so /usr/lib64/libfakeroot/libfakeroot-tcp.so`
`alternatives 1387516 1387511 0 /usr/sbin/alternatives --install /usr/bin/fakeroot fakeroot /usr/bin/fakeroot-sysv 40 --slave /usr/bin/faked faked /usr/bin/faked-sysv --slave /usr/lib64/libfakeroot/libfakeroot-0.so libfakeroot.so /usr/lib64/libfakeroot/libfakeroot-sysv.so \`
The source in the spec file looks like this
```rpm
/usr/sbin/alternatives --install "%{_bindir}/fakeroot" fakeroot \
"%{_bindir}/fakeroot-tcp" 50 \
--slave %{_bindir}/faked faked %{_bindir}/faked-tcp \
--slave %{_libdir}/libfakeroot/libfakeroot-0.so libfakeroot.so %{_libdir}/libfakeroot/libfakeroot-tcp.so \
/usr/sbin/alternatives --install "%{_bindir}/fakeroot" fakeroot \
"%{_bindir}/fakeroot-sysv" 40 \
--slave %{_bindir}/faked faked %{_bindir}/faked-sysv \
--slave %{_libdir}/libfakeroot/libfakeroot-0.so libfakeroot.so %{_libdir}/libfakeroot/libfakeroot-sysv.so \
```
My guess is that the whitespace is trimmed from the section and then the last continuation symbol is not handled properly.
Tested with `rpm-5.99.91-1.fc43.x86_64`.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3865#issuecomment-3088675151
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3865/3088675151 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250718/b22a749b/attachment.htm>
More information about the Rpm-maint
mailing list