1 |
commit: 6e0746fd3e7e185a70bcb842dec05023b8539aa8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 14:47:07 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 14:59:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e0746fd |
7 |
|
8 |
sys-fs/xfsprogs: Bump to version 4.10.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sys-fs/xfsprogs/Manifest | 1 + |
13 |
sys-fs/xfsprogs/xfsprogs-4.10.0.ebuild | 95 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 96 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest |
17 |
index 19da7ac29b..b2de311a08 100644 |
18 |
--- a/sys-fs/xfsprogs/Manifest |
19 |
+++ b/sys-fs/xfsprogs/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
+DIST xfsprogs-4.10.0.tar.xz 1091648 SHA256 d8cb9ab2c686699d37914354ce3992b4aff3677093cbce06ad18bf798da8a8a7 SHA512 a29b5e714320d5fcbda7df6e8d81a07bdcba92d7d528ce1c354f1c1b41cb3719443a98cb37ca052f566eb3a08967bcf45492d0b9d95460da90b8a070a7a032e8 WHIRLPOOL cc2ed46749c6840ccc6521c6ef5d1ca79156245faf18ef2b03b7a0f86ac460a0f011d828caa51f57db6ad8445f8cc218f30b1d0ab557db290935fd9d0a941ef0 |
22 |
DIST xfsprogs-4.5.0.tar.gz 1524382 SHA256 e49beb314984efbd0d758abb5c6137db3bb60a88e59e1e94c00defb536cf89f8 SHA512 19c95551dc91ec46916f9a7e3d7976907664d32dd5fdc26af0ca62ca74c4b3c10f9e843aac8214ea9d1c0bf140c9f4e321d059808af01a623abedd5067011314 WHIRLPOOL 54d742635df024a63181da76c3220671610068363af85be2677521f20342595a5cebb2fd169945572351901ee2c9384f79f54a381ab3620dde22d863aa66d469 |
23 |
DIST xfsprogs-4.7.0.tar.gz 1534909 SHA256 88580bb3e6847c3edef436703a4fae403fc19b20739db4c31166ee4b256178d7 SHA512 5184f1dbc3989f3c1f1b103d5cbd70462db107cfe113424166581ebcfaad4041c9c78f5d038f4bd4728ff99a2f9705219582ba9bfd10745354a1cab0b7dfe613 WHIRLPOOL 8157b2e8df5946acacc22ed761e38b382ef464f4984971148069b2f215418f4e23ac142721394439c041c236cbd460e0b56ff071d1c10e343070147709f42af3 |
24 |
DIST xfsprogs-4.8.0.tar.xz 1088376 SHA256 82ce9cb3a55f4e208e8fe3471ff0aff0602b8300f3e50bdf05cc7e11549686f9 SHA512 9c83763ae4925980969e66827edef41774e4dc09ae42637630167b5e0329675517ea7b50de751fcb9485fbcf8e470d24dd20b51475bcb56723dae6ee9fb140c7 WHIRLPOOL dc9f9b5c0b4e9b61f023fb972137126f22909c77908990e1beb391689fe6512a7810d9bd1ccfc0cfe4cd5379d99c123ddc9d0b6194e0a81e946e2304f964f180 |
25 |
|
26 |
diff --git a/sys-fs/xfsprogs/xfsprogs-4.10.0.ebuild b/sys-fs/xfsprogs/xfsprogs-4.10.0.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000000..3696672d9f |
29 |
--- /dev/null |
30 |
+++ b/sys-fs/xfsprogs/xfsprogs-4.10.0.ebuild |
31 |
@@ -0,0 +1,95 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+inherit eutils toolchain-funcs multilib |
39 |
+ |
40 |
+DESCRIPTION="xfs filesystem utilities" |
41 |
+HOMEPAGE="http://oss.sgi.com/projects/xfs/" |
42 |
+SRC_URI="ftp://ftp.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="libedit nls readline static static-libs" |
48 |
+REQUIRED_USE="static? ( static-libs )" |
49 |
+ |
50 |
+LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)] |
51 |
+ readline? ( sys-libs/readline:0=[static-libs(+)] ) |
52 |
+ !readline? ( libedit? ( dev-libs/libedit[static-libs(+)] ) )" |
53 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
54 |
+ !<sys-fs/xfsdump-3" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ static? ( |
57 |
+ ${LIB_DEPEND} |
58 |
+ readline? ( sys-libs/ncurses:0=[static-libs] ) |
59 |
+ ) |
60 |
+ nls? ( sys-devel/gettext )" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-4.7.0-sharedlibs.patch |
64 |
+ "${FILESDIR}"/${PN}-4.7.0-libxcmd-link.patch |
65 |
+ "${FILESDIR}"/${PN}-4.9.0-underlinking.patch |
66 |
+) |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ if use readline && use libedit ; then |
70 |
+ ewarn "You have USE='readline libedit' but these are exclusive." |
71 |
+ ewarn "Defaulting to readline; please disable this USE flag if you want libedit." |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ epatch "${PATCHES[@]}" |
77 |
+ |
78 |
+ # LLDFLAGS is used for programs, so apply -all-static when USE=static is enabled. |
79 |
+ # Clear out -static from all flags since we want to link against dynamic xfs libs. |
80 |
+ sed -i \ |
81 |
+ -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ |
82 |
+ -e "1iLLDFLAGS += $(usex static '-all-static' '')" \ |
83 |
+ include/builddefs.in || die |
84 |
+ find -name Makefile -exec \ |
85 |
+ sed -i -r -e '/^LLDFLAGS [+]?= -static(-libtool-libs)?$/d' {} + |
86 |
+ |
87 |
+ # TODO: Write a patch for configure.ac to use pkg-config for the uuid-part. |
88 |
+ if use static && use readline ; then |
89 |
+ sed -i \ |
90 |
+ -e 's|-lreadline|& -lncurses|' \ |
91 |
+ -e 's|-lblkid|& -luuid|' \ |
92 |
+ configure || die |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+src_configure() { |
97 |
+ export DEBUG=-DNDEBUG |
98 |
+ export OPTIMIZER=${CFLAGS} |
99 |
+ unset PLATFORM # if set in user env, this breaks configure |
100 |
+ |
101 |
+ local myconf |
102 |
+ if use static || use static-libs ; then |
103 |
+ myconf+=" --enable-static" |
104 |
+ else |
105 |
+ myconf+=" --disable-static" |
106 |
+ fi |
107 |
+ |
108 |
+ econf \ |
109 |
+ $(use_enable nls gettext) \ |
110 |
+ $(use_enable readline) \ |
111 |
+ $(usex readline --disable-editline $(use_enable libedit editline)) \ |
112 |
+ ${myconf} |
113 |
+ |
114 |
+ MAKEOPTS+=" V=1" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ emake DIST_ROOT="${ED}" install |
119 |
+ # parallel install fails on this target for >=xfsprogs-3.2.0 |
120 |
+ emake -j1 DIST_ROOT="${ED}" install-dev |
121 |
+ |
122 |
+ # handle is for xfsdump, the rest for xfsprogs |
123 |
+ gen_usr_ldscript -a handle xcmd xfs xlog |
124 |
+ # removing unnecessary .la files if not needed |
125 |
+ use static-libs || find "${ED}" -name '*.la' -delete |
126 |
+} |