[Rpm-maint] [rpm-software-management/rpm] I is currently not possible to completely disable rpm own debuginfo generation code (Issue #3057)

Simo Sorce notifications at github.com
Tue Apr 23 18:19:21 UTC 2024


**Describe the bug**
I have spent some time trying to create a completely custom debuginfo file for a package I maintain.

Currently it is not possible to do so. Even disabling the custom package template and the whole debug_package machinery via `%global debug_package %{nil}` if rpm build see a package named `%{name}-debuginfo` it will always interfere with the build process of that package. 

Namely the code will disregard any file list provide by either the %files section or via __find_debuginfo script and will instead process to reconstruct a new file list by searching for files named *-%{name}-%version}.%{release}.debug


**To Reproduce**
Steps to reproduce the behavior:
1. Disable debug package creation
2. Add an explicit %{name}-debuginfo package
3. Try to include arbitrary files in it

Please link or attach the packages or spec files involved.

**Expected behavior**
When debug package creation is disabled the "main" debuginfo package file lists should not be tampered with.

**Additional context**
At the moment the only workaround I found was to create a fake subpackage and debuginfo subpackage and that allows me to include whatever content I need, but this is not a good solution.


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

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


More information about the Rpm-maint mailing list