diff options
| author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-03-27 16:19:55 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-28 08:43:13 +0100 |
| commit | 8c1c392ca34da1c64336d0aa2d0a26b9c23d8d39 (patch) | |
| tree | 37f509b2269d4a37cebcde905b84ec2e52c61d18 /meta/recipes-devtools/rpm | |
| parent | 3d29214b20433a506a3d59cdc08fc1a9be09a5a0 (diff) | |
| download | poky-8c1c392ca34da1c64336d0aa2d0a26b9c23d8d39.tar.gz | |
dnf: move the entire dnf/rpm4 stack to Python 3
[YOCTO #11180]
(From OE-Core rev: bedcdc4cf921b70a8cfb16c6684668d0ac9e1942)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
| -rw-r--r-- | meta/recipes-devtools/rpm/files/0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm_git.bb | 16 |
2 files changed, 39 insertions, 7 deletions
diff --git a/meta/recipes-devtools/rpm/files/0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch b/meta/recipes-devtools/rpm/files/0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch new file mode 100644 index 0000000000..b809332f21 --- /dev/null +++ b/meta/recipes-devtools/rpm/files/0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 36cf0ff26ece53e529e8b4f2d2f09acd8794b055 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 3 | Date: Fri, 24 Mar 2017 15:35:47 +0200 | ||
| 4 | Subject: [PATCH] Add PYTHON_ABI when searching for python libraries. | ||
| 5 | |||
| 6 | It has a value of 'm' when using Python3, and so without it | ||
| 7 | configure will not find the libraries. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
| 11 | --- | ||
| 12 | configure.ac | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/configure.ac b/configure.ac | ||
| 16 | index 9c58467c1..a506ec819 100644 | ||
| 17 | --- a/configure.ac | ||
| 18 | +++ b/configure.ac | ||
| 19 | @@ -642,7 +642,7 @@ AS_IF([test "$enable_python" = yes],[ | ||
| 20 | ]) | ||
| 21 | CPPFLAGS="$save_CPPFLAGS" | ||
| 22 | save_LIBS="$LIBS" | ||
| 23 | - AC_SEARCH_LIBS([Py_Main],[python${PYTHON_VERSION} python],[ | ||
| 24 | + AC_SEARCH_LIBS([Py_Main],[python${PYTHON_VERSION}${PYTHON_ABI} python],[ | ||
| 25 | WITH_PYTHON_LIB="$ac_res" | ||
| 26 | ],[AC_MSG_ERROR([missing python library]) | ||
| 27 | ]) | ||
| 28 | -- | ||
| 29 | 2.11.0 | ||
| 30 | |||
diff --git a/meta/recipes-devtools/rpm/rpm_git.bb b/meta/recipes-devtools/rpm/rpm_git.bb index 9bccd91168..96f71d5bb5 100644 --- a/meta/recipes-devtools/rpm/rpm_git.bb +++ b/meta/recipes-devtools/rpm/rpm_git.bb | |||
| @@ -13,8 +13,8 @@ simplify the process of creating graphical package managers or any \ | |||
| 13 | other tools that need an intimate knowledge of RPM packages in order \ | 13 | other tools that need an intimate knowledge of RPM packages in order \ |
| 14 | to function." | 14 | to function." |
| 15 | 15 | ||
| 16 | SUMMARY_python-rpm = "Python bindings for apps which will manupulate RPM packages" | 16 | SUMMARY_python3-rpm = "Python bindings for apps which will manupulate RPM packages" |
| 17 | DESCRIPTION_python-rpm = "The rpm-python package contains a module that permits applications \ | 17 | DESCRIPTION_python3-rpm = "The python3-rpm package contains a module that permits applications \ |
| 18 | written in the Python programming language to use the interface \ | 18 | written in the Python programming language to use the interface \ |
| 19 | supplied by the RPM Package Manager libraries." | 19 | supplied by the RPM Package Manager libraries." |
| 20 | 20 | ||
| @@ -34,6 +34,7 @@ SRC_URI = "git://github.com/rpm-software-management/rpm \ | |||
| 34 | file://0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch \ | 34 | file://0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch \ |
| 35 | file://0001-Fix-build-with-musl-C-library.patch \ | 35 | file://0001-Fix-build-with-musl-C-library.patch \ |
| 36 | file://0001-Add-a-color-setting-for-mips64_n32-binaries.patch \ | 36 | file://0001-Add-a-color-setting-for-mips64_n32-binaries.patch \ |
| 37 | file://0001-Add-PYTHON_ABI-when-searching-for-python-libraries.patch \ | ||
| 37 | " | 38 | " |
| 38 | 39 | ||
| 39 | PV = "4.13.90+git${SRCPV}" | 40 | PV = "4.13.90+git${SRCPV}" |
| @@ -42,10 +43,11 @@ SRCREV = "a8e51b3bb05c6acb1d9b2e3d34f859ddda1677be" | |||
| 42 | 43 | ||
| 43 | S = "${WORKDIR}/git" | 44 | S = "${WORKDIR}/git" |
| 44 | 45 | ||
| 45 | DEPENDS = "nss libarchive db file popt xz dbus elfutils python" | 46 | DEPENDS = "nss libarchive db file popt xz dbus elfutils python3" |
| 46 | DEPENDS_append_class-native = " file-replacement-native" | 47 | DEPENDS_append_class-native = " file-replacement-native" |
| 47 | 48 | ||
| 48 | inherit autotools gettext pkgconfig pythonnative | 49 | inherit autotools gettext pkgconfig python3native |
| 50 | export PYTHON_ABI | ||
| 49 | 51 | ||
| 50 | # OE-core patches autoreconf to additionally run gnu-configize, which fails with this recipe | 52 | # OE-core patches autoreconf to additionally run gnu-configize, which fails with this recipe |
| 51 | EXTRA_AUTORECONF_append = " --exclude=gnu-configize" | 53 | EXTRA_AUTORECONF_append = " --exclude=gnu-configize" |
| @@ -102,9 +104,9 @@ FILES_${PN} += "${libdir}/rpm-plugins/*.so \ | |||
| 102 | FILES_${PN}-dev += "${libdir}/rpm-plugins/*.la \ | 104 | FILES_${PN}-dev += "${libdir}/rpm-plugins/*.la \ |
| 103 | " | 105 | " |
| 104 | 106 | ||
| 105 | PACKAGES += "python-rpm" | 107 | PACKAGES += "python3-rpm" |
| 106 | PROVIDES += "python-rpm" | 108 | PROVIDES += "python3-rpm" |
| 107 | FILES_python-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" | 109 | FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" |
| 108 | 110 | ||
| 109 | # rpm 5.x was packaging the rpm build tools separately | 111 | # rpm 5.x was packaging the rpm build tools separately |
| 110 | RPROVIDES_${PN} += "rpm-build" | 112 | RPROVIDES_${PN} += "rpm-build" |
