[Rpm-maint] [rpm-software-management/rpm] Multi-line update-alternatives calls in scriptlets failing with 6.0 beta 1 (Issue #3865)

Adam Williamson notifications at github.com
Fri Jul 18 01:09:23 UTC 2025


AdamWill left a comment (rpm-software-management/rpm#3865)

OK, yeah, if I change fakeroot.spec to look like this:
```
/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
```
and install the resulting package, no errors. The first line has all `\` continuations removed, and extra space characters trimmed. The second line has all `\` continuations removed and extra spaces left in. If I leave *any* `\` character on a line - even only a trailing one:
```
/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 \
```
- then I get the usage message and an error. It definitely seems to be the `\` continuations that are triggering the problem.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3865#issuecomment-3086208790
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3865/3086208790 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250717/10204f4a/attachment.htm>


More information about the Rpm-maint mailing list