diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-31 14:39:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-01 23:28:19 +0100 |
commit | 2bdfce59bde8a0a4a10327cf87e7f2a5a0207c0c (patch) | |
tree | d0766872ac363ccace1e346051b9a8cf73ded4f9 /meta | |
parent | 19e99786beeaf792094a4ed9859de00c064674b2 (diff) | |
download | poky-2bdfce59bde8a0a4a10327cf87e7f2a5a0207c0c.tar.gz |
dpkg: Add PACKAGECONFIG for liblzma and enable it
liblzma is part of xz and we already build it but configure it out. This makes
no sense. Enabling it means we gain multithreaded compression and it speeds
dpkg-deb up massively. It also removes the fork overhead of separate xz processes.
Turning the existing config into a PACKAGECONFIG and turning it on by default
therefore makes best use of what we have available.
The manual RDEPENDS are no longer needed since it uses liblzma which is picked
up by the shlibs code magically.
(From OE-Core rev: 97b2a20b55acf76ebaacff0054e0f3c2b4236847)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 6abe3ae062..870117a325 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -4,8 +4,8 @@ SECTION = "base" | |||
4 | 4 | ||
5 | DEPENDS = "zlib bzip2 perl ncurses" | 5 | DEPENDS = "zlib bzip2 perl ncurses" |
6 | DEPENDS_class-native = "bzip2-replacement-native zlib-native virtual/update-alternatives-native gettext-native perl-native" | 6 | DEPENDS_class-native = "bzip2-replacement-native zlib-native virtual/update-alternatives-native gettext-native perl-native" |
7 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} xz perl" | 7 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} perl" |
8 | RDEPENDS_${PN}_class-native = "xz-native" | 8 | RDEPENDS_${PN}_class-native = "" |
9 | 9 | ||
10 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" | 10 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" |
11 | 11 | ||
@@ -28,10 +28,12 @@ EXTRA_OECONF = "\ | |||
28 | --enable-start-stop-daemon \ | 28 | --enable-start-stop-daemon \ |
29 | --with-libz \ | 29 | --with-libz \ |
30 | --with-libbz2 \ | 30 | --with-libbz2 \ |
31 | --without-liblzma \ | ||
32 | --without-libselinux \ | 31 | --without-libselinux \ |
33 | " | 32 | " |
34 | 33 | ||
34 | PACKAGECONFIG = "liblzma" | ||
35 | PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz" | ||
36 | |||
35 | EXTRA_OECONF += "TAR=tar" | 37 | EXTRA_OECONF += "TAR=tar" |
36 | EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}" | 38 | EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}" |
37 | 39 | ||