Bug 6268 - libarchive has missing dependency on e2fsprogs for ext2 FS headers
Summary: libarchive has missing dependency on e2fsprogs for ext2 FS headers
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: All Multiple
: Medium normal
Target Milestone: 1.7 M1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-06 09:16 UTC by Paul Eggleton
Modified: 2014-06-10 13:20 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.