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

get_software_libdir: return dir if it's only 1 with libs #4513

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bartoldeman
Copy link
Contributor

There are situations e.g. with recent Gentoo where all 64-bit libraries are under lib64, but lib is seperate and used for other files and directories (e.g. lib/python), and for 32-bit libraries.

get_software_libdir would fail for such. To avoid this:

if only_one is True (default), and no specific file (fs) is specified (also default), and lib and lib64 both exist and are separate, and only one of them has libraries (shared or static), it returns that one directory.

There are situations e.g. with recent Gentoo where all 64-bit libraries
are under `lib64`, but `lib` is seperate and used for other files and
directories (e.g. `lib/python`), and for 32-bit libraries.

`get_software_libdir` would fail for such. To avoid this:

if `only_one` is `True` (default), *and* no specific file (`fs`) is
specified (also default), *and* `lib` and `lib64` both exist and are
separate, and only one of them has libraries (shared or static),
it returns that one directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant