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

xz package does not provide unversioned liblzma.so symlink #9217

Open
jkoritzinsky opened this issue May 24, 2024 · 3 comments
Open

xz package does not provide unversioned liblzma.so symlink #9217

jkoritzinsky opened this issue May 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@jkoritzinsky
Copy link
Member

Describe the bug
The xz package provides versioned SOs, /usr/lib/liblzma.so.5 and /usr/lib/liblzma.5.4.4, but it does not provide /usr/lib/liblzma.so. This breaks any tooling that looks up liblzma.so without a version, such as through autotools.

This was found on a docker image based on azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 with no additional packages installed.

To Reproduce
Steps to reproduce the behavior:

  1. Run docker run --rm -it azurelinuxpreview.azurecr.io/public/azurelinux/base/core:3.0 bash
  2. In the container, run ls /usr/lib/liblzma.so*

Expected behavior

There should be three files, liblzma.so, liblzma.so.5 and liblzma.so.5.4.4, where they each symlink (possibly transitively) to liblzma.so.5.4.4

@jkoritzinsky jkoritzinsky added the bug Something isn't working label May 24, 2024
@zcobol
Copy link

zcobol commented May 24, 2024

@jkoritzinsky if you inspect the xz.spec the link is created during package installation:

ln -svf "../..%{_libdir}/$(readlink %{buildroot}%{_libdir}/liblzma.so)" %{buildroot}%{_libdir}/liblzma.so

and ls output:

zcobol@azurelinux [ ~ ]$ ls -l /usr/lib/liblzma.so
lrwxrwxrwx 1 root root 30 Apr 23  2022 /usr/lib/liblzma.so -> ../../usr/lib/liblzma.so.5.2.5

I suspect it's a Docker container assembly issue.

@jkoritzinsky
Copy link
Member Author

Yes, I suspect that it is an issue with the Azure Linux 3.0 docker image construction (which I believe is also defined in this repo).

@jkoritzinsky
Copy link
Member Author

Looping back to this, it's still an issue with the released AzureLinux 3.0 base image. It wasn't a one-off image build issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants