diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-05 10:52:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-05 11:16:46 +0000 |
commit | 67ac9d6254ac8636cbb7247349b1660b1de9b8fb (patch) | |
tree | bfaa662487cc35543e088e0b9e92b742df011ea3 /meta | |
parent | 5812fc9e20f398504bcddb8fc7ac38f39503acc7 (diff) | |
download | poky-67ac9d6254ac8636cbb7247349b1660b1de9b8fb.tar.gz |
e2fsprogs: Ensure we use the right mke2fs.conf when restoring from sstate
If we don't do this, we can use an mke2fs.conf from a different path which
may contain incompatible flags and lead to obtuse build failures such as:
Invalid filesystem option set: has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
To fix this, wrap the mke2fs binary and its hardlinks and point at the
correct configuration file.
In particular this fixes conflicts between master and jethro builds
affecting the main autobuilder.
(From OE-Core rev: 0ef6277463517fb0e52b4bd65ca5f6ab42315773)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb index ce7d2e8628..a8edeefc97 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | |||
@@ -61,12 +61,27 @@ do_install () { | |||
61 | install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/ | 61 | install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/ |
62 | } | 62 | } |
63 | 63 | ||
64 | # Need to find the right mke2fs.conf file | ||
65 | e2fsprogs_conf_fixup () { | ||
66 | for i in mke2fs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev; do | ||
67 | create_wrapper ${D}${base_sbindir}/$i MKE2FS_CONFIG=${sysconfdir}/mke2fs.conf | ||
68 | done | ||
69 | } | ||
70 | |||
64 | do_install_append_class-target() { | 71 | do_install_append_class-target() { |
65 | # Clean host path in compile_et, mk_cmds | 72 | # Clean host path in compile_et, mk_cmds |
66 | sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et | 73 | sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et |
67 | sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds | 74 | sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds |
68 | } | 75 | } |
69 | 76 | ||
77 | do_install_append_class-native() { | ||
78 | e2fsprogs_conf_fixup | ||
79 | } | ||
80 | |||
81 | do_install_append_class-nativesdk() { | ||
82 | e2fsprogs_conf_fixup | ||
83 | } | ||
84 | |||
70 | RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" | 85 | RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" |
71 | RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" | 86 | RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" |
72 | 87 | ||