(This issue was discussed in bsc#1223967 - for more details check there)
mkbaselibs allows to remove libraries from the list of libraries to handle using the -regex expression - of course, it requires that this library has been added prior. This feature is not well documented - at least it is not documented here, therefore it may be rarely used, nontheless the mkbaselibs code shows that it exists. It is useful to remove the default library path (/usr/lib(64)?/) which gets added automatically.
Thus expressions like:
are expected to work.
However, the (non-exisitent) default library path /usr/lib64/liblapack.so.3 is still considered - which leads to the error message:
...
> [ 221s] + mkdir -p /home/abuild/rpmbuild/BUILDROOT/lapack-3.12.0-94.1.x86_64/usr/lib64/glibc-hwcaps/x86-64-v3
> [ 221s] + mv .cfiles/usr/lib64/liblapack.so.3 /home/abuild/rpmbuild/BUILDROOT/lapack-3.12.0-94.1.x86_64/usr/lib64/glibc-hwcaps/x86-64-v3/liblapack.so.3
> [ 221s] mv: cannot stat '.cfiles/usr/lib64/liblapack.so.3': No such file or directory
> [ 221s] error: Bad exit status from /var/tmp/rpm-tmp.Aiq5Zt (%install)
...
This is because /usr/lib64/liblapack.so.3 is removed from the %files hash, however, not from the %moves hash.
I believe, the following change to /usr/lib/build/mkbaselibs would remedy this problem:
(This issue was discussed in bsc#1223967 - for more details check there)
mkbaselibs
allows to remove libraries from the list of libraries to handle using the-regex
expression - of course, it requires that this library has been added prior. This feature is not well documented - at least it is not documented here, therefore it may be rarely used, nontheless themkbaselibs
code shows that it exists. It is useful to remove the default library path (/usr/lib(64)?/
) which gets added automatically. Thus expressions like:are expected to work. However, the (non-exisitent) default library path
/usr/lib64/liblapack.so.3
is still considered - which leads to the error message:This is because
/usr/lib64/liblapack.so.3
is removed from the%files
hash, however, not from the%moves
hash. I believe, the following change to/usr/lib/build/mkbaselibs
would remedy this problem: