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