1 |
commit: f92ad45800d581549d273730b49dd6a413ee530b |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 17 08:13:44 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 17 08:25:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f92ad458 |
7 |
|
8 |
sys-fs/e2fsprogs: Bump to version 1.43.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
|
12 |
sys-fs/e2fsprogs/Manifest | 1 + |
13 |
sys-fs/e2fsprogs/e2fsprogs-1.43.7.ebuild | 135 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 136 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/e2fsprogs/Manifest b/sys-fs/e2fsprogs/Manifest |
17 |
index 9f762bbfcfc..b6de354b21b 100644 |
18 |
--- a/sys-fs/e2fsprogs/Manifest |
19 |
+++ b/sys-fs/e2fsprogs/Manifest |
20 |
@@ -3,3 +3,4 @@ DIST e2fsprogs-1.43.3-missing_uninit_bg.patch 1317 SHA256 4a4a59215efde3b0b398a1 |
21 |
DIST e2fsprogs-1.43.3.tar.gz 7405892 SHA256 ce8ef1bbb0d4730f170167284fda156ac9d6bf18db2750eb94af619a81b19927 SHA512 77e753f77222a0a7a334d7d93c900ea6cb339ed40af29952e414fc4e45d8c5c01d67771978a941195effe666df965746c2b31977c5f05ff307429b978dac8dea WHIRLPOOL c90dea3d01a103b7d11d0611b1b005748065ae90f15a02f3bde4c4baf9403931b40d2024297a2e02a92d11841d35decf8a4715d682212d4641ff34bb2f80d5db |
22 |
DIST e2fsprogs-1.43.5.tar.gz 7596581 SHA256 466db1da11e227143fbdf6a401833e0ab17cf43d927f5baa4a7042b3ce8a3932 SHA512 c174a5110d59110cbc5e9982825993e18241a831b26bb5927447ad238172a51b5870b7431b38ce27f26761abf6af0249ddf1229f32be1c2ed58a67a9704991ed WHIRLPOOL 8aec75bd8e103226fb8d92da00cc52cdd86726336a34fd0cc54c0d85d816d190cb0f133aa2f271a637aaccab165a9c5b5feb0ad348d73685f1debd1d9ba91b03 |
23 |
DIST e2fsprogs-1.43.6.tar.gz 7466907 SHA256 233d70ac434cdfba792dc0f83944c0ec854468d604fb22325ae65c4adfc90239 SHA512 95e3e7def177de921d3204aeace4cb8243d79872468d3289cace0547798c84e92af253022deb803cd8c045411283b01431728a86b14b9e8b45cdd5dca739db66 WHIRLPOOL 862769b1775d87297c30a242a2578971435115ebf381156f0c16078a2ad0e19f03e8af41c93d00d6324a11af6d4cf333b0a1a8fe3eee76fcbb47fc825f3481c5 |
24 |
+DIST e2fsprogs-1.43.7.tar.gz 7492811 SHA256 87035f2eae8da5f9869f78ffc177969b4e3cf75a5da489521c1ffe4268e1a1c4 SHA512 71694c57d076517f6e1f2a5bffcbc49c32fcf11283e26739304f50ff0aae28646ea7af80dc85b636b87db57a0042a5bce82411e631f7d5c055440ebeadb90282 WHIRLPOOL 5fb000e6bbd4770c0361976c4b3d4874c91b005b5e9c0dad108fe428e56a147361d5d265abd8db4605819eb771740b4a362885cb76bf5661f815a434f3bd9a3a |
25 |
|
26 |
diff --git a/sys-fs/e2fsprogs/e2fsprogs-1.43.7.ebuild b/sys-fs/e2fsprogs/e2fsprogs-1.43.7.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e3cc852d20e |
29 |
--- /dev/null |
30 |
+++ b/sys-fs/e2fsprogs/e2fsprogs-1.43.7.ebuild |
31 |
@@ -0,0 +1,135 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+case ${PV} in |
38 |
+*_pre*) UP_PV="${PV%_pre*}-WIP-${PV#*_pre}" ;; |
39 |
+*) UP_PV=${PV} ;; |
40 |
+esac |
41 |
+ |
42 |
+inherit eutils flag-o-matic multilib toolchain-funcs |
43 |
+ |
44 |
+DESCRIPTION="Standard EXT2/EXT3/EXT4 filesystem utilities" |
45 |
+HOMEPAGE="http://e2fsprogs.sourceforge.net/" |
46 |
+SRC_URI="mirror://sourceforge/e2fsprogs/${PN}-${UP_PV}.tar.gz |
47 |
+ mirror://kernel/linux/kernel/people/tytso/e2fsprogs/v${UP_PV}/${PN}-${UP_PV}.tar.gz |
48 |
+ elibc_mintlib? ( mirror://gentoo/${PN}-1.42.9-mint-r1.patch.xz )" |
49 |
+ |
50 |
+LICENSE="GPL-2 BSD" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~m68k-mint" |
53 |
+IUSE="fuse nls static-libs elibc_FreeBSD" |
54 |
+ |
55 |
+RDEPEND="~sys-libs/${PN}-libs-${PV} |
56 |
+ >=sys-apps/util-linux-2.16 |
57 |
+ fuse? ( sys-fs/fuse ) |
58 |
+ nls? ( virtual/libintl )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ nls? ( sys-devel/gettext ) |
61 |
+ virtual/pkgconfig |
62 |
+ sys-apps/texinfo" |
63 |
+ |
64 |
+S="${WORKDIR}/${P%_pre*}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}"/${PN}-1.41.8-makefile.patch |
68 |
+ "${FILESDIR}"/${PN}-1.40-fbsd.patch |
69 |
+ "${FILESDIR}"/${PN}-1.42.13-fix-build-cflags.patch #516854 |
70 |
+ |
71 |
+ # Upstream patches (can usually removed with next version bump) |
72 |
+) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ if [[ ${CHOST} == *-mint* ]] ; then |
76 |
+ PATCHES+=( "${WORKDIR}"/${PN}-1.42.9-mint-r1.patch ) |
77 |
+ fi |
78 |
+ |
79 |
+ default |
80 |
+ |
81 |
+ # blargh ... trick e2fsprogs into using e2fsprogs-libs |
82 |
+ rm -rf doc |
83 |
+ sed -i -r \ |
84 |
+ -e 's:@LIBINTL@:@LTLIBINTL@:' \ |
85 |
+ -e '/^(STATIC_)?LIB(COM_ERR|SS)/s:[$][(]LIB[)]/lib([^@]*)@(STATIC_)?LIB_EXT@:-l\1:' \ |
86 |
+ -e '/^DEP(STATIC_)?LIB(COM_ERR|SS)/s:=.*:=:' \ |
87 |
+ MCONFIG.in || die "muck libs" #122368 |
88 |
+ sed -i -r \ |
89 |
+ -e '/^LIB_SUBDIRS/s:lib/(et|ss)::g' \ |
90 |
+ Makefile.in || die "remove subdirs" |
91 |
+ ln -s $(which mk_cmds) lib/ss/ || die |
92 |
+ |
93 |
+ # Avoid rebuild |
94 |
+ echo '#include_next <ss/ss_err.h>' > lib/ss/ss_err.h |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ # Keep the package from doing silly things #261411 |
99 |
+ export VARTEXFONTS="${T}/fonts" |
100 |
+ |
101 |
+ # needs open64() prototypes and friends |
102 |
+ append-cppflags -D_GNU_SOURCE |
103 |
+ |
104 |
+ local myeconfargs=( |
105 |
+ --with-root-prefix="${EPREFIX}/" |
106 |
+ --enable-symlink-install |
107 |
+ $(tc-is-static-only || echo --enable-elf-shlibs) |
108 |
+ $(tc-has-tls || echo --disable-tls) |
109 |
+ --without-included-gettext |
110 |
+ $(use_enable fuse fuse2fs) |
111 |
+ $(use_enable nls) |
112 |
+ --disable-libblkid |
113 |
+ --disable-libuuid |
114 |
+ --disable-fsck |
115 |
+ --disable-uuidd |
116 |
+ ) |
117 |
+ ac_cv_path_LDCONFIG=: econf "${myeconfargs[@]}" |
118 |
+ if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then |
119 |
+ eerror "INTL sanity check failed, aborting build." |
120 |
+ eerror "Please post your ${S}/config.log file as an" |
121 |
+ eerror "attachment to https://bugs.gentoo.org/show_bug.cgi?id=81096" |
122 |
+ die "Preventing included intl cruft from building" |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+src_compile() { |
127 |
+ emake V=1 COMPILE_ET=compile_et MK_CMDS=mk_cmds |
128 |
+ |
129 |
+ # Build the FreeBSD helper |
130 |
+ if use elibc_FreeBSD ; then |
131 |
+ cp "${FILESDIR}"/fsck_ext2fs.c . |
132 |
+ emake V=1 fsck_ext2fs |
133 |
+ fi |
134 |
+} |
135 |
+ |
136 |
+src_install() { |
137 |
+ # need to set root_libdir= manually as any --libdir options in the |
138 |
+ # econf above (i.e. multilib) will screw up the default #276465 |
139 |
+ emake \ |
140 |
+ STRIP=: \ |
141 |
+ root_libdir="${EPREFIX}/usr/$(get_libdir)" \ |
142 |
+ DESTDIR="${D}" \ |
143 |
+ install install-libs |
144 |
+ dodoc README RELEASE-NOTES |
145 |
+ |
146 |
+ insinto /etc |
147 |
+ doins "${FILESDIR}"/e2fsck.conf |
148 |
+ |
149 |
+ # Move shared libraries to /lib/, install static libraries to |
150 |
+ # /usr/lib/, and install linker scripts to /usr/lib/. |
151 |
+ gen_usr_ldscript -a e2p ext2fs |
152 |
+ # configure doesn't have an option to disable static libs :/ |
153 |
+ use static-libs || find "${D}" -name '*.a' -delete |
154 |
+ |
155 |
+ if use elibc_FreeBSD ; then |
156 |
+ # Install helpers for us |
157 |
+ into / |
158 |
+ dosbin "${S}"/fsck_ext2fs |
159 |
+ doman "${FILESDIR}"/fsck_ext2fs.8 |
160 |
+ |
161 |
+ # filefrag is linux only |
162 |
+ rm \ |
163 |
+ "${ED%/}"/usr/sbin/filefrag \ |
164 |
+ "${ED%/}"/usr/share/man/man8/filefrag.8 || die |
165 |
+ fi |
166 |
+} |