media-video/mpv: enforce proper pkg-config in 9999
authorIlya Tumaykin <itumaykin@gmail.com>
Sat, 28 Jan 2017 16:35:52 +0000 (19:35 +0300)
committerDavid Seifert <soap@gentoo.org>
Sun, 29 Jan 2017 22:53:16 +0000 (23:53 +0100)
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

index ee0b6c629a5ff5356bae88f0954b94ed690a0ea7..01279532d6597dcddb39171da8c939b13eac47f0 100644 (file)
@@ -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}"