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

Florian Festi notifications at github.com
Mon Sep 26 15:03:59 UTC 2022


OK, I think I have an idea what's wrong here:

If `%install` is encountered after/as part of `%prep` debuginfo does not work. The reason is that `%prep` is first parsed and `%setup` - which is setting `%buildsubdir` - is only executed after the whole `%prep` section is processed and all macros are expanded.
As a result `%buildsubdir` is not yet set when `%install` is encountered and expanded into the debuginfo magic. But the debuginfo foo checks for `%buildsubdir` as it probably needs that.

So, `%generate_buildrequires` is an innocent bystander here and the golang-x-net package relied on the broken behavior to "switch off" debuginfo creation.

Two things are to fix here:

- Bringing sanity to the debuginfo hacks (#2204)
- Turn `%setup` and `%patch` at least into proper internal macros (yes, we tried before and it's not that easy)

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

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


More information about the Rpm-maint mailing list