summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-11-05 21:08:52 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-06 11:40:38 +0000
commitb60383c1b94c10b81da19602b162daec547a3565 (patch)
tree7b06966fe2032b658e45431c9205971c7a079792
parent19dc8bf950ae2dcca3e8165eaf122d3c1cb7006e (diff)
downloadpoky-b60383c1b94c10b81da19602b162daec547a3565.tar.gz
libarchive: avoid dependency on e2fsprogs
libarchive's configure script looks for ext2fs/ext2_fs.h in order to use some defines for file attributes support if present (but doesn't link to any additional libraries.) There is no configure option to disable this, and if e2fsprogs is rebuilding between do_configure and do_compile you can currently get a failure. Because it doesn't need anything else from e2fsprogs, and e2fsprogs isn't currently buildable for nativesdk anyway, copy the headers in from e2fsprogs-native which we're likely to have built already (and add it to DEPENDS just to be sure we have.) Fixes [YOCTO #6268]. (From OE-Core master rev: ad754e46ad477acfbe7543187a5c38bc333b8612) (From OE-Core rev: 7504c2e715d675775e166a52ae83cf48504add19) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.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_3.1.2.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb
index f90dc022dc..99a924c551 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb
@@ -5,6 +5,8 @@ SECTION = "devel"
5LICENSE = "BSD" 5LICENSE = "BSD"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b4e3ffd607d6686c6cb2f63394370841" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b4e3ffd607d6686c6cb2f63394370841"
7 7
8DEPENDS = "e2fsprogs-native"
9
8PACKAGECONFIG ?= "libxml2 zlib bz2" 10PACKAGECONFIG ?= "libxml2 zlib bz2"
9 11
10PACKAGECONFIG_append_class-target = "\ 12PACKAGECONFIG_append_class-target = "\
@@ -35,4 +37,13 @@ SRC_URI[sha256sum] = "eb87eacd8fe49e8d90c8fdc189813023ccc319c5e752b01fb6ad0cc7b2
35 37
36inherit autotools-brokensep lib_package 38inherit autotools-brokensep lib_package
37 39
40CPPFLAGS += "-I${WORKDIR}/extra-includes"
41
42do_configure[cleandirs] += "${WORKDIR}/extra-includes"
43do_configure_prepend() {
44 # We just need the headers for some type constants, so no need to
45 # build all of e2fsprogs for the target
46 cp -R ${STAGING_INCDIR_NATIVE}/ext2fs ${WORKDIR}/extra-includes/
47}
48
38BBCLASSEXTEND = "native nativesdk" 49BBCLASSEXTEND = "native nativesdk"