From 0ff62b0462f3f64672bd4704de9a192eb1a730d1 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Fri, 23 Jul 2010 15:17:06 +0800 Subject: expat: use gzip-native for unpack expat 2.0.1 archive is generated with DOS format, which causes CRC error for some version of gzip (<1.4), e.g. on Unbuntu 10.04. This commit adds do_unpack dependency to gzip-native, and thus to use local compiled binary to address this issue. Since 1.4 is a known version solving this issue, also specify a default version for gzip-native also move most lines into expat.inc as cleanup Signed-off-by: Kevin Tian --- meta/packages/expat/expat.inc | 14 ++++++++++++-- meta/packages/expat/expat_2.0.1.bb | 11 +---------- 2 files changed, 13 insertions(+), 12 deletions(-) (limited to 'meta/packages') diff --git a/meta/packages/expat/expat.inc b/meta/packages/expat/expat.inc index d47e34062..8c5010e48 100644 --- a/meta/packages/expat/expat.inc +++ b/meta/packages/expat/expat.inc @@ -3,7 +3,17 @@ HOMEPAGE = "http://expat.sourceforge.net/" SECTION = "libs" LICENSE = "MIT" -SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.gz" +SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.gz \ + file://autotools.patch" -inherit autotools +inherit autotools lib_package +# This package uses an archive format known to have issue with some +# versions of gzip +do_unpack[depends] += "gzip-native:do_populate_sysroot" + +do_configure_prepend () { + rm -f ${S}/conftools/libtool.m4 +} + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta/packages/expat/expat_2.0.1.bb b/meta/packages/expat/expat_2.0.1.bb index da2682e41..9983fe583 100644 --- a/meta/packages/expat/expat_2.0.1.bb +++ b/meta/packages/expat/expat_2.0.1.bb @@ -1,12 +1,3 @@ require expat.inc -PR = "r0" - -SRC_URI += "file://autotools.patch;" - -inherit lib_package -do_configure_prepend () { - rm -f ${S}/conftools/libtool.m4 -} - -BBCLASSEXTEND = "native nativesdk" +PR = "r0" -- cgit v1.2.3