Skip to content

Commit

Permalink
media-video/mpv: disable broken cross-builds with raspberry-pi in 9999
Browse files Browse the repository at this point in the history
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: gentoo#3718
  • Loading branch information
Coacher authored and SoapGentoo committed Jan 29, 2017
1 parent 787764f commit 87fa687
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions media-video/mpv/mpv-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 87fa687

Please sign in to comment.