Gesendet: Donnerstag, 28. Dezember 2023 um 18:51 Uhr Von: "Jan Engelhardt" <jengelh@inai.de> An: "Sarah Julia Kriesch" <ada.lovelace@gmx.de> Cc: packaging@lists.opensuse.org Betreff: Re: debug files can not be packaged for unicorn
On Thursday 2023-12-28 17:30, Sarah Julia Kriesch wrote:
I hope you all had a nice Christmas!
I have received a request[0] by the Linux Distributions Working Group regarding problems with the package unicorn (only with s390x). Therefore, I wanted to update it also for openSUSE in my home repo as a first step: https://build.opensuse.org/package/show/home:AdaLovelace:branches:Virtualiza... Anyways, I can not add the required debug files. I have added a debug package after the hint for not packaged debug files.
The files are referenced on this way at the moment: %files -n %{name}-debuginfo debugfiles.list %{python3_sitelib}/%{name}/lib/libunicorn.so.2.debug
Questions to be answered before we're even talking about debuginfo:
Why are they duplicating /usr/lib64/libunicorn.so.2 and %{python3_sitelib}/%{name}/lib/libunicorn.so.2
libunicorn.so.2 is arch-dependent, so ought to be in %python3_sitearch not %python3_sitelib.
Also problem:
%files -n %{name}-debuginfo debuginfo.list
that should be %files -n debuginfo -f debuginfo.list, or more specifially, drop the entire thing because debuginfo is all autogenerated.
I have dropped the list now. %{python3_sitearch}/%{name}/lib/libunicorn.so.2.debug seems also not to be the correct path for /usr/lib/debug/usr/lib/python3.11/site-packages/unicorn/lib/libunicorn.so.2.debug. Another question regarding the "debuginfo should be integrated automatically": How can you add this libunicorn.so.2.debug file into the debuginfo package without adding this package into the spec file? Thanks! Best regards, Sarah