[Rpm-maint] [rpm-software-management/rpm] %_enable_debug_packages can cause debuginfo on noarch packages (Issue #3115)
Panu Matilainen
notifications at github.com
Tue May 21 09:15:59 UTC 2024
Commit 8535694599ee7f35747d44e2ea0a62dc5e8880e5 hinged the entire debuginfo generation logic around %_enable_debug_packages, including getting it right (disabled) for noarch packages from the platform configuration macros. The problem with that, %_enable_debug_packages is *intended* to be a distro/user configuration knob, whose configuration is read after the platform config. So when a distro explicitly enables sets `%_enable_debug_packages 1` it overrides it even for noarch, causing build failures.
Luckily its easy to work around: add back the ifnarch test to %debug_macro (or comment out %_enable_debug_packages from distro config for now). But this clearly shows that setting this in platform configuration doesn't cut it, we need to rethink our approach. %_enable_debug_packages is this high-level knob where 0 means "never" and 1 means "create when possible/relevant", and we currently interpret as "always" instead.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3115
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3115 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240521/4ce9047d/attachment.html>
More information about the Rpm-maint
mailing list