Bug 6268

Summary: libarchive has missing dependency on e2fsprogs for ext2 FS headers
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, meta.mr.watcher, meta.watcher
Version: 1.7   
Target Milestone: 1.7 M1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2014-05-06 09:16:43 UTC
libarchive looks for ext2fs headers during configure, and if it finds them it will expect to find them during compile, or on the rare occasion when they aren't it will fail:

 libarchive/archive_entry.c:59:55: fatal error: ext2fs/ext2_fs.h: No such file or directory

There is no way to hard-disable this dependency. Equally though just adding e2fsprogs to DEPENDS is problematic:

1) It adds time to the build, and since all that libarchive needs is the header (for some constant values) it's a little bit extreme to require e2fsprogs to be fully compiled just to provide the header.

2) nativesdk-e2fsprogs didn't build last time I tried

My proposed solution is to use the header files from e2fsprogs-native, since that's most likely to be built anyway as part of a normal build.