Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/e2fsprogs/
Date: Tue, 24 Sep 2019 10:35:17
Message-Id: 1569321306.78681eeeacc8a4ebc0738bba51c18bfc0122491e.whissi@gentoo
1 commit: 78681eeeacc8a4ebc0738bba51c18bfc0122491e
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 24 10:28:04 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 24 10:35:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78681eee
7
8 sys-fs/e2fsprogs: bump to v1.45.4
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-fs/e2fsprogs/Manifest | 1 +
14 sys-fs/e2fsprogs/e2fsprogs-1.45.4.ebuild | 144 +++++++++++++++++++++++++++++++
15 2 files changed, 145 insertions(+)
16
17 diff --git a/sys-fs/e2fsprogs/Manifest b/sys-fs/e2fsprogs/Manifest
18 index 71a017c640b..ed44e44a84b 100644
19 --- a/sys-fs/e2fsprogs/Manifest
20 +++ b/sys-fs/e2fsprogs/Manifest
21 @@ -2,3 +2,4 @@ DIST e2fsprogs-1.42.9-mint-r1.patch.xz 9012 BLAKE2B ae6421587c3cca2f9b26805c5f8d
22 DIST e2fsprogs-1.44.5.tar.xz 5375996 BLAKE2B a6069e7c4889cdd3a30d94994d179c024edf098205012446677c76ed206f18e71a0f241527ac33ee35eebdfa8fe87a81dde5228694186fc4e1e55e5b7bc87862 SHA512 c0faec90b2be81460d374c150be917cd6beb1d10dc7cd0c6c4747de19de9af1763e90d48aec5b3c0fbff1b59bf79a35f93536cd52e68d1e45d4db610e158bb2e
23 DIST e2fsprogs-1.45.2.tar.xz 5560504 BLAKE2B c7764eb7fd67c422007cf2d884496babf78663ce6dab674fb023738b69e270c601dded89fc65fe4e7e1853cf8234772bfc2e28a1189b8dfd3f9e6fa34677f664 SHA512 50fdb7769c789fb143b2e4bd56e6b55eac8f84be5b7074008134fa56d980342c2307e62380f9ba6a8ab9bbc6bbf45b349aad540c8f239cf859706fd33e521e5e
24 DIST e2fsprogs-1.45.3.tar.xz 5561452 BLAKE2B ee41f35c3294ccb8dad4274e44d9c07dc94f93d2e921472c34da7913cdb2d60f998fa154c98f6ba4f9e598de152006a0fdb63a9006bbf3bb1847166d9342a29f SHA512 9f898d353af48a1d357cb01f64187b6dfef671bb2e0450438530fe4fa9454fccc6b755c9469d81e702e6d85a4defd02ae0a493897a4b3284cb112e8444c9bf52
25 +DIST e2fsprogs-1.45.4.tar.xz 5567164 BLAKE2B ab7be15e504b674290a25572d09d1ca4bacebc14d23a0ae400636bdcf3bf117f3aaf82b806ca7fd25dcd6ef9fedff588de7c72134b095e27f7a363f7d70c94c7 SHA512 408f093a6674ef2316c451173481851041957617c550308d2969b983e11d988ddfc120626cd957c0759648bc357edf1d9971e6d46bed109c2af5f8a09bdc5bda
26
27 diff --git a/sys-fs/e2fsprogs/e2fsprogs-1.45.4.ebuild b/sys-fs/e2fsprogs/e2fsprogs-1.45.4.ebuild
28 new file mode 100644
29 index 00000000000..e8d3b12ae9d
30 --- /dev/null
31 +++ b/sys-fs/e2fsprogs/e2fsprogs-1.45.4.ebuild
32 @@ -0,0 +1,144 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic systemd toolchain-funcs udev usr-ldscript
39 +
40 +DESCRIPTION="Standard EXT2/EXT3/EXT4 filesystem utilities"
41 +HOMEPAGE="http://e2fsprogs.sourceforge.net/"
42 +SRC_URI="mirror://sourceforge/e2fsprogs/${P}.tar.xz
43 + mirror://kernel/linux/kernel/people/tytso/e2fsprogs/v${PV}/${P}.tar.xz
44 + elibc_mintlib? ( mirror://gentoo/${PN}-1.42.9-mint-r1.patch.xz )"
45 +
46 +LICENSE="GPL-2 BSD"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux ~m68k-mint"
49 +IUSE="cron fuse nls static-libs elibc_FreeBSD"
50 +
51 +RDEPEND="~sys-libs/${PN}-libs-${PV}
52 + >=sys-apps/util-linux-2.16
53 + cron? ( sys-fs/lvm2[-device-mapper-only(-)] )
54 + fuse? ( sys-fs/fuse:0 )
55 + nls? ( virtual/libintl )"
56 +DEPEND="${RDEPEND}"
57 +BDEPEND="
58 + nls? ( sys-devel/gettext )
59 + virtual/pkgconfig
60 + sys-apps/texinfo
61 +"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-1.44.6-parallel_install.patch
65 + "${FILESDIR}"/${PN}-1.40-fbsd.patch
66 + "${FILESDIR}"/${PN}-1.42.13-fix-build-cflags.patch #516854
67 +
68 + # Upstream patches (can usually removed with next version bump)
69 +)
70 +
71 +src_prepare() {
72 + if [[ ${CHOST} == *-mint* ]] ; then
73 + PATCHES+=( "${WORKDIR}"/${PN}-1.42.9-mint-r1.patch )
74 + fi
75 +
76 + default
77 +
78 + cp doc/RelNotes/v${PV}.txt ChangeLog || die "Failed to copy Release Notes"
79 +
80 + # Get rid of doc -- we don't use them. This also prevents a sandbox
81 + # violation due to mktexfmt invocation
82 + rm -r doc || die "Failed to remove doc dir"
83 +
84 + # blargh ... trick e2fsprogs into using e2fsprogs-libs
85 + sed -i -r \
86 + -e 's:@LIBINTL@:@LTLIBINTL@:' \
87 + -e '/^(STATIC_)?LIB(COM_ERR|SS)/s:[$][(]LIB[)]/lib([^@]*)@(STATIC_)?LIB_EXT@:-l\1:' \
88 + -e '/^DEP(STATIC_)?LIB(COM_ERR|SS)/s:=.*:=:' \
89 + MCONFIG.in || die "muck libs" #122368
90 + sed -i -r \
91 + -e '/^LIB_SUBDIRS/s:lib/(et|ss)::g' \
92 + Makefile.in || die "remove subdirs"
93 + ln -s $(which mk_cmds) lib/ss/ || die
94 +
95 + # Avoid rebuild
96 + echo '#include_next <ss/ss_err.h>' > lib/ss/ss_err.h
97 +}
98 +
99 +src_configure() {
100 + # Keep the package from doing silly things #261411
101 + export VARTEXFONTS="${T}/fonts"
102 +
103 + # needs open64() prototypes and friends
104 + append-cppflags -D_GNU_SOURCE
105 +
106 + local myeconfargs=(
107 + --with-root-prefix="${EPREFIX}"
108 + $(use_with cron crond-dir "${EPREFIX}/etc/cron.d")
109 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
110 + --with-udev-rules-dir="${EPREFIX}$(get_udevdir)/rules.d"
111 + --enable-symlink-install
112 + --enable-elf-shlibs
113 + $(tc-has-tls || echo --disable-tls)
114 + --without-included-gettext
115 + $(use_enable fuse fuse2fs)
116 + $(use_enable nls)
117 + --disable-libblkid
118 + --disable-libuuid
119 + --disable-fsck
120 + --disable-uuidd
121 + )
122 + ac_cv_path_LDCONFIG=: econf "${myeconfargs[@]}"
123 +
124 + if [[ ${CHOST} != *-uclibc ]] && grep -qs 'USE_INCLUDED_LIBINTL.*yes' config.{log,status} ; then
125 + eerror "INTL sanity check failed, aborting build."
126 + eerror "Please post your ${S}/config.log file as an"
127 + eerror "attachment to https://bugs.gentoo.org/show_bug.cgi?id=81096"
128 + die "Preventing included intl cruft from building"
129 + fi
130 +}
131 +
132 +src_compile() {
133 + emake V=1 COMPILE_ET=compile_et MK_CMDS=mk_cmds
134 +
135 + # Build the FreeBSD helper
136 + if use elibc_FreeBSD ; then
137 + cp "${FILESDIR}"/fsck_ext2fs.c .
138 + emake V=1 fsck_ext2fs
139 + fi
140 +}
141 +
142 +src_install() {
143 + # need to set root_libdir= manually as any --libdir options in the
144 + # econf above (i.e. multilib) will screw up the default #276465
145 + emake \
146 + STRIP=: \
147 + root_libdir="${EPREFIX}/usr/$(get_libdir)" \
148 + DESTDIR="${D}" \
149 + install install-libs
150 +
151 + einstalldocs
152 +
153 + insinto /etc
154 + doins "${FILESDIR}"/e2fsck.conf
155 +
156 + # Move shared libraries to /lib/, install static libraries to
157 + # /usr/lib/, and install linker scripts to /usr/lib/.
158 + gen_usr_ldscript -a e2p ext2fs
159 +
160 + # configure doesn't have an option to disable static libs :/
161 + if ! use static-libs ; then
162 + find "${ED}" -name '*.a' -delete || die
163 + fi
164 +
165 + if use elibc_FreeBSD ; then
166 + # Install helpers for us
167 + into /
168 + dosbin "${S}"/fsck_ext2fs
169 + doman "${FILESDIR}"/fsck_ext2fs.8
170 +
171 + # filefrag is linux only
172 + rm \
173 + "${ED}"/usr/sbin/filefrag \
174 + "${ED}"/usr/share/man/man8/filefrag.8 || die
175 + fi
176 +}