diff options
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb new file mode 100644 index 0000000000..e4695fbbec --- /dev/null +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.bb | |||
@@ -0,0 +1,108 @@ | |||
1 | require e2fsprogs.inc | ||
2 | |||
3 | SRC_URI += "file://acinclude.m4 \ | ||
4 | file://remove.ldconfig.call.patch \ | ||
5 | file://quiet-debugfs.patch \ | ||
6 | file://run-ptest \ | ||
7 | file://ptest.patch \ | ||
8 | file://mkdir.patch \ | ||
9 | " | ||
10 | |||
11 | SRCREV = "d6adf070b0e85f209c0d7f310188b134b5cb7180" | ||
12 | UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+\.\d+(\.\d+)*)$" | ||
13 | |||
14 | EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \ | ||
15 | --enable-elf-shlibs --disable-libuuid --disable-uuidd \ | ||
16 | --disable-libblkid --enable-verbose-makecmds" | ||
17 | |||
18 | EXTRA_OECONF_darwin = "--libdir=${base_libdir} --sbindir=${base_sbindir} --enable-bsd-shlibs" | ||
19 | |||
20 | PACKAGECONFIG ??= "" | ||
21 | PACKAGECONFIG[fuse] = '--enable-fuse2fs,--disable-fuse2fs,fuse' | ||
22 | |||
23 | do_configure_prepend () { | ||
24 | cp ${WORKDIR}/acinclude.m4 ${S}/ | ||
25 | } | ||
26 | |||
27 | do_install () { | ||
28 | oe_runmake 'DESTDIR=${D}' install | ||
29 | oe_runmake 'DESTDIR=${D}' install-libs | ||
30 | # We use blkid from util-linux now so remove from here | ||
31 | rm -f ${D}${base_libdir}/libblkid* | ||
32 | rm -rf ${D}${includedir}/blkid | ||
33 | rm -f ${D}${base_libdir}/pkgconfig/blkid.pc | ||
34 | rm -f ${D}${base_sbindir}/blkid | ||
35 | rm -f ${D}${base_sbindir}/fsck | ||
36 | rm -f ${D}${base_sbindir}/findfs | ||
37 | |||
38 | # e2initrd_helper and the pkgconfig files belong in libdir | ||
39 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
40 | install -d ${D}${libdir} | ||
41 | mv ${D}${base_libdir}/e2initrd_helper ${D}${libdir} | ||
42 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
43 | fi | ||
44 | |||
45 | oe_multilib_header ext2fs/ext2_types.h | ||
46 | install -d ${D}${base_bindir} | ||
47 | mv ${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs | ||
48 | |||
49 | install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/ | ||
50 | } | ||
51 | |||
52 | # Need to find the right mke2fs.conf file | ||
53 | e2fsprogs_conf_fixup () { | ||
54 | for i in mke2fs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev; do | ||
55 | create_wrapper ${D}${base_sbindir}/$i MKE2FS_CONFIG=${sysconfdir}/mke2fs.conf | ||
56 | done | ||
57 | } | ||
58 | |||
59 | do_install_append_class-target() { | ||
60 | # Clean host path in compile_et, mk_cmds | ||
61 | sed -i -e "s,ET_DIR=\"${S}/lib/et\",ET_DIR=\"${datadir}/et\",g" ${D}${bindir}/compile_et | ||
62 | sed -i -e "s,SS_DIR=\"${S}/lib/ss\",SS_DIR=\"${datadir}/ss\",g" ${D}${bindir}/mk_cmds | ||
63 | } | ||
64 | |||
65 | do_install_append_class-native() { | ||
66 | e2fsprogs_conf_fixup | ||
67 | } | ||
68 | |||
69 | do_install_append_class-nativesdk() { | ||
70 | e2fsprogs_conf_fixup | ||
71 | } | ||
72 | |||
73 | RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" | ||
74 | RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" | ||
75 | |||
76 | PACKAGES =+ "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-badblocks e2fsprogs-resize2fs" | ||
77 | PACKAGES =+ "libcomerr libss libe2p libext2fs" | ||
78 | |||
79 | FILES_e2fsprogs-resize2fs = "${base_sbindir}/resize2fs*" | ||
80 | FILES_e2fsprogs-e2fsck = "${base_sbindir}/e2fsck ${base_sbindir}/fsck.ext*" | ||
81 | FILES_e2fsprogs-mke2fs = "${base_sbindir}/mke2fs ${base_sbindir}/mkfs.ext* ${sysconfdir}/mke2fs.conf" | ||
82 | FILES_e2fsprogs-tune2fs = "${base_sbindir}/tune2fs ${base_sbindir}/e2label" | ||
83 | FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks" | ||
84 | FILES_libcomerr = "${base_libdir}/libcom_err.so.*" | ||
85 | FILES_libss = "${base_libdir}/libss.so.*" | ||
86 | FILES_libe2p = "${base_libdir}/libe2p.so.*" | ||
87 | FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*" | ||
88 | FILES_${PN}-dev += "${datadir}/*/*.awk ${datadir}/*/*.sed ${base_libdir}/*.so" | ||
89 | |||
90 | ALTERNATIVE_${PN} = "chattr" | ||
91 | ALTERNATIVE_PRIORITY = "100" | ||
92 | ALTERNATIVE_LINK_NAME[chattr] = "${base_bindir}/chattr" | ||
93 | ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs" | ||
94 | |||
95 | ALTERNATIVE_${PN}-doc = "fsck.8" | ||
96 | ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8" | ||
97 | |||
98 | RDEPENDS_${PN}-ptest += "${PN} ${PN}-tune2fs coreutils procps bash" | ||
99 | |||
100 | do_compile_ptest() { | ||
101 | oe_runmake -C ${B}/tests | ||
102 | } | ||
103 | |||
104 | do_install_ptest() { | ||
105 | cp -a ${B}/tests ${D}${PTEST_PATH}/test | ||
106 | cp -a ${S}/tests/* ${D}${PTEST_PATH}/test | ||
107 | sed -e 's!../e2fsck/e2fsck!e2fsck!g' -i ${D}${PTEST_PATH}/test/*/expect* | ||
108 | } | ||