media-video/mpv: disable broken cross-builds with raspberry-pi in 9999
authorIlya Tumaykin <itumaykin@gmail.com>
Sat, 28 Jan 2017 16:43:08 +0000 (19:43 +0300)
committerDavid Seifert <soap@gentoo.org>
Sun, 29 Jan 2017 22:53:17 +0000 (23:53 +0100)
Upstream now uses pkg-config to determine raspberry-pi compiler
flags instead of hardcoding them. Update the ebuild accordingly.

This is nice, but Gentoo tools are broken and don't work as advertised,
see Gentoo bug 607344. Thus, disable cross-builds with raspberry-pi for
now. The required bits are in ebuild, so power users can workaround it.

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 8e33c3e35e4aaaa55bdaef3379d4e2fa85020389..7d21765d19a78783ff37d9fb1f98232f855ea34c 100644 (file)
@@ -169,6 +169,12 @@ src_prepare() {
 src_configure() {
        tc-export CC PKG_CONFIG AR
 
+       if tc-is-cross-compiler && use raspberry-pi; then
+               export EXTRA_PKG_CONFIG_LIBDIR="${SYSROOT%/}${EPREFIX}/opt/vc/lib/pkgconfig"
+               # Drop next line when Gentoo bug 607344 is fixed or if you fixed it locally.
+               die "${PN} can't be cross built with raspberry-pi USE enabled. See Gentoo bug 607344."
+       fi
+
        local mywafargs=(
                --confdir="${EPREFIX}/etc/${PN}"
                --docdir="${EPREFIX}/usr/share/doc/${PF}"