Am 28.12.23 um 18:51 schrieb Jan Engelhardt:
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:Virtualization/unicorn
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.



Actually the bindings themselves seem to be pure python, they just have a very quirky way of shipping the shared library within the wheel and loading it via ctypes from the sitelib.
https://github.com/unicorn-engine/unicorn/blob/master/bindings/python/unicorn/unicorn.py

This must be patched out for a proper rpm package.

- Ben