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

Look for libraries in /usr/lib too #22

Merged
merged 2 commits into from
Sep 5, 2022
Merged

Conversation

andreabolognani
Copy link
Collaborator

On current aarch64 Linux versions such as CentOS Stream 9 and Fedora 36, ld-linux-aarch64.so is found in /usr/lib instead of /usr/lib64.

andreabolognani added a commit to andreabolognani/kubevirt that referenced this pull request Sep 2, 2022
The version of bazeldnf we currently use doesn't handle
gracefully the fact that, in CentOS Stream 9, ld-linux-aarch64.so
lives under /usr/lib instead of /usr/lib64. The latter is still
used for ld-linux-x86_64.so even in CentOS Stream 9, and was used
for both in CentOS Stream 8, hence why we hadn't encountered this
limitation until now.

I'm pointing to a branch in my personal fork of bazeldnf that
contains the necessary fixes to demonstrate things, but we'll
have to wait until

  rmohr/bazeldnf#22

is merged and a new bazeldnf release is tagged before we can
merge these changes.

Signed-off-by: Andrea Bolognani <[email protected]>
@andreabolognani
Copy link
Collaborator Author

KubeVirt PR that depends on these changes, as well as #20 and #21: kubevirt/kubevirt#8404

Not all libraries are necessarily found in /usr/lib64, even on
64-bit systems. Make it possible to pass a list of directories
and only error out if a given library can't be found in any of
those.

Signed-off-by: Andrea Bolognani <[email protected]>
On current aarch64 Linux versions such as CentOS Stream 9 and
Fedora 36, ld-linux-aarch64.so is found in /usr/lib instead
of /usr/lib64.

Signed-off-by: Andrea Bolognani <[email protected]>
@rmohr rmohr merged commit 58fd7d2 into rmohr:main Sep 5, 2022
@rmohr
Copy link
Owner

rmohr commented Sep 5, 2022

thanks a lot

@andreabolognani
Copy link
Collaborator Author

Thank you! :)

@andreabolognani andreabolognani deleted the ldd-usr-lib branch September 5, 2022 15:08
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

Successfully merging this pull request may close these issues.

2 participants