bpo-1294959 - better support for systems with /usr/lib64#3698
Conversation
|
didn't add a NEWS entry because I don't know how to do it ... is there a script that generates the file names for the NEWS.d structure? Or can I just drop a file called "bpo-1294959.txt" there? |
Sorry, something went wrong.
|
@matejcik You will have to use blurb for the NEWS entry: https://pypi.python.org/pypi/blurb |
Sorry, something went wrong.
|
In Fedora, we patch Python to support lib64 as follows: https://src.fedoraproject.org/rpms/python3/blob/master/f/00102-lib64.patch (only applied on 64bit builds) This is only a note, I haven't looked at this PR more closely just yet, I'll try to compare the patches as soon as I can, to see if this PR would enable us to drop both of them. |
Sorry, something went wrong.
|
Apparently, replacing those 2 patches with this one builds and tests fine. https://koji.fedoraproject.org/koji/taskinfo?taskID=22047740 |
Sorry, something went wrong.
|
news entry added |
Sorry, something went wrong.
|
What can we do to make this happen? |
Sorry, something went wrong.
|
I am a core dev now and I can commit to pushing this through. |
Sorry, something went wrong.
grimreaper
left a comment
There was a problem hiding this comment.
General comment: I wonder if it would make sense to make use of ax_set_default_paths_system.m4 as well
Sorry, something went wrong.
|
@matejcik: I'm now interested to review your PR, but first I would like to see conflicts resolved. Would you like to fix conflicts? Or do you prefer that I create a new PR based on your PR? |
Sorry, something went wrong.
This introduces a new configure and sysconfig variable `platsubdir`, which is the name of subdirectory of $prefix that holds platform-specific libraries. On many Linux distributions, there is separation between /usr/lib and /usr/lib64, which was causing some problems due to the way Python manages its install paths. Now, platsubdir is used to select the appropriate lib directory.
news entry news entry
|
@vstinner thanks, I fixed the basic conflicts. Unfortunately, I see that the code (esp. in Modules/getpath.c) has drifted significantly, and this is no longer part of my day job. So I probably won't devote much time in getting this where it needs to go. Maybe @hroncok would be interested in taking over, or perhaps @mcepl ? |
Sorry, something went wrong.
|
Not me. I can help @vstinner get this done and tested in Fedora, but that's it, sorry. |
Sorry, something went wrong.
|
I can start working on it, should be having some more time soon. |
Sorry, something went wrong.
|
Thank you to everyone for your work on this. I'm going to close this in favor of #11755 since that (at the time) was a rebase over master. If this one ends up being the better pull request to move the project forward, then this can be reopened. |
Sorry, something went wrong.
|
PR #11755 is an updated version of this PR. (EDIT: oops, I missed @stratakis's comment.) |
Sorry, something went wrong.
This introduces a new configure and sysconfig variable
platsubdir, which is the name of subdirectory ofprefixthat holds platform-specific libraries. On many Linux distributions, there is separation between/usr/liband/usr/lib64, as opposed toprefixvsexec_prefix, which is what Python is accustomed to.This should improve the situation, and
platsubdirwill be used to differentiate library subdirectories belowprefix.Based on last comments in the bug report http://bugs.python.org/issue1294959 , I have renamed "platlibdir" to "platsubdir" -- IMHO it's more important to note that this is platform-specific than that it is a library directory. (otherwise we'd end up with
platlibsubdirand that's horrible ;) )https://bugs.python.org/issue1294959