azurelinux icon indicating copy to clipboard operation
azurelinux copied to clipboard

xz package does not provide unversioned liblzma.so symlink

Open jkoritzinsky opened this issue 1 year ago • 3 comments

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 avatar May 24 '24 20:05 jkoritzinsky

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

https://github.com/microsoft/azurelinux/blob/5b01d266b2e3b95352548c12c4e501943e45cb77/SPECS/xz/xz.spec#L51

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.

zcobol avatar May 24 '24 22:05 zcobol

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 avatar May 28 '24 18:05 jkoritzinsky

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.

jkoritzinsky avatar Sep 06 '24 20:09 jkoritzinsky