]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40684: Fix make install for platlibdir=lib64 (GH-20736)
authorVictor Stinner <vstinner@python.org>
Tue, 9 Jun 2020 13:32:43 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Jun 2020 13:32:43 +0000 (15:32 +0200)
"make install" now uses the PLATLIBDIR variable for the destination
lib-dynload/ directory when ./configure --with-platlibdir is used.

Update --with-platlibdir comment in configure.

Makefile.pre.in
Misc/NEWS.d/next/Build/2020-06-08-19-57-05.bpo-40684.WIY2-i.rst [new file with mode: 0644]
configure
configure.ac

index 9cb7a23eea5821d171a552f77360f15fe6c6b912..7c16d2905fbf4ebe7db0204e5010d7a0c4f47a1e 100644 (file)
@@ -148,7 +148,7 @@ SCRIPTDIR=  $(prefix)/$(PLATLIBDIR)
 ABIFLAGS=      @ABIFLAGS@
 
 # Detailed destination directories
-BINLIBDEST=    $(LIBDIR)/python$(VERSION)
+BINLIBDEST=    @BINLIBDEST@
 LIBDEST=       $(SCRIPTDIR)/python$(VERSION)
 INCLUDEPY=     $(INCLUDEDIR)/python$(LDVERSION)
 CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(LDVERSION)
diff --git a/Misc/NEWS.d/next/Build/2020-06-08-19-57-05.bpo-40684.WIY2-i.rst b/Misc/NEWS.d/next/Build/2020-06-08-19-57-05.bpo-40684.WIY2-i.rst
new file mode 100644 (file)
index 0000000..0495e5e
--- /dev/null
@@ -0,0 +1,2 @@
+``make install`` now uses the ``PLATLIBDIR`` variable for the destination
+``lib-dynload/`` directory when ``./configure --with-platlibdir`` is used.
index 1124412dce47533ea652f1f4eb61be8d5253f49c..139c2bf7de132817de4bbab0c89194c30dd9be73 100755 (executable)
--- a/configure
+++ b/configure
@@ -632,6 +632,7 @@ THREADHEADERS
 LIBPL
 PY_ENABLE_SHARED
 PLATLIBDIR
+BINLIBDEST
 LIBPYTHON
 EXT_SUFFIX
 ALT_SOABI
@@ -15334,7 +15335,11 @@ else
 fi
 
 
-# Check for --with-libdir-name
+
+BINLIBDEST='$(LIBDIR)/python$(VERSION)'
+
+
+# Check for --with-platlibdir
 # /usr/$LIDIRNAME/python$VERSION
 
 PLATLIBDIR="lib"
@@ -15353,6 +15358,7 @@ then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
   PLATLIBDIR="$withval"
+  BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
index 84d1f00983f899de657206105a51735c055caafd..30856c8b6883d4a01ae6a4608dac4d5656f7b0fe 100644 (file)
@@ -4770,7 +4770,11 @@ else
 fi
 
 
-# Check for --with-libdir-name
+AC_SUBST(BINLIBDEST)
+BINLIBDEST='$(LIBDIR)/python$(VERSION)'
+
+
+# Check for --with-platlibdir
 # /usr/$LIDIRNAME/python$VERSION
 AC_SUBST(PLATLIBDIR)
 PLATLIBDIR="lib"
@@ -4787,6 +4791,7 @@ if test -n "$withval" -a "$withval" != yes -a "$withval" != no
 then
   AC_MSG_RESULT(yes)
   PLATLIBDIR="$withval"
+  BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
 else
   AC_MSG_RESULT(no)
 fi],