aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2016-10-23 20:37:20 +0000
committerAndreas Oberritter <obi@opendreambox.org>2017-06-26 22:57:17 +0200
commitcca7834709f04b2c3daba2d3e136fa455460d7c4 (patch)
tree3162cd50920c9855e5460970ca8173430bac8110
parent40fb052b31035726a699ec574d72fc567ecbde61 (diff)
downloadopenembedded-core-contrib-cca7834709f04b2c3daba2d3e136fa455460d7c4.tar.gz
dpkg: enable nativesdk
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 8c88a324e3..b0c351f99b 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -15,6 +15,7 @@ SYSTEMD_SERVICE_${PN} = "dpkg-configure.service"
export PERL = "${bindir}/perl"
PERL_class-native = "${STAGING_BINDIR_NATIVE}/perl-native/perl"
+PERL_class-nativesdk = "${STAGING_BINDIR_NATIVE}/perl-native/perl"
export PERL_LIBDIR = "${libdir}/perl"
PERL_LIBDIR_class-native = "${libdir}/perl-native/perl"
@@ -43,7 +44,7 @@ do_install_append_class-native() {
sed -i -e 's|^#!${PERL}|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-*
}
-do_install_append () {
+do_install_append_class-target () {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dpkg-configure.service ${D}${systemd_unitdir}/system
sed -e 's,@BASE_BINDIR@,${base_bindir},g' \
@@ -57,10 +58,12 @@ PACKAGES =+ "dpkg-perl dselect libdpkg-perl update-alternatives-dpkg"
RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} run-postinsts perl"
RDEPENDS_${PN}_class-native = ""
+RDEPENDS_${PN}_class-nativesdk = "nativesdk-${VIRTUAL-RUNTIME_update-alternatives} nativesdk-perl"
RSUGGESTS_${PN} = "apt"
RDEPENDS_dpkg-perl = "binutils libdpkg-perl make xz"
RRECOMMENDS_dpkg-perl = "gnupg gpgv"
+RRECOMMENDS_dpkg-perl_class-nativesdk = ""
RDEPENDS_dselect = "dpkg"
RSUGGESTS_dselect = "perl"
@@ -108,4 +111,4 @@ FILES_update-alternatives-dpkg = " \
PKG_dpkg-dev = "libdpkg-dev"
PKG_dpkg-perl = "dpkg-dev"
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"