FS#78725 - [openblas] move cmake files to /usr/lib
Attached to Project:
Arch Linux
Opened by Gustavo Alvarez (sl1pkn07) - Tuesday, 06 June 2023, 15:25 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
Opened by Gustavo Alvarez (sl1pkn07) - Tuesday, 06 June 2023, 15:25 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
|
Details
Hi
now if try to install openblas 32bits libs, overwrite (or make conflict to install if used throught package manager) the cmake files with 32bits config things move cmake files to /usr/lib prevent this. use /usr/share should be to use for agnostig arch things like headers this needs to be fixed in updtream, but here is more faster greetings |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:22 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/openblas/issues/5
Saturday, 25 November 2023, 20:22 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/openblas/issues/5
"Steps to reproduce:"
CC="gcc -m32"
CXX="g++ -m32"
-DCMAKE_INSTALL_LIBDIR=lib32
and try to install (conflict files)
the differences in the cmake (for example: OpenBLASTargets-release.cmake)
└───╼ cat /usr/lib/cmake/OpenBLAS/OpenBLASTargets-release.cmake | grep lib
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libopenblas.so.0.3"
IMPORTED_SONAME_RELEASE "libopenblas.so.0"
list(APPEND _cmake_import_check_files_for_OpenBLAS::OpenBLAS "${_IMPORT_PREFIX}/lib/libopenblas.so.0.3" )
└───╼ cat /tmp/makepkg/libopenblas/pkg/libopenblas/usr/share/cmake/OpenBLAS/OpenBLASTargets-release.cmake | grep lib
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib32/libopenblas.so.0.3"
IMPORTED_SONAME_RELEASE "libopenblas.so.0"
list(APPEND _cmake_import_check_files_for_OpenBLAS::OpenBLAS "${_IMPORT_PREFIX}/lib32/libopenblas.so.0.3" )
both install the same cmake files in the same path (/usr/share/cmake/OpenBLAS) but one points to 64bits build, and other 32bits build. should be change to /usr/lib/cmake (or /usr/lib32/cmake if use the 32bit build)
little patch
sed 's|share/cmake/${PN}${SUFFIX64}|${CMAKE_INSTALL_LIBDIR}/cmake/${PN}${SUFFIX64}|g' \
-i "OpenBLAS-${pkgver}/CMakeLists.txt"
But Arch doesn't create any such pkg? So technically this is not an Arch packaging bug. But as you correctly point out, this needs fixing upstream. Please report it there.
Anyway, maybe the Arch PM will take a look...
greetings