[oe-commits] [openembedded-core] branch master-next updated: dpkg: Add PACKAGECONFIG for liblzma and enable it

git at git.openembedded.org git at git.openembedded.org
Sat Apr 1 07:15:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/master-next by this push:
     new 97b2a20  dpkg: Add PACKAGECONFIG for liblzma and enable it
97b2a20 is described below

commit 97b2a20b55acf76ebaacff0054e0f3c2b4236847
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Fri Mar 31 14:39:16 2017 +0100

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/dpkg/dpkg.inc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 6abe3ae..870117a 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -4,8 +4,8 @@ SECTION = "base"
 
 DEPENDS = "zlib bzip2 perl ncurses"
 DEPENDS_class-native = "bzip2-replacement-native zlib-native virtual/update-alternatives-native gettext-native perl-native"
-RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} xz perl"
-RDEPENDS_${PN}_class-native = "xz-native"
+RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} perl"
+RDEPENDS_${PN}_class-native = ""
 
 UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/"
 
@@ -28,10 +28,12 @@ EXTRA_OECONF = "\
 		--enable-start-stop-daemon \
 		--with-libz \
 		--with-libbz2 \
-		--without-liblzma \
 		--without-libselinux \
 		"
 
+PACKAGECONFIG = "liblzma"
+PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz"
+
 EXTRA_OECONF += "TAR=tar"
 EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list