1 |
commit: 50b1b854dcc2c8edf99916c8acfc1610619adce3 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 31 19:00:59 2021 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 19:02:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50b1b854 |
7 |
|
8 |
app-text/xmlstarlet: Fix linking for lld + profile 17.1 + amd64 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/729600 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
13 |
|
14 |
app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild | 18 ++++++++++++++++-- |
15 |
1 file changed, 16 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild b/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild |
18 |
index c2ad4628c94..81ac6ed97cc 100644 |
19 |
--- a/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild |
20 |
+++ b/app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild |
21 |
@@ -1,9 +1,9 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
-inherit flag-o-matic toolchain-funcs |
29 |
+inherit autotools multilib flag-o-matic toolchain-funcs |
30 |
|
31 |
DESCRIPTION="A set of tools to transform, query, validate, and edit XML documents" |
32 |
HOMEPAGE="http://xmlstar.sourceforge.net/" |
33 |
@@ -21,6 +21,20 @@ RDEPEND=" |
34 |
DEPEND="${RDEPEND}" |
35 |
BDEPEND="virtual/pkgconfig" |
36 |
|
37 |
+src_prepare() { |
38 |
+ eapply_user |
39 |
+ |
40 |
+ # We need to patch use of /usr/lib because it is a problem with |
41 |
+ # linker lld with profile 17.1 on amd64 (see https://bugs.gentoo.org/729600) |
42 |
+ # The grep sandwich acts as a regression test so that a future |
43 |
+ # version bump cannot break patching without noticing |
44 |
+ grep -wq _PREFIX/lib m4/xstar-check-libs.m4 || die |
45 |
+ sed "s,_PREFIX/lib,_PREFIX/$(get_libdir)," -i m4/xstar-check-libs.m4 || die |
46 |
+ grep -w _PREFIX/lib m4/xstar-check-libs.m4 && die |
47 |
+ |
48 |
+ eautoreconf |
49 |
+} |
50 |
+ |
51 |
src_configure() { |
52 |
append-cppflags $($(tc-getPKG_CONFIG) --cflags libxml-2.0) |