summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc25
1 files changed, 4 insertions, 21 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index fe4732d1db..fee7a75814 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -9,15 +9,8 @@ RDEPENDS_${PN}_class-native = ""
9 9
10UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" 10UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/"
11 11
12inherit autotools gettext perlnative pkgconfig systemd perl-version 12inherit autotools gettext perlnative pkgconfig perl-version
13 13
14python () {
15 if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
16 pn = d.getVar('PN')
17 d.setVar('SYSTEMD_SERVICE_%s' % (pn), 'dpkg-configure.service')
18}
19
20export PERL = "${bindir}/perl"
21PERL_class-native = "${STAGING_BINDIR_NATIVE}/perl-native/perl" 14PERL_class-native = "${STAGING_BINDIR_NATIVE}/perl-native/perl"
22 15
23export PERL_LIBDIR = "${libdir}/perl/${@get_perl_version(d)}" 16export PERL_LIBDIR = "${libdir}/perl/${@get_perl_version(d)}"
@@ -29,14 +22,14 @@ EXTRA_OECONF = "\
29 --with-libz \ 22 --with-libz \
30 --with-libbz2 \ 23 --with-libbz2 \
31 --without-libselinux \ 24 --without-libselinux \
25 TAR=tar \
32 " 26 "
33 27
28EXTRA_OECONF_append_class-target = " --disable-update-alternatives DEB_HOST_ARCH=${DPKG_ARCH}"
29
34PACKAGECONFIG = "liblzma" 30PACKAGECONFIG = "liblzma"
35PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz" 31PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz"
36 32
37EXTRA_OECONF += "TAR=tar"
38EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}"
39
40do_install_append () { 33do_install_append () {
41 if [ "${PN}" = "dpkg-native" ]; then 34 if [ "${PN}" = "dpkg-native" ]; then
42 # update-alternatives doesn't have an offline mode 35 # update-alternatives doesn't have an offline mode
@@ -45,16 +38,6 @@ do_install_append () {
45 else 38 else
46 sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-* 39 sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-*
47 fi 40 fi
48
49 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)};then
50 install -d ${D}${systemd_unitdir}/system
51 install -m 0644 ${WORKDIR}/dpkg-configure.service ${D}${systemd_unitdir}/system/
52 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
53 -e 's,@SYSCONFDIR@,${sysconfdir},g' \
54 -e 's,@BINDIR@,${bindir},g' \
55 -e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \
56 ${D}${systemd_unitdir}/system/dpkg-configure.service
57 fi
58} 41}
59 42
60PROV = "virtual/update-alternatives" 43PROV = "virtual/update-alternatives"