diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-06-29 16:33:25 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2023-08-25 02:24:38 +0800 |
| commit | 0fe10114208e2c5cd572df043945a52e3ebeb6dd (patch) | |
| tree | a1f13e6a6112236ebdc93fa04f4142d40e32fcd4 /lang/python/python3/patches/014-remove-platform-so-suffix.patch | |
| parent | 5a0055df0621d4347723993b04a2fcf045929acf (diff) | |
python3: Restore platform triplet to paths
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:
* C extensions (*.cpython-311-*.so)
* Build config data directory (/usr/lib/python3.11/config-3.11-*/)
* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)
Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python3/patches/014-remove-platform-so-suffix.patch')
| -rw-r--r-- | lang/python/python3/patches/014-remove-platform-so-suffix.patch | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lang/python/python3/patches/014-remove-platform-so-suffix.patch b/lang/python/python3/patches/014-remove-platform-so-suffix.patch deleted file mode 100644 index 2acd9c8b9..000000000 --- a/lang/python/python3/patches/014-remove-platform-so-suffix.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/configure -+++ b/configure -@@ -23352,7 +23352,7 @@ printf %s "checking ABIFLAGS... " >&6; } - printf "%s\n" "$ABIFLAGS" >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 - printf %s "checking SOABI... " >&6; } --SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} -+SOABI='cpython-'`echo $VERSION | tr -d .` - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 - printf "%s\n" "$SOABI" >&6; } - ---- a/configure.ac -+++ b/configure.ac -@@ -5683,7 +5683,7 @@ AC_SUBST(SOABI) - AC_MSG_CHECKING(ABIFLAGS) - AC_MSG_RESULT($ABIFLAGS) - AC_MSG_CHECKING(SOABI) --SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} -+SOABI='cpython-'`echo $VERSION | tr -d .` - AC_MSG_RESULT($SOABI) - - # Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI |
