summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/e2fsprogs
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-05 10:52:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-05 11:16:41 +0000
commit00ccf51f175c469f35cba63e1cca2d96bcc1e804 (patch)
tree6c9eb9879ca622bdfac1be83432a449d3295c1c4 /meta/recipes-devtools/e2fsprogs
parent66a6ec2e9aae9c182c55a7a8cf0cd20f2f16e654 (diff)
downloadpoky-00ccf51f175c469f35cba63e1cca2d96bcc1e804.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: 11a6227759515da433230eb44eca1a4cb2ac3b14) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs')
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
index 48af43b117..9ade1ff684 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_git.bb
@@ -50,12 +50,27 @@ do_install () {
50 install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/ 50 install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/
51} 51}
52 52
53# Need to find the right mke2fs.conf file
54e2fsprogs_conf_fixup () {
55 for i in mke2fs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev; do
56 create_wrapper ${D}${base_sbindir}/$i MKE2FS_CONFIG=${sysconfdir}/mke2fs.conf
57 done
58}
59
53do_install_append_class-target() { 60do_install_append_class-target() {
54 # Clean host path in compile_et, mk_cmds 61 # Clean host path in compile_et, mk_cmds
55 sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et 62 sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et
56 sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds 63 sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds
57} 64}
58 65
66do_install_append_class-native() {
67 e2fsprogs_conf_fixup
68}
69
70do_install_append_class-nativesdk() {
71 e2fsprogs_conf_fixup
72}
73
59RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" 74RDEPENDS_e2fsprogs = "e2fsprogs-badblocks"
60RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" 75RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck"
61 76