1 |
commit: 6d6adc6f7ab3c4d727d84669a01e56608a7cae86 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 28 16:35:52 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 22:53:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6adc6f |
7 |
|
8 |
media-video/mpv: enforce proper pkg-config in 9999 |
9 |
|
10 |
Export PKG_CONFIG. |
11 |
Otherwise mpv uses waf machinery to basically do $(which pkg-config) |
12 |
and then uses the result. This command is probably harmless in most |
13 |
cases, but it breaks cross-compilation entirely as compiler arguments |
14 |
are polluted with flags like '-L/usr/lib', which breaks e.g. linking. |
15 |
|
16 |
Export also CC and AR. |
17 |
This works fine now, but leave no chances to get screwed by waf. |
18 |
|
19 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
20 |
Closes: https://github.com/gentoo/gentoo/pull/3718 |
21 |
|
22 |
media-video/mpv/mpv-9999.ebuild | 2 ++ |
23 |
1 file changed, 2 insertions(+) |
24 |
|
25 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
26 |
index ee0b6c6..0127953 100644 |
27 |
--- a/media-video/mpv/mpv-9999.ebuild |
28 |
+++ b/media-video/mpv/mpv-9999.ebuild |
29 |
@@ -167,6 +167,8 @@ src_prepare() { |
30 |
} |
31 |
|
32 |
src_configure() { |
33 |
+ tc-export CC PKG_CONFIG AR |
34 |
+ |
35 |
local mywafargs=( |
36 |
--confdir="${EPREFIX}/etc/${PN}" |
37 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" |