Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
None
-
6.4.2
-
None
Description
Shiboken.abi3.so should be linked to the install location of libshiboken6.abi3.so.6.4 which is $prefix/lib/
currently Shiboken.abi3.so is linked to the build tree
this is on nixos linux, where we apply some patches to the build system to fix include paths. i dont know if this bug also shows in other build environments
maybe a bug in sources/shiboken6/shibokenmodule/CMakeLists.txt
target_link_libraries(shibokenmodule PUBLIC libshiboken)
create_generator_target(shibokenmodule)
qfp_strip_library("shibokenmodule")
install(TARGETS shibokenmodule DESTINATION ${PYTHON_SITE_PACKAGES}/shiboken6)
the build tree is in /build/pyside-setup-opensource-src-6.4.2/sources/shiboken6/build
$ ldd Shiboken.abi3.so | grep /build
libshiboken6.abi3.so.6.4 => /build/pyside-setup-opensource-src-6.4.2/sources/shiboken6/build/libshiboken/libshiboken6.abi3.so.6.4 (0x00007ffff7dfc000)
$ patchelf Shiboken.abi3.so --print-rpath | tr : $'\n'
/build/pyside-setup-opensource-src-6.4.2/sources/shiboken6/build/libshiboken
/nix/store/ng1pjxs7yzwb8nkxc4iprqaasxjjv3nl-shiboken6-6.4.2/lib64
/nix/store/ng1pjxs7yzwb8nkxc4iprqaasxjjv3nl-shiboken6-6.4.2/lib
/nix/store/yzjgl0h6a3qh1mby405428f16xww37h0-glibc-2.35-224/lib
workaround for nixos linux
patchelf Shiboken.abi3.so --shrink-rpath --allowed-rpath-prefixes /nix/store patchelf Shiboken.abi3.so --add-rpath $out/lib
workaround for FHS distros
patchelf Shiboken.abi3.so --shrink-rpath --allowed-rpath-prefixes /usr patchelf Shiboken.abi3.so --add-rpath /usr/lib