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, 07 Sep 2020 00:50:31
Message-Id: 1599439600.66512ec5604d6f51e1834cfc4b3592a417032940.whissi@gentoo
1 commit: 66512ec5604d6f51e1834cfc4b3592a417032940
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 7 00:05:03 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 7 00:46:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66512ec5
7
8 sys-fs/xfsprogs: bump to v5.8.0
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-fs/xfsprogs/Manifest | 1 +
14 sys-fs/xfsprogs/xfsprogs-5.8.0.ebuild | 94 +++++++++++++++++++++++++++++++++++
15 2 files changed, 95 insertions(+)
16
17 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
18 index 6794193a2a9..0caa98f4782 100644
19 --- a/sys-fs/xfsprogs/Manifest
20 +++ b/sys-fs/xfsprogs/Manifest
21 @@ -1,3 +1,4 @@
22 DIST xfsprogs-5.4.0.tar.xz 1248688 BLAKE2B dd00083b62a4989ca94d117eabad3905dc487c3e6d4f20bbe855399e99e2195c1a45f2be3b117048e2a7f2374c7e6258e7c1edd63d12a405c88f4c9fa6cd5e8e SHA512 c0973fcf97e2666385b46c80cd1398728702cb34fd7e0f89e2a63686300573405d09a81d3ae43d79c2e9710ccf6b6bd6ed1c3f3f831c75cd0916f094f203aaa7
23 DIST xfsprogs-5.6.0.tar.xz 1253112 BLAKE2B 7928b29458e3ad8251b48b6fb14a515e0128701c40cdfa63c05fc85173c70da3f34c948b7791f12ac5bb8d5f0c634016dac71c328a8917d1065aa7fb4cac3291 SHA512 a6bee55b0a23316c73f3921234d1dbaa4cbe91c12e79264e5f9bfe1356a24baa0ab25270405a46e4613a7e48443ef21997ff4f5962663777bed373f89ca29701
24 DIST xfsprogs-5.7.0.tar.xz 1258772 BLAKE2B 3dab72c1c64d88194f677ed434fe00c8c2eac10c7c6d471d3b32595eb27a76ec1fa20955a08d7c2e371a0d160bce741afad0998731d2fee497917e0d7a4e70f7 SHA512 6a333b7e4fc6afb1689f6bbbbf07b97058cce2fde437fd3ed5b010276c050f886e5c0317ea16aedb23f579a9fed5edc4e7e64b4af5f0331dc8fd97b3251dd231
25 +DIST xfsprogs-5.8.0.tar.xz 1260580 BLAKE2B d4efb81123d46fd7907dd81605922ba283642ead92f6270a3b0d93a0c7321963d5b8b0068a2b6b4cdb236da0653a6432b74056feff77354d2557e899b01f1a62 SHA512 11f2810402ecb83db204346c45ff9f7d643ff2390767794e311a06a10eb97118095e4c377d2b065be50611ec5fc82ac5cbc0a8c7122ee7e9820a2db4e9f177c1
26
27 diff --git a/sys-fs/xfsprogs/xfsprogs-5.8.0.ebuild b/sys-fs/xfsprogs/xfsprogs-5.8.0.ebuild
28 new file mode 100644
29 index 00000000000..ca89c01e893
30 --- /dev/null
31 +++ b/sys-fs/xfsprogs/xfsprogs-5.8.0.ebuild
32 @@ -0,0 +1,94 @@
33 +# Copyright 1999-2020 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 usr-ldscript
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 ~sparc ~x86"
47 +IUSE="icu libedit nls"
48 +
49 +LIB_DEPEND=">=sys-apps/util-linux-2.17.2[static-libs(+)]
50 + icu? ( dev-libs/icu:=[static-libs(+)] )
51 + libedit? ( dev-libs/libedit[static-libs(+)] )"
52 +RDEPEND="${LIB_DEPEND//\[static-libs(+)]}
53 + !<sys-fs/xfsdump-3"
54 +DEPEND="${RDEPEND}"
55 +BDEPEND="
56 + nls? ( sys-devel/gettext )
57 +"
58 +
59 +PATCHES=(
60 + "${FILESDIR}"/${PN}-4.15.0-docdir.patch
61 + "${FILESDIR}"/${PN}-5.3.0-libdir.patch
62 +)
63 +
64 +src_prepare() {
65 + default
66 +
67 + # Fix doc dir
68 + sed -i \
69 + -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
70 + include/builddefs.in || die
71 +
72 + # Don't install compressed docs
73 + sed 's@\(CHANGES\)\.gz[[:space:]]@\1 @' -i doc/Makefile || die
74 +}
75 +
76 +src_configure() {
77 + # include/builddefs.in will add FCFLAGS to CFLAGS which will
78 + # unnecessarily clutter CFLAGS (and fortran isn't used)
79 + unset FCFLAGS
80 +
81 + export DEBUG=-DNDEBUG
82 +
83 + # Package is honoring CFLAGS; No need to use OPTIMIZER anymore.
84 + # However, we have to provide an empty value to avoid default
85 + # flags.
86 + export OPTIMIZER=" "
87 +
88 + unset PLATFORM # if set in user env, this breaks configure
89 +
90 + # Avoid automagic on libdevmapper, #709694
91 + export ac_cv_search_dm_task_create=no
92 +
93 + # Build fails with -O3 (bug #712698)
94 + replace-flags -O3 -O2
95 +
96 + # Upstream does NOT support --disable-static anymore,
97 + # https://www.spinics.net/lists/linux-xfs/msg30185.html
98 + # https://www.spinics.net/lists/linux-xfs/msg30272.html
99 + local myconf=(
100 + --enable-blkid
101 + --with-crond-dir="${EPREFIX}/etc/cron.d"
102 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
103 + $(use_enable icu libicu)
104 + $(use_enable nls gettext)
105 + $(use_enable libedit editline)
106 + )
107 +
108 + if is-flagq -flto ; then
109 + myconf+=( --enable-lto )
110 + else
111 + myconf+=( --disable-lto )
112 + fi
113 +
114 + econf "${myconf[@]}"
115 +}
116 +
117 +src_compile() {
118 + emake V=1
119 +}
120 +
121 +src_install() {
122 + emake DIST_ROOT="${ED}" install
123 + emake DIST_ROOT="${ED}" install-dev
124 +
125 + gen_usr_ldscript -a handle
126 +}