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/xfsprogs/
Date: Mon, 27 Nov 2017 23:36:24
Message-Id: 1511825773.b643e28e3ce201db89e725475b22e4b93961542d.whissi@gentoo
1 commit: b643e28e3ce201db89e725475b22e4b93961542d
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 27 23:13:08 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 27 23:36:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b643e28e
7
8 sys-fs/xfsprogs: Bump to v4.14.0
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 sys-fs/xfsprogs/Manifest | 3 +-
13 sys-fs/xfsprogs/xfsprogs-4.14.0.ebuild | 94 ++++++++++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+), 1 deletion(-)
15
16 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
17 index bb002f71175..6d949b8f5c8 100644
18 --- a/sys-fs/xfsprogs/Manifest
19 +++ b/sys-fs/xfsprogs/Manifest
20 @@ -1,4 +1,5 @@
21 DIST xfsprogs-4.12.0.tar.xz 1128400 SHA256 b330ad8d737f4152ae511580102e2fc49212bb51dfb4b614084344abae46d0df SHA512 1dc4a0a5f40baf1d6398c8f07b4cb3ab796cf052c34b811d60b08c60a4700c2ced8d4d1adb878f8b85ba58cf3e1276db1477109de538fd427d3e359a52f59d4a WHIRLPOOL c18d3c9dfab8ccb877eb6fa9fa05be3c614a587c6cb616a9f18b52debb8ecacbd22056cb397ff9e69407c66e105d034458b41f0ba4275352f31398e64d303c02
22 -DIST xfsprogs-4.13.1.tar.xz 1133556 SHA256 8c64d349d191e24c84eeb1611be767e4a11b81016bd5b73f3a20a0bf39dd3536 SHA512 6c234a6c22aa3cabe0ea698c11175dca6c19d803989127ccb13b526ff6d34dcef9dd6e19ff0c4fb3903078f24210a8cfcd0508dac29d52fbee4dfed37d5888f3 WHIRLPOOL 89a84ce7b59fa52cd245493a28c6ad7f6e114dfe8044b2dad57b2cc626308ad1187ef812ace618085a083745acd3c37538903a6e2f935d9cd351c923559d9732
23 +DIST xfsprogs-4.13.1.tar.xz 1133556 BLAKE2B 9a829a0656d6d69d25094b8177957dd9ac3aecb5f50fd6997e13b7131a15cea4ccb52c0ff7d977a5284df5fa0d63fd8f0db6315e14ead883c92143fda71575a5 SHA512 6c234a6c22aa3cabe0ea698c11175dca6c19d803989127ccb13b526ff6d34dcef9dd6e19ff0c4fb3903078f24210a8cfcd0508dac29d52fbee4dfed37d5888f3
24 +DIST xfsprogs-4.14.0.tar.xz 1137048 BLAKE2B b58373ca7f58e5d887cf18ed2aab169aed4ba233a50f1f1ff41eaf0dcd039ae290f1e49b385da19ceff3a34e770f90943502eefd7c1469c5cba74f45185fd07e SHA512 69832a1b9636dc5a77ad277122bb24bc09c71ad743c3ab5bf830d398557e63fa1477dd08c6115a53a94f01fc27e58d70268416013cc25e026baed7a74af8d506
25 DIST xfsprogs-4.5.0.tar.gz 1524382 SHA256 e49beb314984efbd0d758abb5c6137db3bb60a88e59e1e94c00defb536cf89f8 SHA512 19c95551dc91ec46916f9a7e3d7976907664d32dd5fdc26af0ca62ca74c4b3c10f9e843aac8214ea9d1c0bf140c9f4e321d059808af01a623abedd5067011314 WHIRLPOOL 54d742635df024a63181da76c3220671610068363af85be2677521f20342595a5cebb2fd169945572351901ee2c9384f79f54a381ab3620dde22d863aa66d469
26 DIST xfsprogs-4.9.0.tar.xz 1087940 SHA256 f1e60a9a54583dba82fa506dd9b59bdec110a968f80f507bf5f93b263af7a4df SHA512 990946f0a34381f57afb39bcda0ff539e18af4de2ecc19c833ffd4fb7c22c25b501091c1f0953db103a62204d952c9eecba21f22f3c5910286456da65fb09fa7 WHIRLPOOL a9b582a42967ce1e314cd0ac3518792c2e10f7bb1370151a68a09a8e21e40cc6818b9778dfdd248961c3a1a08a70424f0150219488a18bc5d60e5669702c472f
27
28 diff --git a/sys-fs/xfsprogs/xfsprogs-4.14.0.ebuild b/sys-fs/xfsprogs/xfsprogs-4.14.0.ebuild
29 new file mode 100644
30 index 00000000000..a77ca48cb15
31 --- /dev/null
32 +++ b/sys-fs/xfsprogs/xfsprogs-4.14.0.ebuild
33 @@ -0,0 +1,94 @@
34 +# Copyright 1999-2017 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit toolchain-funcs multilib
40 +
41 +DESCRIPTION="xfs filesystem utilities"
42 +HOMEPAGE="http://oss.sgi.com/projects/xfs/"
43 +SRC_URI="https://www.kernel.org/pub/linux/utils/fs/xfs/${PN}/${P}.tar.xz"
44 +
45 +LICENSE="LGPL-2.1"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
48 +IUSE="libedit nls readline static static-libs"
49 +REQUIRED_USE="static? ( static-libs )"
50 +
51 +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
52 + readline? ( sys-libs/readline:0=[static-libs(+)] )
53 + !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )"
54 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
55 + !<sys-fs/xfsdump-3"
56 +DEPEND="${RDEPEND}
57 + static? (
58 + ${LIB_DEPEND}
59 + readline? ( sys-libs/ncurses:0=[static-libs] )
60 + )
61 + nls? ( sys-devel/gettext )"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-4.12.0-sharedlibs.patch
65 + "${FILESDIR}"/${PN}-4.7.0-libxcmd-link.patch
66 + "${FILESDIR}"/${PN}-4.9.0-underlinking.patch
67 +)
68 +
69 +pkg_setup() {
70 + if use readline && use libedit ; then
71 + ewarn "You have USE='readline libedit' but these are exclusive."
72 + ewarn "Defaulting to readline; please disable this USE flag if you want libedit."
73 + fi
74 +}
75 +
76 +src_prepare() {
77 + default
78 +
79 + # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled.
80 + # Clear out -static from all flags since we want to link against dynamic xfs libs.
81 + sed -i \
82 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
83 + -e "1iLLDFLAGS += $(usex static '-all-static' '')" \
84 + include/builddefs.in || die
85 + find -name Makefile -exec \
86 + sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} +
87 +
88 + # TODO: Write a patch for configure.ac to use pkg-config for the uuid-part.
89 + if use static && use readline ; then
90 + sed -i \
91 + -e 's|-lreadline|& -lncurses|' \
92 + -e 's|-lblkid|& -luuid|' \
93 + configure || die
94 + fi
95 +}
96 +
97 +src_configure() {
98 + export DEBUG=-DNDEBUG
99 + export OPTIMIZER=${CFLAGS}
100 + unset PLATFORM # if set in user env, this breaks configure
101 +
102 + local myconf=(
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
125 + # removing unnecessary .la files if not needed
126 + use static-libs || find "${ED}" -name '*.la' -delete
127 +}