Closed badshah400 closed 1 month ago
suse_build_hwcaps_libs is a definition of openSUSE:Factory, so I don't see what we should do here in the build script code?
OK, sorry, my mistake. I know this is a Factory macro but thought the main work is done by mkbaselibs
. Guess I'll open a bugzilla issue. Thanks for the response.
Fixed, I think, by commit f7d979e64ee85209b36127747a92b93a415649de for mkbaselibs
This came up when trying to enable -v3 hwcaps enhanced libs for
lapack
. As it turns out,lapack
uses update-alternatives to create a symlink/usr/lib64/libblas.so.3
pointing to the real library/usr/lib64/blas/libblas.so.3
viaupdate-alternatives
called duringpost
. The file/usr/lib64/libblas.so.3
does not exist a build-time, but created by update-alternatives duringpost
install. It is also marked as%ghost
in the package.Apparently
%{?suse_build_hwcaps_libs}
cannot handle this. It tries to copy the non-existent — at build time —/usr/lib64/libblas.so.3
and fails catastrophically after actually generating the hwaps libs. This is what I see in the log. Note the error:mv: cannot stat '.cfiles/usr/lib64/liblapack.so.3': No such file or directory
which suggests it is trying to move a non-existent file which will be created duringpost
install:FWIW, here is the baselibs.conf:
And here is the full build log if it helps (from https://build.opensuse.org/package/show/home:badshah400:lapackv3/lapack): _log.gz