summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2019-02-22 01:47:16 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 10:43:07 +0000
commit70e2baa4bd256b7ab0b177331c37883ab32bb8c1 (patch)
treee4fe5b2b14589699b087a0f55bb76041a5285ab6 /meta/recipes-devtools/dpkg/dpkg.inc
parent4cae7e17b13dbe162aaadb43b9b8540f88d84891 (diff)
downloadpoky-70e2baa4bd256b7ab0b177331c37883ab32bb8c1.tar.gz
dpkg: 1.18.25 -> 1.19.4
Upgrade dpkg from 1.18.25 to 1.19.4: * update SRC_URI which DEBIAN_MIRROR * un-export PERL which causes script scripts/dpkg-architecture.pl fails to get cpu type and package arch * add configure option '--disable-update-alternatives' which causes installed-vs-shipped issue * add patch for dpkg-native to resolve host tar may not support options --owner=NAME:ID and --group=NAME:ID * update context of patches * drop dpkg-configure.service that apt provides a systemd timer to do it (From OE-Core rev: 5185b6fe3d4fa9b53baffa6ee419da60ac056da2) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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"