[Rpm-maint] [rpm-software-management/rpm] debuginfo generator keeps debug files in buildroot if %excludes are listen in a noarch subpackage (#1094)

Petr Pisar notifications at github.com
Tue Mar 3 14:52:23 UTC 2020


I'm refactoring perl.spec and found a nuisance the debuginfo generator. The new form of perl.spec will be:

~~~~
# fullarch main package
%files

# noarch subpackage
%files foo

# full arch subpackge
%if %{condition}
%files bar
%{_libdir}/bar.so
%else
%exclude %{_libdir}/bar.so
%endif
~~~~

If the %condition is false, the build fails with an error that /usr/lib/debug/%{_libdir}/bar.so-%{VRA}.debug is installed but not packaged. The error message looks like the one in [https://github.com/rpm-software-management/rpm/issues/278]. I must emphasize that the %{_libdir}/bar.so library is indeed excluded and it's not included in any binary package.

I believe the reason is that if %condition is false, then the %exclude is placed to the previous noarch subpackage and the debuginfo generator probably ignores %excludes in noarch subpackages.

Would it be possible to improve the debuginfo generator to recognize the %excludes in noarch subpackages and delete corresponding debug files?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1094
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200303/17e7004e/attachment.html>


More information about the Rpm-maint mailing list