[Rpm-maint] [rpm-software-management/rpm] Incorrect parsing of `%description` block (Issue #4121)
Panu Matilainen
notifications at github.com
Thu Mar 5 08:20:31 UTC 2026
pmatilai left a comment (rpm-software-management/rpm#4121)
Yes, that's exactly what I mean by complicated rules. It might not seem that way, but it is in the realm of rpm spec parser.
That said, that rule would seem to be applicable to *all* spec sections. Scriptlets are nowadays much rarer than they used to be, but this was a classic back in the day:
```
# run ldconfig after install
%post -p /sbin/ldconfig
# run ldconfig after uninstall
%postun -p /sbin/ldconfig
```
On regular /bin/sh scriptlets the shell would ignore the comment that ended up in the wrong scriptlet, but ldconfig complained about this unexpected garbage.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4121#issuecomment-4003215860
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4121/4003215860 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260305/486d4b44/attachment-0001.htm>
More information about the Rpm-maint
mailing list