public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
@ 2017-01-29 22:55 99% David Seifert
  0 siblings, 0 replies; 1+ results
From: David Seifert @ 2017-01-29 22:55 UTC (permalink / raw
  To: gentoo-commits

commit:     6d6adc6f7ab3c4d727d84669a01e56608a7cae86
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Sat Jan 28 16:35:52 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Jan 29 22:53:16 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6adc6f

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 ee0b6c6..0127953 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}"


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-01-29 22:55 99% [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox