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
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Toolybird (Toolybird) - Tuesday, 06 June 2023, 20:28 GMT
Thanks, but your report is unclear. The *most important* part is missing:

"Steps to reproduce:"
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 07 June 2023, 01:37 GMT
create openblas 32bit package builded with

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"
Comment by Toolybird (Toolybird) - Wednesday, 07 June 2023, 22:56 GMT
> create openblas 32bit package

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...
Comment by Gustavo Alvarez (sl1pkn07) - Wednesday, 14 June 2023, 23:49 GMT
i have open the issue upstream https://github.com/xianyi/OpenBLAS/issues/4083

greetings

Loading...