From 6d6adc6f7ab3c4d727d84669a01e56608a7cae86 Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Sat, 28 Jan 2017 19:35:52 +0300 Subject: media-video/mpv: enforce proper pkg-config in 9999 Export PKG_CONFIG. Otherwise mpv uses waf machinery to basically do $(which pkg-config) and then uses the result. This command is probably harmless in most cases, but it breaks cross-compilation entirely as compiler arguments are polluted with flags like '-L/usr/lib', which breaks e.g. linking. Export also CC and AR. This works fine now, but leave no chances to get screwed by waf. Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3718 --- media-video/mpv/mpv-9999.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild index ee0b6c629a5f..01279532d659 100644 --- a/media-video/mpv/mpv-9999.ebuild +++ b/media-video/mpv/mpv-9999.ebuild @@ -167,6 +167,8 @@ src_prepare() { } src_configure() { + tc-export CC PKG_CONFIG AR + local mywafargs=( --confdir="${EPREFIX}/etc/${PN}" --docdir="${EPREFIX}/usr/share/doc/${PF}" -- cgit v1.2.3-65-gdbad