Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mkbaselibs] creates 0-byte files instead of sym links #912

Open
e4t opened this issue Jan 26, 2023 · 0 comments
Open

[mkbaselibs] creates 0-byte files instead of sym links #912

e4t opened this issue Jan 26, 2023 · 0 comments

Comments

@e4t
Copy link

e4t commented Jan 26, 2023

It has been discovered that mkbaselibs creates empty files (0-byte) where symlinks are expected at least for %{ghost}ed files. This comes into play when creating 32-bit compatibility packages for packages that use update alternatives:

$  rpm -qlvp liblapacke3-32bit-3.9.0-5.4.x86_64.rpm 
drwxr-xr-x    2 root     root                        0 Aug 31 14:19 /usr/lib/lapack
lrwxrwxrwx    1 root     root                       19 Aug 31 14:19 /usr/lib/lapack/liblapacke.so.3 -> liblapacke.so.3.9.0
-rwxr-xr-x    1 root     root                  2262368 Aug 31 14:19 /usr/lib/lapack/liblapacke.so.3.9.0
-rw-r--r--    1 root     root                        0 Aug 31 14:19 /usr/lib/liblapacke.so.3

for lapack in OBS:science.
The corresponding %files section reads:

%files -n liblapacke3
%{_libdir}/lapack/liblapacke.so.%{version}
%{_libdir}/lapack/liblapacke.so.3
%ghost %{_libdir}/liblapacke.so.3
%ghost %{_sysconfdir}/alternatives/liblapacke.so.3_%{_arch}

Also check the discussion around this bugzilla entry as well as this ticket around the release tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant