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/xfsprogs/
Date: Sat, 20 Jul 2019 08:45:35
Message-Id: 1563612326.5ade5591249fc9522b4ab5ff17c5ac234b03dd18.polynomial-c@gentoo
1 commit: 5ade5591249fc9522b4ab5ff17c5ac234b03dd18
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 20 08:41:55 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 20 08:45:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ade5591
7
8 sys-fs/xfsprogs: Bump to version 5.1.0
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-fs/xfsprogs/Manifest | 1 +
14 sys-fs/xfsprogs/xfsprogs-5.1.0.ebuild | 87 +++++++++++++++++++++++++++++++++++
15 2 files changed, 88 insertions(+)
16
17 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
18 index ca938014d2a..14246274883 100644
19 --- a/sys-fs/xfsprogs/Manifest
20 +++ b/sys-fs/xfsprogs/Manifest
21 @@ -2,3 +2,4 @@ DIST xfsprogs-4.17.0.tar.xz 1205508 BLAKE2B 46168792c1e4c335b7ed9e7489afc20d7df4
22 DIST xfsprogs-4.19.0.tar.xz 1212852 BLAKE2B 2d04390765c5e0dd7d51366f0310c9e680651d49bdd1ecd220b4eec50540a66c97bf6e54f976414351bc77381ffd463803836b27ca25b53960a278a34bc09775 SHA512 a96d0ce406534e70b0a531dfab296de420ec710cd0682dffaf5211602adf82dd59f84b9eb7793c54eabb782a9e0229acf7b247ab644d531ee9e5b51fe9dc0f58
23 DIST xfsprogs-4.20.0.tar.xz 1215968 BLAKE2B 40aefb8fb899ae96c256f5fdb1c6e841bb450c3fad0487a6097c7f17c40a96a340e073538932d746f04f078afb960f16a34f5d15f500ce804fc842b91a0787e9 SHA512 6adf93fbe20d6b3250c4690237bda041a6dd0cfdc2387f5c88704fc06e6f095bf047964d701ccd65efef7607c15fb8e97b6046f3d631ef327aa8f4c118a36e22
24 DIST xfsprogs-5.0.0.tar.xz 1218476 BLAKE2B ef6eaab43531f696f739972c362e31c3304baaecb3485b45c16441a8bf7f1da7f47cd74a21660ba2c2bb45858a2b13b7af41c94671135f6a32a36eb745c024a0 SHA512 cebe3d2ea80676a99cc7f9cc014894398fbe3bdaf237829e9c7aa0404558c1ab16f2055acb5afd8234b2bc8475117bcef3c7500c553adb12bbaf3262bd077d18
25 +DIST xfsprogs-5.1.0.tar.xz 1223736 BLAKE2B bfadb13cf3a4f9231eb13f4e7d3c803c2143abb776c0fee758ea7257097ef3fb79253c16133942041c20ff6078a1704fa18d08866c6a2e1a61b63f4de11d00c7 SHA512 ca5959edb299be8574b2ca51e907a418fab796ae92f588075a2aab0c2a3cf8dae49e2b68679c65c361201223e8f8ac29b1e5618eb1e519496c3aca9218620881
26
27 diff --git a/sys-fs/xfsprogs/xfsprogs-5.1.0.ebuild b/sys-fs/xfsprogs/xfsprogs-5.1.0.ebuild
28 new file mode 100644
29 index 00000000000..2bba45900de
30 --- /dev/null
31 +++ b/sys-fs/xfsprogs/xfsprogs-5.1.0.ebuild
32 @@ -0,0 +1,87 @@
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 toolchain-funcs multilib systemd usr-ldscript
39 +
40 +DESCRIPTION="xfs filesystem utilities"
41 +HOMEPAGE="https://xfs.wiki.kernel.org/"
42 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
43 +
44 +LICENSE="LGPL-2.1"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
47 +IUSE="icu libedit nls readline static-libs"
48 +
49 +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
50 + icu? ( dev-libs/icu:=[static-libs(+)] )
51 + readline? ( sys-libs/readline:0=[static-libs(+)] )
52 + !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
53 +RDEPEND="${LIB_DEPEND//\[static-libs(+)]}
54 + !<sys-fs/xfsdump-3"
55 +DEPEND="${RDEPEND}"
56 +BDEPEND="
57 + nls? ( sys-devel/gettext )
58 +"
59 +
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-4.9.0-underlinking.patch
62 + "${FILESDIR}"/${PN}-4.15.0-sharedlibs.patch
63 + "${FILESDIR}"/${PN}-4.15.0-docdir.patch
64 +)
65 +
66 +pkg_setup() {
67 + if use readline && use libedit ; then
68 + ewarn "You have USE='readline libedit' but these are exclusive."
69 + ewarn "Defaulting to readline; please disable this USE flag if you want libedit."
70 + fi
71 +}
72 +
73 +src_prepare() {
74 + default
75 +
76 + # Clear out -static from all flags since we want to link against dynamic xfs libs.
77 + sed -i \
78 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
79 + include/builddefs.in || die
80 + # Don't install compressed docs
81 + sed 's@\(CHANGES\)\.gz[[:space:]]@\1 @' -i doc/Makefile || die
82 + find -name Makefile -exec \
83 + sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
84 +}
85 +
86 +src_configure() {
87 + export DEBUG=-DNDEBUG
88 + export OPTIMIZER=${CFLAGS}
89 + unset PLATFORM # if set in user env, this breaks configure
90 +
91 + local myconf=(
92 + --disable-lto #655638
93 + --enable-blkid
94 + --with-crond-dir="${EPREFIX}/etc/cron.d"
95 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
96 + $(use_enable icu libicu)
97 + $(use_enable nls gettext)
98 + $(use_enable readline)
99 + $(usex readline --disable-editline $(use_enable libedit editline))
100 + $(use_enable static-libs static)
101 + )
102 +
103 + econf "${myconf[@]}"
104 +
105 + MAKEOPTS+=" V=1"
106 +}
107 +
108 +src_install() {
109 + emake DIST_ROOT="${ED}" install
110 + # parallel install fails on this target for >=xfsprogs-3.2.0
111 + emake -j1 DIST_ROOT="${ED}" install-dev
112 +
113 + # handle is for xfsdump, the rest for xfsprogs
114 + gen_usr_ldscript -a handle xcmd xfs xlog frog
115 + # removing unnecessary .la files if not needed
116 + if ! use static-libs ; then
117 + find "${ED}" -type f -name '*.la' -delete || die
118 + fi
119 +}