Am 28.12.23 um 19:11 schrieb Ben Greiner:
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: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.
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/unicor...
This must be patched out for a proper rpm package.
- Ben
It's actually super easy, we just need to define LIBUNICORN_PATH during the build and the library is not goint to be built twice. The python code will then look for the library in the system path: https://github.com/unicorn-engine/unicorn/blob/master/bindings/python/unicor... https://build.opensuse.org/request/show/1135534