summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 04fe85c4a8..3419aa56bf 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -26,6 +26,7 @@ EXTRA_OECONF = "\
26 " 26 "
27 27
28EXTRA_OECONF_append_class-target = " --disable-update-alternatives DEB_HOST_ARCH=${DPKG_ARCH}" 28EXTRA_OECONF_append_class-target = " --disable-update-alternatives DEB_HOST_ARCH=${DPKG_ARCH}"
29EXTRA_OECONF_append_class-nativesdk = " --disable-update-alternatives DEB_HOST_ARCH=${DPKG_ARCH}"
29 30
30PACKAGECONFIG = "liblzma" 31PACKAGECONFIG = "liblzma"
31PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz" 32PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz"
@@ -46,14 +47,15 @@ do_install_append () {
46 if [ "${PN}" = "dpkg-native" ]; then 47 if [ "${PN}" = "dpkg-native" ]; then
47 # update-alternatives doesn't have an offline mode 48 # update-alternatives doesn't have an offline mode
48 rm ${D}${bindir}/update-alternatives 49 rm ${D}${bindir}/update-alternatives
49 sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-* 50 sed -i -e 's|^#!.*${STAGING_BINDIR_NATIVE}/perl-native.*/perl|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-*
50 else 51 else
51 sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-* 52 sed -i -e 's|^#!.*${STAGING_BINDIR_NATIVE}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-*
52 fi 53 fi
53} 54}
54 55
55PROV = "virtual/update-alternatives" 56PROV = "virtual/update-alternatives"
56PROV_class-native = "" 57PROV_class-native = ""
58PROV_class-nativesdk = ""
57 59
58PROVIDES += "${PROV}" 60PROVIDES += "${PROV}"
59 61
@@ -93,7 +95,8 @@ ALTERNATIVE_${PN}-start-stop = "start-stop-daemon"
93ALTERNATIVE_LINK_NAME[start-stop-daemon] = "${sbindir}/start-stop-daemon" 95ALTERNATIVE_LINK_NAME[start-stop-daemon] = "${sbindir}/start-stop-daemon"
94ALTERNATIVE_PRIORITY = "100" 96ALTERNATIVE_PRIORITY = "100"
95 97
96RDEPENDS_${PN} += "${PN}-start-stop" 98EXTRA_RDPENDS = "ldconfig"
99EXTRA_RDPENDS_libc-musl = ""
100RDEPENDS_${PN} += "${PN}-start-stop ${EXTRA_RDPENDS}"
97 101
98 102BBCLASSEXTEND = "native nativesdk"
99BBCLASSEXTEND = "native"