summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libdnf
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2017-03-27 16:19:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-28 08:43:13 +0100
commit8c1c392ca34da1c64336d0aa2d0a26b9c23d8d39 (patch)
tree37f509b2269d4a37cebcde905b84ec2e52c61d18 /meta/recipes-devtools/libdnf
parent3d29214b20433a506a3d59cdc08fc1a9be09a5a0 (diff)
downloadpoky-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/libdnf')
-rw-r--r--meta/recipes-devtools/libdnf/libdnf_git.bb17
1 files changed, 3 insertions, 14 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf_git.bb b/meta/recipes-devtools/libdnf/libdnf_git.bb
index 6e9cfcc862..ef28611f8a 100644
--- a/meta/recipes-devtools/libdnf/libdnf_git.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_git.bb
@@ -17,20 +17,9 @@ S = "${WORKDIR}/git"
17 17
18DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc" 18DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc"
19 19
20inherit gtk-doc gobject-introspection cmake pkgconfig 20inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base
21 21
22# We cannot inherit pythonnative (or descendant classes like distutils etc.) 22EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF -DPYTHON_DESIRED=3 \
23# because that would conflict with inheriting python3native
24# (which is done by inheriting gobject-introspection).
25# But libdnf only needs the path to native Python 2.x binary
26# so we simply set it explicitly here.
27#
28# These lines can be dropped when dnf stack is moved to python 3.x
29EXTRANATIVEPATH += "python-native"
30FILES_${PN} += " ${libdir}/python2.7/*"
31DEPENDS += "python-native"
32
33EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DWITH_MAN=OFF \
34 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \ 23 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DWITH_GIR=ON', '-DWITH_GIR=OFF', d)} \
35 " 24 "
36EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" 25EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF"