From: Lei Maohui Date: Thu, 25 Apr 2019 00:03:58 +0000 (+0800) Subject: dnf: Enable nativesdk X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dac764b6e2a8063ebd0b81681056653d10ecb4bf;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git dnf: Enable nativesdk Make dnf work on nativesdk environment. (From OE-Core rev: 88843ff56a8ac8addea3eadb73651bbf49d1509d) Signed-off-by: Zheng Ruoqin Signed-off-by: Lei Maohui Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/dnf/dnf_4.2.2.bb b/meta/recipes-devtools/dnf/dnf_4.2.2.bb index 3970b411217..c77773332c1 100644 --- a/meta/recipes-devtools/dnf/dnf_4.2.2.bb +++ b/meta/recipes-devtools/dnf/dnf_4.2.2.bb @@ -26,7 +26,7 @@ EXTRA_OECMAKE = " -DWITH_MAN=0 -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} - BBCLASSEXTEND = "native nativesdk" -RDEPENDS_${PN}_class-target += " \ +RDEPENDS_${PN} += " \ python3-core \ python3-codecs \ python3-netclient \ @@ -49,6 +49,8 @@ RDEPENDS_${PN}_class-target += " \ python3-gpg \ " +RDEPENDS_${PN}_class-native = "" + RRECOMMENDS_${PN}_class-target += "gnupg" # Create a symlink called 'dnf' as 'make install' does not do it, but @@ -66,6 +68,12 @@ do_install_append_class-native() { RPM_NO_CHROOT_FOR_SCRIPTS=1 } +do_install_append_class-nativesdk() { + create_wrapper ${D}/${bindir}/dnf \ + RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \ + RPM_NO_CHROOT_FOR_SCRIPTS=1 +} + SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \ dnf-automatic.service dnf-automatic.timer \ dnf-automatic-download.service dnf-automatic-download.timer \