Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/
Date: Sun, 29 Jan 2017 22:55:40
Message-Id: 1485730395.2acfd4c6169ae0084ebcfe7b1ca6d5d21754c663.soap@gentoo
1 commit: 2acfd4c6169ae0084ebcfe7b1ca6d5d21754c663
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Sat Jan 28 15:56:55 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 22:53:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2acfd4c6
7
8 media-video/mpv: adjust compiler checks in 9999
9
10 mpv doesn't build with GCC<4.5 due to missing compiler flags.
11 TLS is now used in generic GL code, so require it when GL is enabled.
12
13 Package-Manager: Portage-2.3.3, Repoman-2.3.1
14 Closes: https://github.com/gentoo/gentoo/pull/3718
15
16 media-video/mpv/mpv-9999.ebuild | 10 ++++++++--
17 1 file changed, 8 insertions(+), 2 deletions(-)
18
19 diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild
20 index 488ac52..bbc72b9 100644
21 --- a/media-video/mpv/mpv-9999.ebuild
22 +++ b/media-video/mpv/mpv-9999.ebuild
23 @@ -135,8 +135,14 @@ PATCHES=(
24 )
25
26 mpv_check_compiler() {
27 - if [[ ${MERGE_TYPE} != "binary" ]] && use vaapi && use egl && ! tc-has-tls; then
28 - die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3."
29 + if [[ ${MERGE_TYPE} != "binary" ]]; then
30 + if tc-is-gcc && ( [[ $(gcc-major-version) -lt 4 ]] || \
31 + ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -lt 5 ]] ) ); then
32 + die "${PN} requires GCC>=4.5."
33 + fi
34 + if ( use opengl || use egl ) && ! tc-has-tls; then
35 + die "Your compiler lacks C++11 TLS support. Use GCC>=4.8 or Clang>=3.3."
36 + fi
37 fi
38 }