FS#70244 - [lib32-expat] 2.3.0-1 causes "ninja: error: '/lib32/libexpat.so'"
Attached to Project:
Community Packages
Opened by Kyle Devir (QuartzDragon) - Wednesday, 31 March 2021, 09:09 GMT
Last edited by David Runge (dvzrv) - Friday, 09 April 2021, 20:35 GMT
Opened by Kyle Devir (QuartzDragon) - Wednesday, 31 March 2021, 09:09 GMT
Last edited by David Runge (dvzrv) - Friday, 09 April 2021, 20:35 GMT
|
Details
lib32-libexpat 2.3.0-1 breaks Ninja's configuation of
lib32-mesa-git from AUR with this message:
"ninja: error: '/lib32/libexpat.so', needed by 'src/amd/vulkan/libvulkan_radeon.so', missing and no known rule to make it" Downgrading to lib32-expat 2.2.10-1 allows Ninja to successfully find it. |
This task depends upon
Closed by David Runge (dvzrv)
Friday, 09 April 2021, 20:35 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with lib32-expat 2.3.0-2
Friday, 09 April 2021, 20:35 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with lib32-expat 2.3.0-2
Edit:
The exec_prefix is unconditionally added [1]. The following sed line removes it as a work around:
sed -i 's|set(libdir "\\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")|set(libdir "${CMAKE_INSTALL_LIBDIR}")|' CMakeLists.txt
[1] https://github.com/libexpat/libexpat/blob/R_2_3_0/expat/CMakeLists.txt#L374
Yeah, changing it to "libdir=${exec_prefix}/lib32" fixed it :)
"-DCMAKE_INSTALL_LIBDIR=/usr/lib32"
with
"-DCMAKE_INSTALL_LIBDIR=lib32"
This will make /usr/lib32/pkgconfig/expat.pc have "libdir=${exec_prefix}/lib32", and "${exec_prefix}" is "/usr"
@josephg and @loqs thanks for the suggestions to fix this issue. I have opted for the relative CMAKE_INSTALL_LIBDIR.
Please verify whether lib32-expat 2.3.0-2 in [multilib-testing] fixes this for you.