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: Sat, 25 Aug 2018 19:06:02
Message-Id: 1535223946.39919014754bfa45be491927edf060f9b5fd0ea3.polynomial-c@gentoo
1 commit: 39919014754bfa45be491927edf060f9b5fd0ea3
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 25 18:45:58 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 25 19:05:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39919014
7
8 sys-fs/xfsprogs: Bump to version 4.18.0
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 sys-fs/xfsprogs/Manifest | 1 +
13 sys-fs/xfsprogs/xfsprogs-4.18.0.ebuild | 100 +++++++++++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/sys-fs/xfsprogs/Manifest b/sys-fs/xfsprogs/Manifest
17 index 2204bd7af60..1a243b97786 100644
18 --- a/sys-fs/xfsprogs/Manifest
19 +++ b/sys-fs/xfsprogs/Manifest
20 @@ -2,3 +2,4 @@ DIST xfsprogs-4.14.0.tar.xz 1137048 BLAKE2B b58373ca7f58e5d887cf18ed2aab169aed4b
21 DIST xfsprogs-4.15.1.tar.xz 1188964 BLAKE2B 7b4d1d2f71a0678f9246045e576262d6f3b3c59322e0b33b37dc46d84cdf5407a4b2fd6f2b99dd7647e9bfe9fe312fefe8162013dec9162f3a071421323aa52d SHA512 4ec3f0438f33322f0ff6e5acb27cbb554ab48df3ae0ef11071992b085016f84b49ca7bdbaf3a6859427877ea9c419bcd37ac3058914d67409ba2d65e586508ee
22 DIST xfsprogs-4.16.1.tar.xz 1199632 BLAKE2B 26448ce8ec691d117c0b41aebcb692994ad5a65418ac5af9631eab75191201a265ec9bce92d4076049a4182a879741329f20e5f54343afeef826cf1dfbfcf0d1 SHA512 d3cf3b07e07864341c351a078736ff7c721d86c177e65f131dc6e023cade74a5e07fecbc435d69946d76d587b138e66cddcd763954e15ed0dd17c056a83e2a19
23 DIST xfsprogs-4.17.0.tar.xz 1205508 BLAKE2B 46168792c1e4c335b7ed9e7489afc20d7df4b4e554eb86043b2c19303879491cc4746b18d23fdff3e2f92ca3887ac27957ae57e85ba784476d8891ea6909d67e SHA512 996de920c76de596b6175e4ae4ba9de208c16fbcf9362bbb44d25ee1c12b249d0178fc5cc93dc5a434ab20e6d515d64a3f51b8e89905b5b033b28a3638f4d400
24 +DIST xfsprogs-4.18.0.tar.xz 1214480 BLAKE2B 78db41319e53be1f03b66f85ecc7c50e0c6658fa3fd8ddd8539bac04e656614a5cb54dc930a324d9df6afe4024c2be10259b903e1ca0ccd0ffb340e7410692c2 SHA512 0629400f8824620138928a7d72908b7a852408814238a55e11d6eb3b2da42cd56273960430d3ea729a9bce95f605d225607940d4728b68c468c39eb5a9a590be
25
26 diff --git a/sys-fs/xfsprogs/xfsprogs-4.18.0.ebuild b/sys-fs/xfsprogs/xfsprogs-4.18.0.ebuild
27 new file mode 100644
28 index 00000000000..273db91aea0
29 --- /dev/null
30 +++ b/sys-fs/xfsprogs/xfsprogs-4.18.0.ebuild
31 @@ -0,0 +1,100 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit toolchain-funcs multilib systemd
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 ~s390 ~sh ~sparc ~x86"
46 +IUSE="icu libedit nls readline static static-libs"
47 +REQUIRED_USE="static? ( static-libs )"
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="!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.9.0-underlinking.patch
64 + "${FILESDIR}"/${PN}-4.15.0-sharedlibs.patch
65 + "${FILESDIR}"/${PN}-4.15.0-docdir.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 + default
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 + --disable-lto #655638
103 + --enable-blkid
104 + --with-crond-dir="${EPREFIX}/etc/cron.d"
105 + --with-systemd-unit-dir="$(systemd_get_systemunitdir)"
106 + $(use_enable icu libicu)
107 + $(use_enable nls gettext)
108 + $(use_enable readline)
109 + $(usex readline --disable-editline $(use_enable libedit editline))
110 + )
111 + if use static || use static-libs ; then
112 + myconf+=( --enable-static )
113 + else
114 + myconf+=( --disable-static )
115 + fi
116 +
117 + econf "${myconf[@]}"
118 +
119 + MAKEOPTS+=" V=1"
120 +}
121 +
122 +src_install() {
123 + emake DIST_ROOT="${ED}" install
124 + # parallel install fails on this target for >=xfsprogs-3.2.0
125 + emake -j1 DIST_ROOT="${ED}" install-dev
126 +
127 + # handle is for xfsdump, the rest for xfsprogs
128 + gen_usr_ldscript -a handle xcmd xfs xlog frog
129 + # removing unnecessary .la files if not needed
130 + use static-libs || find "${ED}" -name '*.la' -delete
131 +}