[Rpm-maint] [rpm-software-management/rpm] %generate_buildrequires should not trigger the debuginfo machinery (Issue #1870)

Panu Matilainen notifications at github.com
Mon Sep 26 13:38:50 UTC 2022


Yup. The reason I remembered debuginfo depending on %build section is easily demonstrated with the golang example too (after removing the line to disable debuginfo): 

1. move %generate_buildrequires before %prep, debuginfo disappears
2. add (an empty) %build section between %prep and %install, and debuginfo reappears
3. remove remove the empty %build section, debuginfo disappears
4. move the %check section before %install, debuginfo reappears

So the ugly hack of debuginfo enabling (see #2204) relies on some rather subtle spec parser quirks, and does not work after %prep because that's processed differently from other sections, ditto for preamble. 

And as noted, this is an arch-specific package so debuginfo *should* be generated for it, unless disabled. But I guess debug extraction still doesn't work for golang (?) so disabling it for this is the right thing to do, regardless of all the weird stuff that the spec parser is throwing at you.

This is one weird ticket :laughing: 

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

Message ID: <rpm-software-management/rpm/issues/1870/1258058605 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220926/a8ff423d/attachment-0001.html>


More information about the Rpm-maint mailing list