-
Notifications
You must be signed in to change notification settings - Fork 243
Exclude multilib directories in pcre2-config #859
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
Merged
+10
−5
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very platform/build specific so IMHO having people patching these on their own version is probably for the best.
The solution is very Linux specific and doesn't even cover ALL, because the failed attempt on standardizing these with FHS failed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you aware of distros that have paths not covered by this? It's likely to work nearly everywhere, and save a patch for perhaps all distros in practice
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIX is one that is also very popular, my main concern though is on how this interacts with *NIX (ex: Solaris or AIX have paths that differ from this, although it might be also argued that this is still an improvement).
BTW, Debian (and all its derivatives, including Ubuntu) have TWO possible paths for "non system libraries" depending on the compiler used and if it supports multi architectures, and while they are both likely covered in the list, at least for common architectures, it can be also argued that it was more obvious from the previous version that we just aim for the bare minimum and indeed encouraged them to patch it to what was required for their platform.
BTW, sorry that are making this comment late, but I did post something in this line before and GitHub UI ate it :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem at all, thank you for commenting.
I think for Nix, pcre2-config simply shouldn't be packaged at all.
For AIX & Solaris, we could add support too, I suppose. No-one has asked about it, and I don't know if who is distributing or patching PCRE2 on those platforms.
It appears that for Solaris, we'd need to add patterns matching
/usr/lib/64,/usr/lib/amd64, and/usr/lib/sparcv9. Using/usr/lib/*64and/usr/lib/sparc*should work. Docs: https://docs.oracle.com/cd/E53394_01/html/E61689/dev-env-2.htmlFor AIX some system-provided 64 bit libs go in
/usr/lib/ppc64apparently?This assumes though that someone is going to install PCRE2 in those locations, which is doubtful on those platforms, where PCRE2 is not a system-provided component (as it is on Linux). I would expect Solaris or AIX software to bundle a private copy of PCRE2, or put a shared copy in
/opt/or/usr/localor something else instead. Surely no-one needs PCRE2 in/usr/libon UNIX?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an additional commit with some more Solaris/AIX directories: 30c9faa.
Overall, I think I have made an improvement here, and I won't do any further work unless there's a concrete bug report or change suggestion.
I agree it's not ideal, but we're doing the best we can.