1 |
commit: 87fa687b4bda308e2039f5ac534109c502a1201e |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 28 16:43:08 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 29 22:53:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87fa687b |
7 |
|
8 |
media-video/mpv: disable broken cross-builds with raspberry-pi in 9999 |
9 |
|
10 |
Upstream now uses pkg-config to determine raspberry-pi compiler |
11 |
flags instead of hardcoding them. Update the ebuild accordingly. |
12 |
|
13 |
This is nice, but Gentoo tools are broken and don't work as advertised, |
14 |
see Gentoo bug 607344. Thus, disable cross-builds with raspberry-pi for |
15 |
now. The required bits are in ebuild, so power users can workaround it. |
16 |
|
17 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
18 |
Closes: https://github.com/gentoo/gentoo/pull/3718 |
19 |
|
20 |
media-video/mpv/mpv-9999.ebuild | 6 ++++++ |
21 |
1 file changed, 6 insertions(+) |
22 |
|
23 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
24 |
index 8e33c3e..7d21765 100644 |
25 |
--- a/media-video/mpv/mpv-9999.ebuild |
26 |
+++ b/media-video/mpv/mpv-9999.ebuild |
27 |
@@ -169,6 +169,12 @@ src_prepare() { |
28 |
src_configure() { |
29 |
tc-export CC PKG_CONFIG AR |
30 |
|
31 |
+ if tc-is-cross-compiler && use raspberry-pi; then |
32 |
+ export EXTRA_PKG_CONFIG_LIBDIR="${SYSROOT%/}${EPREFIX}/opt/vc/lib/pkgconfig" |
33 |
+ # Drop next line when Gentoo bug 607344 is fixed or if you fixed it locally. |
34 |
+ die "${PN} can't be cross built with raspberry-pi USE enabled. See Gentoo bug 607344." |
35 |
+ fi |
36 |
+ |
37 |
local mywafargs=( |
38 |
--confdir="${EPREFIX}/etc/${PN}" |
39 |
--docdir="${EPREFIX}/usr/share/doc/${PF}" |