Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/e2fsprogs/
Date: Tue, 02 Jan 2018 13:07:41
Message-Id: 1514898453.334cf6e7b2fec7b522f0fc877e29a04fa3f56359.polynomial-c@gentoo
1 commit: 334cf6e7b2fec7b522f0fc877e29a04fa3f56359
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 2 13:06:58 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 2 13:07:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=334cf6e7
7
8 sys-fs/e2fsprogs: Bump to version 1.43.8
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 sys-fs/e2fsprogs/Manifest | 1 +
13 sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild | 137 +++++++++++++++++++++++++++++++
14 2 files changed, 138 insertions(+)
15
16 diff --git a/sys-fs/e2fsprogs/Manifest b/sys-fs/e2fsprogs/Manifest
17 index 6be65990a54..e5660abf5f5 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 BLAKE2B ec53c0aca102e137fce43
21 DIST e2fsprogs-1.43.3.tar.gz 7405892 BLAKE2B 158aeee327a1ca68ce1bda1f97c9fa25ba1bd78ea9ee418c8ad85d2bf422d49ea93ad6c1b33c9b7bdafceacb4c0975da776c6e5b2df8962baf0d368c894db5a8 SHA512 77e753f77222a0a7a334d7d93c900ea6cb339ed40af29952e414fc4e45d8c5c01d67771978a941195effe666df965746c2b31977c5f05ff307429b978dac8dea
22 DIST e2fsprogs-1.43.6.tar.gz 7466907 BLAKE2B 6c19c686432b7990900b239c4a1b3b6675b085ca7adfdb4323d1253ee8c83f22f87f67b0b4a843e48cb71322b1a7454b3ceab669f875b71b967e96054a55f1ac SHA512 95e3e7def177de921d3204aeace4cb8243d79872468d3289cace0547798c84e92af253022deb803cd8c045411283b01431728a86b14b9e8b45cdd5dca739db66
23 DIST e2fsprogs-1.43.7.tar.gz 7492811 BLAKE2B 122158f0824de632b93fab651be60ca45096b5dac20438a6407c69577017a5f117ce402166b529072a81a2b6ac96f9237ea1a0f55d7d23d05ba758d42d86451a SHA512 71694c57d076517f6e1f2a5bffcbc49c32fcf11283e26739304f50ff0aae28646ea7af80dc85b636b87db57a0042a5bce82411e631f7d5c055440ebeadb90282
24 +DIST e2fsprogs-1.43.8.tar.gz 7474876 BLAKE2B b5d550a646facd2aae9de9758976e987ab6ddfc7c92fc1ea2ca71140010f3e10627a5dee5e17caa77746c6de508a652e26a31df123732603c9cbcc8df5edaa54 SHA512 158e9fa928de61716d57eeac1a64c3c40043c00594ce397419de71fc1f260f1a8f932971b1cef62ed8a01e865f4d97f6bc86289c3a60d33b160874b20744cbe5
25
26 diff --git a/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild b/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild
27 new file mode 100644
28 index 00000000000..ba0347721fd
29 --- /dev/null
30 +++ b/sys-fs/e2fsprogs/e2fsprogs-1.43.8.ebuild
31 @@ -0,0 +1,137 @@
32 +# Copyright 1999-2018 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 + if ! use static-libs ; then
154 + find "${D}" -name '*.a' -delete || die
155 + fi
156 +
157 + if use elibc_FreeBSD ; then
158 + # Install helpers for us
159 + into /
160 + dosbin "${S}"/fsck_ext2fs
161 + doman "${FILESDIR}"/fsck_ext2fs.8
162 +
163 + # filefrag is linux only
164 + rm \
165 + "${ED%/}"/usr/sbin/filefrag \
166 + "${ED%/}"/usr/share/man/man8/filefrag.8 || die
167 + fi
168 +}