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

Infer /lib{,32,64} behavior from host system (alternative to #34) #61

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

hartwork
Copy link
Owner

Alternative to #34

CC @zceemja @task-completer

@hartwork hartwork added the bug Something isn't working label Aug 17, 2024
@hartwork hartwork added this to the 4.0.1 milestone Aug 17, 2024
@hartwork hartwork force-pushed the infer-lib-lib32-lib64-from-host-system branch from 0e1b968 to 60cbbf6 Compare August 17, 2024 17:31
For a few examples of what could be observed acroess distros today:

> # ( source /etc/os-release ; echo "${PRETTY_NAME}"; ls -ld /lib* /usr/lib* )
> Arch Linux
> lrwxrwxrwx  1 root root     7 Apr  7 18:02 /lib -> usr/lib
> lrwxrwxrwx  1 root root     7 Apr  7 18:02 /lib64 -> usr/lib
> drwxr-xr-x 49 root root 32768 Aug 11 00:04 /usr/lib
> lrwxrwxrwx  1 root root     3 Apr  7 18:02 /usr/lib64 -> lib
>
> # ( source /etc/os-release ; echo "${PRETTY_NAME}"; ls -ld /lib* /usr/lib* )
> Debian GNU/Linux trixie/sid
> lrwxrwxrwx  1 root root    7 Mar 30 00:00 /lib -> usr/lib
> lrwxrwxrwx  1 root root    9 Mar 30 00:00 /lib64 -> usr/lib64
> drwxr-xr-x 12 root root 4096 Mar 30 00:00 /usr/lib
> drwxr-xr-x  2 root root 4096 Mar 30 00:00 /usr/lib64
>
> # ( source /etc/os-release ; echo "${PRETTY_NAME}"; ls -ld /lib* /usr/lib* )  # docker
> Gentoo Linux
> lrwxrwxrwx  1 root root     7 Aug 11 17:05 /lib -> usr/lib
> lrwxrwxrwx  1 root root     9 Aug 11 17:05 /lib64 -> usr/lib64
> drwxr-xr-x 23 root root  4096 Aug 11 17:23 /usr/lib
> drwxr-xr-x 23 root root 20480 Aug 11 17:23 /usr/lib64
>
> # ( source /etc/os-release ; echo "${PRETTY_NAME}"; ls -ld /lib* /usr/lib* )  # other
> Gentoo Linux
> drwxr-xr-x  11 root root   4096 Jul  2 00:36 /lib
> drwxr-xr-x   9 root root  12288 Aug 10 20:25 /lib64
> drwxr-xr-x  90 root root  57344 Aug 10 20:24 /usr/lib
> drwxr-xr-x 147 root root 258048 Aug 11 00:27 /usr/lib64
@hartwork hartwork force-pushed the infer-lib-lib32-lib64-from-host-system branch from 60cbbf6 to a1bc7f5 Compare August 17, 2024 17:37
Copy link

@task-completer task-completer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my machine!

@hartwork
Copy link
Owner Author

@zceemja any chance you could give this a spin?

@hartwork hartwork merged commit bda3476 into main Sep 6, 2024
8 checks passed
@hartwork hartwork deleted the infer-lib-lib32-lib64-from-host-system branch September 6, 2024 13:19
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

Successfully merging this pull request may close these issues.

2 participants