summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dnf
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2019-04-25 08:03:58 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-26 10:09:08 +0100
commitdac764b6e2a8063ebd0b81681056653d10ecb4bf (patch)
treee3e17e54fae53902330d95c1ac98b3167c7ce8f1 /meta/recipes-devtools/dnf
parent2b70287431129f3963cc253794078077fb2e46aa (diff)
downloadpoky-dac764b6e2a8063ebd0b81681056653d10ecb4bf.tar.gz
dnf: Enable nativesdk
Make dnf work on nativesdk environment. (From OE-Core rev: 88843ff56a8ac8addea3eadb73651bbf49d1509d) Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dnf')
-rw-r--r--meta/recipes-devtools/dnf/dnf_4.2.2.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-devtools/dnf/dnf_4.2.2.bb b/meta/recipes-devtools/dnf/dnf_4.2.2.bb
index 3970b41121..c77773332c 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} -
26 26
27BBCLASSEXTEND = "native nativesdk" 27BBCLASSEXTEND = "native nativesdk"
28 28
29RDEPENDS_${PN}_class-target += " \ 29RDEPENDS_${PN} += " \
30 python3-core \ 30 python3-core \
31 python3-codecs \ 31 python3-codecs \
32 python3-netclient \ 32 python3-netclient \
@@ -49,6 +49,8 @@ RDEPENDS_${PN}_class-target += " \
49 python3-gpg \ 49 python3-gpg \
50 " 50 "
51 51
52RDEPENDS_${PN}_class-native = ""
53
52RRECOMMENDS_${PN}_class-target += "gnupg" 54RRECOMMENDS_${PN}_class-target += "gnupg"
53 55
54# Create a symlink called 'dnf' as 'make install' does not do it, but 56# Create a symlink called 'dnf' as 'make install' does not do it, but
@@ -66,6 +68,12 @@ do_install_append_class-native() {
66 RPM_NO_CHROOT_FOR_SCRIPTS=1 68 RPM_NO_CHROOT_FOR_SCRIPTS=1
67} 69}
68 70
71do_install_append_class-nativesdk() {
72 create_wrapper ${D}/${bindir}/dnf \
73 RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm \
74 RPM_NO_CHROOT_FOR_SCRIPTS=1
75}
76
69SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \ 77SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \
70 dnf-automatic.service dnf-automatic.timer \ 78 dnf-automatic.service dnf-automatic.timer \
71 dnf-automatic-download.service dnf-automatic-download.timer \ 79 dnf-automatic-download.service dnf-automatic-download.timer \