diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2013-05-24 15:22:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-16 11:18:10 +0100 |
commit | 3e8934b74c3ab4a1f1d515a5f4660742bbf796e8 (patch) | |
tree | 55bc402a6f2c0c3340e49422fc30eafdf41e6cd5 | |
parent | 678adec516263dc244e6bcdd4284f9014492ccbe (diff) | |
download | poky-3e8934b74c3ab4a1f1d515a5f4660742bbf796e8.tar.gz |
libarchive: Fix build dependencies
Move to using the PACKAGECONFIG mechanism to select configure options and
dependencies. Without this the system will attempt to discover various
dependencies, and usually does so incorrectly.
We also ensure that the nativesdk version does not inherit any of the
DISTRO_FEATURES. We shouldn't need acl or xattr support for nativesdk.
(From OE-Core master rev: d9f9bfed56ef8562256fc01c3e42e15734230c3a)
(From OE-Core rev: bd8df0e655dbe17f5cdd094a7386a6a1ab54a39e)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/libarchive/libarchive_2.8.5.bb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive_2.8.5.bb b/meta/recipes-extended/libarchive/libarchive_2.8.5.bb index 5cf13e6eb4..06989d3189 100644 --- a/meta/recipes-extended/libarchive/libarchive_2.8.5.bb +++ b/meta/recipes-extended/libarchive/libarchive_2.8.5.bb | |||
@@ -5,7 +5,25 @@ LICENSE = "BSD" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4255e2e6f0349a4ac8fbd68459296e46" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4255e2e6f0349a4ac8fbd68459296e46" |
6 | PR = "r0" | 6 | PR = "r0" |
7 | 7 | ||
8 | DEPENDS = "libxml2" | 8 | PACKAGECONFIG ?= "libxml2 zlib bz2" |
9 | |||
10 | PACKAGECONFIG_class-target += "\ | ||
11 | ${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \ | ||
12 | ${@base_contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ | ||
13 | ${@base_contains('DISTRO_FEATURES', 'largefile', 'largefile', '', d)} \ | ||
14 | " | ||
15 | |||
16 | PACKAGECONFIG_class-nativesdk += "largefile" | ||
17 | |||
18 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," | ||
19 | PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr," | ||
20 | PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,," | ||
21 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib," | ||
22 | PACKAGECONFIG[bz2] = "--with-bz2lib,--without-bz2lib,bzip2," | ||
23 | PACKAGECONFIG[xz] = "--with-lzmadec --with-lzma,--without-lzmadec --without-lzma,xz," | ||
24 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl," | ||
25 | PACKAGECONFIG[libxml2] = "--with-xml2,--without-xml2,libxml2," | ||
26 | PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat," | ||
9 | 27 | ||
10 | SRC_URI = "http://libarchive.googlecode.com/files/libarchive-${PV}.tar.gz \ | 28 | SRC_URI = "http://libarchive.googlecode.com/files/libarchive-${PV}.tar.gz \ |
11 | file://0001-Patch-from-upstream-revision-1990.patch \ | 29 | file://0001-Patch-from-upstream-revision-1990.patch \ |