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, 07 Dec 2021 06:18:15
Message-Id: 1638857817.b88c68152a4dc54c0e9df8065014f3bd291bb611.polynomial-c@gentoo
1 commit: b88c68152a4dc54c0e9df8065014f3bd291bb611
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 06:16:57 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 06:16:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b88c6815
7
8 sys-fs/xfsprogs: Bump to version 5.14.2
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-fs/xfsprogs/Manifest | 1 +
13 sys-fs/xfsprogs/xfsprogs-5.14.2.ebuild | 96 ++++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
17 index 5272f3d3dd48..6aa06d48d7da 100644
18 --- a/sys-fs/xfsprogs/Manifest
19 +++ b/sys-fs/xfsprogs/Manifest
20 @@ -1,3 +1,4 @@
21 DIST xfsprogs-5.10.0.tar.xz 1273332 BLAKE2B 8caaa0ca8a94480f131d36b383afcf732b3a5a7a3c7927b4b4da4855fc5a0fb97a56fcebb98391a4dd0f02465868a4bd857e57eeba053a419df47d42f74bc958 SHA512 da09e687c87c4b133888dba7b4458017ec028020637ea5066be0232bf5c7da18239cc33eadd02d9b99d1c835aab38cab1ec9d45ae8b83897f9157cfcb0271fbd
22 DIST xfsprogs-5.14.0.tar.xz 1307332 BLAKE2B d2177f10d677e28439cef1db3ca6a2adb93f89f1f415b2b564ec694d80a0b981ebd283d33ea21573ce2e7405da8235bad48df3ca43d37a4294de60ca95380ed1 SHA512 dc87840c05bbd3f6ba64bb61f95499d58eff1d4bb2309ed223048ca0e475f5bb139f03c47f415a997576e5bf85cf06b1a040e022397d6f0bcd5ba60b36d8b0a2
23 DIST xfsprogs-5.14.1.tar.xz 1308968 BLAKE2B fda20f824a030113717cc46de1920696dc8f9eed13b54809e6b21275cf4f8673385e8bbb1c1c668ba2592ab43fb230c9d46edf4c0e5abe59a9572cc9a90ae5da SHA512 5bb79fff45048bebee2fde85ec788658dd8dc8d5ddac222b1f74c6cd525e1239d920814e8e713f045e38398a785321bf0a7421ff1c690cd0be5dbb224f8dafea
24 +DIST xfsprogs-5.14.2.tar.xz 1308912 BLAKE2B 04083bf7952015d64f16e1aec0fa74be1957543e2264914f69defe45a3dc9f2524d941abc064a25a2fd760ebd6dcdcdc2404fd305e08fff7f6be6c5fc11d4d2f SHA512 cb9794247a2eed8bd9f10ff811d38f97e4adbed97bad334b0fa8a26503ec224237eddd92fd78892584a153967417ab2009fb2fc8bab6ef12cd53fd20bdba1b4e
25
26 diff --git a/sys-fs/xfsprogs/xfsprogs-5.14.2.ebuild b/sys-fs/xfsprogs/xfsprogs-5.14.2.ebuild
27 new file mode 100644
28 index 000000000000..f1ec2e50d05c
29 --- /dev/null
30 +++ b/sys-fs/xfsprogs/xfsprogs-5.14.2.ebuild
31 @@ -0,0 +1,96 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic systemd usr-ldscript
38 +
39 +DESCRIPTION="xfs filesystem utilities"
40 +HOMEPAGE="https://xfs.wiki.kernel.org/"
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 ~riscv ~s390 ~sparc ~x86"
46 +IUSE="icu libedit nls selinux"
47 +
48 +RDEPEND=">=sys-apps/util-linux-2.17.2
49 + dev-libs/inih
50 + dev-libs/userspace-rcu
51 + icu? ( dev-libs/icu:= )
52 + libedit? ( dev-libs/libedit )
53 +"
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="
56 + nls? ( sys-devel/gettext )
57 +"
58 +RDEPEND+=" selinux? ( sec-policy/selinux-xfs )"
59 +
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-4.15.0-docdir.patch
62 + "${FILESDIR}"/${PN}-5.3.0-libdir.patch
63 +)
64 +
65 +src_prepare() {
66 + default
67 +
68 + # Fix doc dir
69 + sed -i \
70 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
71 + include/builddefs.in || die
72 +
73 + # Don't install compressed docs
74 + sed 's@\(CHANGES\)\.gz[[:space:]]@\1 @' -i doc/Makefile || die
75 +}
76 +
77 +src_configure() {
78 + # include/builddefs.in will add FCFLAGS to CFLAGS which will
79 + # unnecessarily clutter CFLAGS (and fortran isn't used)
80 + unset FCFLAGS
81 +
82 + export DEBUG=-DNDEBUG
83 +
84 + # Package is honoring CFLAGS; No need to use OPTIMIZER anymore.
85 + # However, we have to provide an empty value to avoid default
86 + # flags.
87 + export OPTIMIZER=" "
88 +
89 + unset PLATFORM # if set in user env, this breaks configure
90 +
91 + # Avoid automagic on libdevmapper, #709694
92 + export ac_cv_search_dm_task_create=no
93 +
94 + # Build fails with -O3 (bug #712698)
95 + replace-flags -O3 -O2
96 +
97 + # Upstream does NOT support --disable-static anymore,
98 + # https://www.spinics.net/lists/linux-xfs/msg30185.html
99 + # https://www.spinics.net/lists/linux-xfs/msg30272.html
100 + local myconf=(
101 + --enable-blkid
102 + --with-crond-dir="${EPREFIX}/etc/cron.d"
103 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
104 + $(use_enable icu libicu)
105 + $(use_enable nls gettext)
106 + $(use_enable libedit editline)
107 + )
108 +
109 + if is-flagq -flto ; then
110 + myconf+=( --enable-lto )
111 + else
112 + myconf+=( --disable-lto )
113 + fi
114 +
115 + econf "${myconf[@]}"
116 +}
117 +
118 +src_compile() {
119 + emake V=1
120 +}
121 +
122 +src_install() {
123 + emake DIST_ROOT="${ED}" HAVE_ZIPPED_MANPAGES=false install
124 + emake DIST_ROOT="${ED}" HAVE_ZIPPED_MANPAGES=false install-dev
125 +
126 + gen_usr_ldscript -a handle
127 +}