1 |
commit: 72406fb113bcede7235ec8b324b94aa96a33e4b9 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 23 01:06:09 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 23 01:13:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72406fb1 |
7 |
|
8 |
sys-fs/xfsprogs: Bump to version 5.2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-fs/xfsprogs/Manifest | 1 + |
14 |
sys-fs/xfsprogs/xfsprogs-5.2.1.ebuild | 105 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 106 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest |
18 |
index 80f6644369e..719651bf9de 100644 |
19 |
--- a/sys-fs/xfsprogs/Manifest |
20 |
+++ b/sys-fs/xfsprogs/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST xfsprogs-4.19.0.tar.xz 1212852 BLAKE2B 2d04390765c5e0dd7d51366f0310c9e68065 |
22 |
DIST xfsprogs-5.0.0.tar.xz 1218476 BLAKE2B ef6eaab43531f696f739972c362e31c3304baaecb3485b45c16441a8bf7f1da7f47cd74a21660ba2c2bb45858a2b13b7af41c94671135f6a32a36eb745c024a0 SHA512 cebe3d2ea80676a99cc7f9cc014894398fbe3bdaf237829e9c7aa0404558c1ab16f2055acb5afd8234b2bc8475117bcef3c7500c553adb12bbaf3262bd077d18 |
23 |
DIST xfsprogs-5.1.0.tar.xz 1223736 BLAKE2B bfadb13cf3a4f9231eb13f4e7d3c803c2143abb776c0fee758ea7257097ef3fb79253c16133942041c20ff6078a1704fa18d08866c6a2e1a61b63f4de11d00c7 SHA512 ca5959edb299be8574b2ca51e907a418fab796ae92f588075a2aab0c2a3cf8dae49e2b68679c65c361201223e8f8ac29b1e5618eb1e519496c3aca9218620881 |
24 |
DIST xfsprogs-5.2.0.tar.xz 1225884 BLAKE2B bec075d2adbafc5f6be215b658b8617141ade481558477525251c8547162f462af5464af5ac25d9498aca99b960a59071cc6651c36c6d30e5757e8d177c1b898 SHA512 b65ffb4d293f1ee0a9ec5aa35bf7a9491c2d536ad0da7f8e1d533743caebd98abffd1b93508969bac4135dc15434a9e170a516cedd373466ef762b65029f013f |
25 |
+DIST xfsprogs-5.2.1.tar.xz 1227012 BLAKE2B af6c25d88d0a50fc82ecb2d9d00545ffdf906d6e85361360130b5a2b0d362e566c097f15be04a61023bd5c7815b77d0bab6258d8f188c5afe68098c51ae26ee0 SHA512 a2ecd8e2ae8a4e7357b4133beaeffeae4d6c9d0ece9855d9780a84c2d4072e3d4e0b8ffa3baa995862ec38dcbc5dd74205f7f4456676826082c4811867508a43 |
26 |
|
27 |
diff --git a/sys-fs/xfsprogs/xfsprogs-5.2.1.ebuild b/sys-fs/xfsprogs/xfsprogs-5.2.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..a546b735ad7 |
30 |
--- /dev/null |
31 |
+++ b/sys-fs/xfsprogs/xfsprogs-5.2.1.ebuild |
32 |
@@ -0,0 +1,105 @@ |
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 flag-o-matic toolchain-funcs systemd |
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" |
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 |
+ # Fix doc dir |
77 |
+ sed -i \ |
78 |
+ -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \ |
79 |
+ include/builddefs.in || die |
80 |
+ |
81 |
+ # Don't install compressed docs |
82 |
+ sed 's@\(CHANGES\)\.gz[[:space:]]@\1 @' -i doc/Makefile || die |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ export DEBUG=-DNDEBUG |
87 |
+ export OPTIMIZER=${CFLAGS} |
88 |
+ unset PLATFORM # if set in user env, this breaks configure |
89 |
+ |
90 |
+ # Upstream does NOT support --disable-static anymore, |
91 |
+ # https://www.spinics.net/lists/linux-xfs/msg30185.html |
92 |
+ # https://www.spinics.net/lists/linux-xfs/msg30272.html |
93 |
+ local myconf=( |
94 |
+ --enable-blkid |
95 |
+ --with-crond-dir="${EPREFIX}/etc/cron.d" |
96 |
+ --with-systemd-unit-dir="$(systemd_get_systemunitdir)" |
97 |
+ $(use_enable icu libicu) |
98 |
+ $(use_enable nls gettext) |
99 |
+ $(use_enable readline) |
100 |
+ $(usex readline --disable-editline $(use_enable libedit editline)) |
101 |
+ ) |
102 |
+ |
103 |
+ if is-flagq -fno-lto ; then |
104 |
+ einfo "LTO disabled via {C,CXX,F,FC}FLAGS" |
105 |
+ myconf+=( --disable-lto ) |
106 |
+ else |
107 |
+ if is-flagq -flto ; then |
108 |
+ einfo "LTO forced via {C,CXX,F,FC}FLAGS" |
109 |
+ myconf+=( --enable-lto ) |
110 |
+ elif use amd64 || use x86 ; then |
111 |
+ # match upstream default |
112 |
+ myconf+=( --enable-lto ) |
113 |
+ else |
114 |
+ # LTO can cause problems on some architectures, bug 655638 |
115 |
+ myconf+=( --disable-lto ) |
116 |
+ fi |
117 |
+ fi |
118 |
+ |
119 |
+ econf "${myconf[@]}" |
120 |
+} |
121 |
+ |
122 |
+src_compile() { |
123 |
+ # Unset {CF,LD}FLAGS which are already set via configure |
124 |
+ # but will cause problems when available during make. |
125 |
+ # Fixed in >=xfsprogs-5.3.0. |
126 |
+ unset CFLAGS LDFLAGS |
127 |
+ |
128 |
+ emake V=1 |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ emake DIST_ROOT="${ED}" install |
133 |
+ emake DIST_ROOT="${ED}" install-dev |
134 |
+ |
135 |
+ # removing unnecessary .la files if not needed |
136 |
+ find "${ED}" -type f -name '*.la' -delete || die |
137 |
+} |