1 |
commit: 530ab1e60ae5a831e45bf68527471dc4f40685a8 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 15 13:13:10 2015 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 15 13:13:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=530ab1e6 |
7 |
|
8 |
media-libs/phonon: add patch by Ryan Hill <rhill <AT> gentoo.org> to fix build with GCC5. |
9 |
|
10 |
Gentoo-bug: 555866 |
11 |
|
12 |
Package-Manager: portage-2.2.26 |
13 |
|
14 |
media-libs/phonon/files/phonon-4.8.3-gcc5.patch | 34 +++++++++++++++++++++++++ |
15 |
media-libs/phonon/phonon-4.8.3-r1.ebuild | 5 +++- |
16 |
2 files changed, 38 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-libs/phonon/files/phonon-4.8.3-gcc5.patch b/media-libs/phonon/files/phonon-4.8.3-gcc5.patch |
19 |
new file mode 100644 |
20 |
index 0000000..5038d73 |
21 |
--- /dev/null |
22 |
+++ b/media-libs/phonon/files/phonon-4.8.3-gcc5.patch |
23 |
@@ -0,0 +1,34 @@ |
24 |
+commit e966180fbba1812f8050a743351036d573c19b1f |
25 |
+Author: Ryan Hill <rhill@g.o> |
26 |
+Date: Sun Sep 13 06:17:43 2015 -0600 |
27 |
+ |
28 |
+ Fix build failure with GCC 5 and Qt 5.4.2. |
29 |
+ |
30 |
+ Recent versions of GCC (>=5.1) will sometimes emit copy relocations when |
31 |
+ compiling with -fPIE, which causes some Qt applications to crash. As of |
32 |
+ 5.4.2 all code built against Qt must instead be compiled with -fPIC. |
33 |
+ |
34 |
+ Enabling CMAKE_POSITION_INDEPENDENT_CODE will cause cmake to add -fPIC or |
35 |
+ -fPIE depending on the type of object being built. The try_compile() test |
36 |
+ for -fvisibility=hidden support is creating an executable so -fPIE is used |
37 |
+ which makes Qt throw a fit. |
38 |
+ |
39 |
+ Gentoo-Bug: https://bugs.gentoo.org/555866 |
40 |
+ See-Also: https://bugreports.qt.io/browse/QTBUG-45755 |
41 |
+--- |
42 |
+ cmake/FindPhononInternal.cmake | 4 ++-- |
43 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
44 |
+ |
45 |
+--- a/cmake/FindPhononInternal.cmake |
46 |
++++ b/cmake/FindPhononInternal.cmake |
47 |
+@@ -109,8 +109,8 @@ else (NOT PHONON_BUILD_PHONON4QT5) # Qt5 |
48 |
+ find_package(Qt5Widgets) |
49 |
+ macro_log_feature(Qt5Widgets_FOUND "Qt5 Widgets (qtbase)" "" "" TRUE) |
50 |
+ |
51 |
+- if (Qt5_POSITION_INDEPENDENT_CODE) |
52 |
+- set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
53 |
++ if(Qt5_POSITION_INDEPENDENT_CODE AND CMAKE_CXX_COMPILE_OPTIONS_PIC) |
54 |
++ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_COMPILE_OPTIONS_PIC}") |
55 |
+ endif() |
56 |
+ |
57 |
+ #---- compat |
58 |
|
59 |
diff --git a/media-libs/phonon/phonon-4.8.3-r1.ebuild b/media-libs/phonon/phonon-4.8.3-r1.ebuild |
60 |
index d308940..c1b5b0e 100644 |
61 |
--- a/media-libs/phonon/phonon-4.8.3-r1.ebuild |
62 |
+++ b/media-libs/phonon/phonon-4.8.3-r1.ebuild |
63 |
@@ -58,7 +58,10 @@ PDEPEND=" |
64 |
vlc? ( >=media-libs/phonon-vlc-0.8.0[qt4?,qt5?] ) |
65 |
" |
66 |
|
67 |
-PATCHES=( "${FILESDIR}/${PN}-4.7.0-plugin-install.patch" ) |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/${PN}-4.7.0-plugin-install.patch" |
70 |
+ "${FILESDIR}/${P}-gcc5.patch" |
71 |
+) |
72 |
|
73 |
pkg_setup() { |
74 |
MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) ) |