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: Tue, 27 Feb 2018 09:36:09
Message-Id: 1519724162.6dd58a7c7e1caa436c567643516276eecc6a11f6.polynomial-c@gentoo
1 commit: 6dd58a7c7e1caa436c567643516276eecc6a11f6
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 27 09:35:48 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 27 09:36:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dd58a7c
7
8 sys-fs/xfsprogs: Bump to version 4.15.1
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-fs/xfsprogs/Manifest | 1 +
13 sys-fs/xfsprogs/xfsprogs-4.15.1.ebuild | 96 ++++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
17 index 897ba826eb8..9087ca0327a 100644
18 --- a/sys-fs/xfsprogs/Manifest
19 +++ b/sys-fs/xfsprogs/Manifest
20 @@ -1,3 +1,4 @@
21 DIST xfsprogs-4.14.0.tar.xz 1137048 BLAKE2B b58373ca7f58e5d887cf18ed2aab169aed4ba233a50f1f1ff41eaf0dcd039ae290f1e49b385da19ceff3a34e770f90943502eefd7c1469c5cba74f45185fd07e SHA512 69832a1b9636dc5a77ad277122bb24bc09c71ad743c3ab5bf830d398557e63fa1477dd08c6115a53a94f01fc27e58d70268416013cc25e026baed7a74af8d506
22 DIST xfsprogs-4.15.0.tar.xz 1186416 BLAKE2B a7d8c74498231e63a0fe7c5a37366852ed8dbe1db6d2deff8c4500c8e113f2e5180e547cdeabc87629922d184982bacb4be40969b78b87fcc07c5c29f22972bd SHA512 78d67a603c45a0d2b69d2cd0f7400b1e2c7b8b9bca3fa78529b8558bebda082e24d683d275ca546bb63c6cfd53d3b6048109b815e9fc5ced34d1c32533c2e77f
23 +DIST xfsprogs-4.15.1.tar.xz 1188964 BLAKE2B 7b4d1d2f71a0678f9246045e576262d6f3b3c59322e0b33b37dc46d84cdf5407a4b2fd6f2b99dd7647e9bfe9fe312fefe8162013dec9162f3a071421323aa52d SHA512 4ec3f0438f33322f0ff6e5acb27cbb554ab48df3ae0ef11071992b085016f84b49ca7bdbaf3a6859427877ea9c419bcd37ac3058914d67409ba2d65e586508ee
24 DIST xfsprogs-4.9.0.tar.xz 1087940 BLAKE2B f896a1248e978b4d7c879c91e73f16fd5894cb95c22143e2f805ab2f54b75cafef63cd574fbf3ccbaebb59914b3759a1f8b3a49790c8c05df145d01416723c62 SHA512 990946f0a34381f57afb39bcda0ff539e18af4de2ecc19c833ffd4fb7c22c25b501091c1f0953db103a62204d952c9eecba21f22f3c5910286456da65fb09fa7
25
26 diff --git a/sys-fs/xfsprogs/xfsprogs-4.15.1.ebuild b/sys-fs/xfsprogs/xfsprogs-4.15.1.ebuild
27 new file mode 100644
28 index 00000000000..148d4aa1cf8
29 --- /dev/null
30 +++ b/sys-fs/xfsprogs/xfsprogs-4.15.1.ebuild
31 @@ -0,0 +1,96 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit toolchain-funcs multilib systemd
38 +
39 +DESCRIPTION="xfs filesystem utilities"
40 +HOMEPAGE="http://oss.sgi.com/projects/xfs/"
41 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
42 +
43 +LICENSE="LGPL-2.1"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
46 +IUSE="libedit nls readline static static-libs"
47 +REQUIRED_USE="static? ( static-libs )"
48 +
49 +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
50 + readline? ( sys-libs/readline:0=[static-libs(+)] )
51 + !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
52 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
53 + !<sys-fs/xfsdump-3"
54 +DEPEND="${RDEPEND}
55 + static? (
56 + ${LIB_DEPEND}
57 + readline? ( sys-libs/ncurses:0=[static-libs] )
58 + )
59 + nls? ( sys-devel/gettext )"
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${PN}-4.9.0-underlinking.patch
63 + "${FILESDIR}"/${PN}-4.15.0-sharedlibs.patch
64 + "${FILESDIR}"/${PN}-4.15.0-docdir.patch
65 +)
66 +
67 +pkg_setup() {
68 + if use readline && use libedit ; then
69 + ewarn "You have USE='readline libedit' but these are exclusive."
70 + ewarn "Defaulting to readline; please disable this USE flag if you want libedit."
71 + fi
72 +}
73 +
74 +src_prepare() {
75 + default
76 +
77 + # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled.
78 + # Clear out -static from all flags since we want to link against dynamic xfs libs.
79 + sed -i \
80 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
81 + -e "1iLLDFLAGS += $(usex static '-all-static' '')" \
82 + include/builddefs.in || die
83 + find -name Makefile -exec \
84 + sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
85 +
86 + # TODO: Write a patch for configure.ac to use pkg-config for the uuid-part.
87 + if use static && use readline ; then
88 + sed -i \
89 + -e 's|-lreadline|& -lncurses|' \
90 + -e 's|-lblkid|& -luuid|' \
91 + configure || die
92 + fi
93 +}
94 +
95 +src_configure() {
96 + export DEBUG=-DNDEBUG
97 + export OPTIMIZER=${CFLAGS}
98 + unset PLATFORM # if set in user env, this breaks configure
99 +
100 + local myconf=(
101 + --with-crond-dir="${EPREFIX}/etc/cron.d"
102 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
103 + $(use_enable nls gettext)
104 + $(use_enable readline)
105 + $(usex readline --disable-editline $(use_enable libedit editline))
106 + )
107 + if use static || use static-libs ; then
108 + myconf+=( --enable-static )
109 + else
110 + myconf+=( --disable-static )
111 + fi
112 +
113 + econf "${myconf[@]}"
114 +
115 + MAKEOPTS+=" V=1"
116 +}
117 +
118 +src_install() {
119 + emake DIST_ROOT="${ED}" install
120 + # parallel install fails on this target for >=xfsprogs-3.2.0
121 + emake -j1 DIST_ROOT="${ED}" install-dev
122 +
123 + # handle is for xfsdump, the rest for xfsprogs
124 + gen_usr_ldscript -a handle xcmd xfs xlog frog
125 + # removing unnecessary .la files if not needed
126 + use static-libs || find "${ED}" -name '*.la' -delete
127 +}