diff options
| author | Changqing Li <changqing.li@windriver.com> | 2020-02-07 14:07:43 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:02 +0000 |
| commit | e774c22381ccc6c56b6f8f4bf65f09da3ff89379 (patch) | |
| tree | 909b2ba753c75a996e3c05a11f98e806523c2675 /meta/recipes-devtools/python | |
| parent | 2d267973e0ee98d8e69230d96b6360f8ffe25d76 (diff) | |
| download | poky-e774c22381ccc6c56b6f8f4bf65f09da3ff89379.tar.gz | |
python3: fix the installation path of libpython3.7m.a for multilib
Fix the installation path of libpython3.7m.a on mulitlib lib64
platform to lib64 instead of lib
(From OE-Core rev: 3081d3993095d2e4817bbef33c9c90dd814a45d7)
Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3/0001-configure.ac-fix-LIBPL.patch | 35 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.8.1.bb | 5 |
2 files changed, 38 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-configure.ac-fix-LIBPL.patch b/meta/recipes-devtools/python/python3/0001-configure.ac-fix-LIBPL.patch new file mode 100644 index 0000000000..123ce3a2dc --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-configure.ac-fix-LIBPL.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From acce3d441e7eadadd2d3ce38654155dc43f1f607 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Fri, 7 Feb 2020 09:36:25 +0800 | ||
| 4 | Subject: [PATCH] configure.ac: fix LIBPL | ||
| 5 | |||
| 6 | Use LIBDIR rather than prefix/lib, so that it would work when lib64. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 9 | |||
| 10 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 11 | Signed-off-by: Li Zhou <li.zhou@windriver.c> | ||
| 12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 13 | --- | ||
| 14 | configure.ac | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/configure.ac b/configure.ac | ||
| 18 | index ce04258..915f475 100644 | ||
| 19 | --- a/configure.ac | ||
| 20 | +++ b/configure.ac | ||
| 21 | @@ -4532,9 +4532,9 @@ fi | ||
| 22 | dnl define LIBPL after ABIFLAGS and LDVERSION is defined. | ||
| 23 | AC_SUBST(PY_ENABLE_SHARED) | ||
| 24 | if test x$PLATFORM_TRIPLET = x; then | ||
| 25 | - LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | ||
| 26 | + LIBPL='$(LIBDIR)'"/python${VERSION}/config-${LDVERSION}" | ||
| 27 | else | ||
| 28 | - LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||
| 29 | + LIBPL='$(LIBDIR)'"/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | ||
| 30 | fi | ||
| 31 | AC_SUBST(LIBPL) | ||
| 32 | |||
| 33 | -- | ||
| 34 | 2.7.4 | ||
| 35 | |||
diff --git a/meta/recipes-devtools/python/python3_3.8.1.bb b/meta/recipes-devtools/python/python3_3.8.1.bb index a71c207d9f..981b52e169 100644 --- a/meta/recipes-devtools/python/python3_3.8.1.bb +++ b/meta/recipes-devtools/python/python3_3.8.1.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ | |||
| 29 | file://0017-setup.py-do-not-report-missing-dependencies-for-disa.patch \ | 29 | file://0017-setup.py-do-not-report-missing-dependencies-for-disa.patch \ |
| 30 | file://0001-setup.py-pass-missing-libraries-to-Extension-for-mul.patch \ | 30 | file://0001-setup.py-pass-missing-libraries-to-Extension-for-mul.patch \ |
| 31 | file://0001-Makefile-do-not-compile-.pyc-in-parallel.patch \ | 31 | file://0001-Makefile-do-not-compile-.pyc-in-parallel.patch \ |
| 32 | file://0001-configure.ac-fix-LIBPL.patch \ | ||
| 32 | " | 33 | " |
| 33 | 34 | ||
| 34 | SRC_URI_append_class-native = " \ | 35 | SRC_URI_append_class-native = " \ |
| @@ -174,7 +175,7 @@ py_package_preprocess () { | |||
| 174 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | 175 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 175 | -e 's:${RECIPE_SYSROOT}::g' \ | 176 | -e 's:${RECIPE_SYSROOT}::g' \ |
| 176 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | 177 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
| 177 | ${PKGD}/${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile \ | 178 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile \ |
| 178 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py \ | 179 | ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py \ |
| 179 | ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config | 180 | ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config |
| 180 | 181 | ||
| @@ -322,7 +323,7 @@ RPROVIDES_${PN}-venv += "python3-pyvenv" | |||
| 322 | # package libpython3 | 323 | # package libpython3 |
| 323 | PACKAGES =+ "libpython3 libpython3-staticdev" | 324 | PACKAGES =+ "libpython3 libpython3-staticdev" |
| 324 | FILES_libpython3 = "${libdir}/libpython*.so.*" | 325 | FILES_libpython3 = "${libdir}/libpython*.so.*" |
| 325 | FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}-*/libpython${PYTHON_MAJMIN}.a" | 326 | FILES_libpython3-staticdev += "${libdir}/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}-*/libpython${PYTHON_MAJMIN}.a" |
| 326 | INSANE_SKIP_${PN}-dev += "dev-elf" | 327 | INSANE_SKIP_${PN}-dev += "dev-elf" |
| 327 | 328 | ||
| 328 | # catch all the rest (unsorted) | 329 | # catch all the rest (unsorted) |
