[Rpm-maint] [rpm-software-management/rpm] Incorrect parsing of `%description` block (Issue #4121)
Panu Matilainen
notifications at github.com
Thu Feb 19 08:46:12 UTC 2026
pmatilai left a comment (rpm-software-management/rpm#4121)
In spec files, `#` at the start of the line is considered a comment, as per https://rpm.org/docs/6.0.x/manual/spec.html#comments
That behavior is as old as rpm, but, I think it's a fair question to ask whether comments have any place in a section like `%description` that is 100% human readable content by definition. This ticket seems to suggest it's not...
The gotcha for changing the behavior is cases like this:
```
%description
Mumble dumble
# do the prep foo here
%prep
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4121#issuecomment-3925672225
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4121/3925672225 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260219/27a8cf86/attachment-0001.htm>
More information about the Rpm-maint
mailing list