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/libdnf | |
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/libdnf')
-rw-r--r-- | meta/recipes-devtools/libdnf/libdnf_git.bb | 17 |
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 | ||
18 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc" | 18 | DEPENDS = "glib-2.0 libsolv libcheck librepo rpm gtk-doc" |
19 | 19 | ||
20 | inherit gtk-doc gobject-introspection cmake pkgconfig | 20 | inherit gtk-doc gobject-introspection cmake pkgconfig distutils3-base |
21 | 21 | ||
22 | # We cannot inherit pythonnative (or descendant classes like distutils etc.) | 22 | EXTRA_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 | ||
29 | EXTRANATIVEPATH += "python-native" | ||
30 | FILES_${PN} += " ${libdir}/python2.7/*" | ||
31 | DEPENDS += "python-native" | ||
32 | |||
33 | EXTRA_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 | " |
36 | EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" | 25 | EXTRA_OECMAKE_append_class-native = " -DWITH_GIR=OFF" |