diff options
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | 88 |
1 files changed, 88 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 new file mode 100644 index 0000000000..70ccdfd540 --- /dev/null +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | |||
@@ -0,0 +1,88 @@ | |||
1 | require e2fsprogs.inc | ||
2 | |||
3 | |||
4 | SRC_URI += "file://acinclude.m4 \ | ||
5 | file://remove.ldconfig.call.patch \ | ||
6 | file://fix-icache.patch \ | ||
7 | file://quiet-debugfs.patch \ | ||
8 | file://0001-mke2fs-add-the-ability-to-copy-files-from-a-given-di.patch \ | ||
9 | file://0002-misc-create_inode.c-copy-files-recursively.patch \ | ||
10 | file://0003-misc-create_inode.c-create-special-file.patch \ | ||
11 | file://0004-misc-create_inode.c-create-symlink.patch \ | ||
12 | file://0005-misc-create_inode.c-copy-regular-file.patch \ | ||
13 | file://0006-misc-create_inode.c-create-directory.patch \ | ||
14 | file://0007-misc-create_inode.c-set-owner-mode-time-for-the-inod.patch \ | ||
15 | file://0008-mke2fs.c-add-an-option-d-root-directory.patch \ | ||
16 | file://0009-misc-create_inode.c-handle-hardlinks.patch \ | ||
17 | file://0010-debugfs-use-the-functions-in-misc-create_inode.c.patch \ | ||
18 | file://0011-mke2fs.8.in-update-the-manual-for-the-d-option.patch \ | ||
19 | file://0012-Fix-musl-build-failures.patch \ | ||
20 | file://0001-e2fsprogs-fix-cross-compilation-problem.patch \ | ||
21 | file://misc-mke2fs.c-return-error-when-failed-to-populate-fs.patch \ | ||
22 | file://cache_inode.patch \ | ||
23 | file://CVE-2015-0247.patch \ | ||
24 | " | ||
25 | |||
26 | SRC_URI[md5sum] = "3f8e41e63b432ba114b33f58674563f7" | ||
27 | SRC_URI[sha256sum] = "2f92ac06e92fa00f2ada3ee67dad012d74d685537527ad1241d82f2d041f2802" | ||
28 | |||
29 | EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} --enable-elf-shlibs --disable-libuuid --disable-uuidd --enable-verbose-makecmds" | ||
30 | EXTRA_OECONF_darwin = "--libdir=${base_libdir} --sbindir=${base_sbindir} --enable-bsd-shlibs" | ||
31 | |||
32 | do_configure_prepend () { | ||
33 | cp ${WORKDIR}/acinclude.m4 ${S}/ | ||
34 | } | ||
35 | |||
36 | do_install () { | ||
37 | oe_runmake 'DESTDIR=${D}' install | ||
38 | oe_runmake 'DESTDIR=${D}' install-libs | ||
39 | # We use blkid from util-linux now so remove from here | ||
40 | rm -f ${D}${base_libdir}/libblkid* | ||
41 | rm -rf ${D}${includedir}/blkid | ||
42 | rm -f ${D}${base_libdir}/pkgconfig/blkid.pc | ||
43 | rm -f ${D}${base_sbindir}/blkid | ||
44 | rm -f ${D}${base_sbindir}/fsck | ||
45 | rm -f ${D}${base_sbindir}/findfs | ||
46 | |||
47 | # e2initrd_helper and the pkgconfig files belong in libdir | ||
48 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
49 | install -d ${D}${libdir} | ||
50 | mv ${D}${base_libdir}/e2initrd_helper ${D}${libdir} | ||
51 | mv ${D}${base_libdir}/pkgconfig ${D}${libdir} | ||
52 | fi | ||
53 | |||
54 | oe_multilib_header ext2fs/ext2_types.h | ||
55 | install -d ${D}${base_bindir} | ||
56 | mv ${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs | ||
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 | RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" | ||
66 | RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck" | ||
67 | |||
68 | PACKAGES =+ "e2fsprogs-e2fsck e2fsprogs-mke2fs e2fsprogs-tune2fs e2fsprogs-badblocks" | ||
69 | PACKAGES =+ "libcomerr libss libe2p libext2fs" | ||
70 | |||
71 | FILES_e2fsprogs-e2fsck = "${base_sbindir}/e2fsck ${base_sbindir}/fsck.ext*" | ||
72 | FILES_e2fsprogs-mke2fs = "${base_sbindir}/mke2fs ${base_sbindir}/mkfs.ext* ${sysconfdir}/mke2fs.conf" | ||
73 | FILES_e2fsprogs-tune2fs = "${base_sbindir}/tune2fs ${base_sbindir}/e2label" | ||
74 | FILES_e2fsprogs-badblocks = "${base_sbindir}/badblocks" | ||
75 | FILES_libcomerr = "${base_libdir}/libcom_err.so.*" | ||
76 | FILES_libss = "${base_libdir}/libss.so.*" | ||
77 | FILES_libe2p = "${base_libdir}/libe2p.so.*" | ||
78 | FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*" | ||
79 | FILES_${PN}-dev += "${datadir}/*/*.awk ${datadir}/*/*.sed ${base_libdir}/*.so" | ||
80 | |||
81 | BBCLASSEXTEND = "native" | ||
82 | |||
83 | inherit update-alternatives | ||
84 | |||
85 | ALTERNATIVE_${PN} = "chattr" | ||
86 | ALTERNATIVE_PRIORITY = "100" | ||
87 | ALTERNATIVE_LINK_NAME[chattr] = "${base_bindir}/chattr" | ||
88 | ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs" | ||