commit:     cc1aa656e022d809b2e9d2ef64c2c4360c75a9d3
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 09:04:52 2015 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 09:05:06 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc1aa656

media-video/cinelerra: Fix build with gcc 5.2 by disabling old useless code. 
Bug #562208.

Package-Manager: portage-2.2.23

 media-video/cinelerra/cinelerra-20140710.ebuild    |  4 ++-
 .../cinelerra/files/cinelerra-asm-gcc52.patch      | 15 +++++++++++
 .../cinelerra/files/cinelerra-putbits-gcc52.patch  | 29 ++++++++++++++++++++++
 3 files changed, 47 insertions(+), 1 deletion(-)

diff --git a/media-video/cinelerra/cinelerra-20140710.ebuild 
b/media-video/cinelerra/cinelerra-20140710.ebuild
index 0866be2..48f96ef 100644
--- a/media-video/cinelerra/cinelerra-20140710.ebuild
+++ b/media-video/cinelerra/cinelerra-20140710.ebuild
@@ -62,7 +62,9 @@ src_prepare() {
                "${FILESDIR}"/${P}-ffmpeg-0.11.patch \
                "${FILESDIR}"/${PN}-libav9.patch \
                "${FILESDIR}"/${PN}-pngtoh.patch \
-               "${FILESDIR}"/${PN}-nofindobject.patch
+               "${FILESDIR}"/${PN}-nofindobject.patch \
+               "${FILESDIR}"/${PN}-asm-gcc52.patch \
+               "${FILESDIR}"/${PN}-putbits-gcc52.patch
 
        if has_version '>=media-video/ffmpeg-2' ; then
                epatch "${FILESDIR}"/${PN}-ffmpeg2.patch

diff --git a/media-video/cinelerra/files/cinelerra-asm-gcc52.patch 
b/media-video/cinelerra/files/cinelerra-asm-gcc52.patch
new file mode 100644
index 0000000..1f46ad2
--- /dev/null
+++ b/media-video/cinelerra/files/cinelerra-asm-gcc52.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/show_bug.cgi?id=562208
+
+Index: cinelerra-20140710/quicktime/mmx.h
+===================================================================
+--- cinelerra-20140710.orig/quicktime/mmx.h
++++ cinelerra-20140710/quicktime/mmx.h
+@@ -102,7 +102,7 @@ typedef    union {
+  * are unused by Cinelerra CV.  Inspired by change found in
+  * <URL: http://hg.libsdl.org/SDL/file/32f0f603a0c8/src/video/mmx.h >
+  */
+-#if !defined(__clang__)
++#if 0
+ /*    Function to test if multimedia instructions are supported...
+ */
+ inline extern int

diff --git a/media-video/cinelerra/files/cinelerra-putbits-gcc52.patch 
b/media-video/cinelerra/files/cinelerra-putbits-gcc52.patch
new file mode 100644
index 0000000..646db9f
--- /dev/null
+++ b/media-video/cinelerra/files/cinelerra-putbits-gcc52.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/show_bug.cgi?id=562208
+
+Index: cinelerra-20140710/toolame-02l/bitstream.c
+===================================================================
+--- cinelerra-20140710.orig/toolame-02l/bitstream.c
++++ cinelerra-20140710/toolame-02l/bitstream.c
+@@ -198,9 +198,6 @@ void put1bit (Bit_stream_struc * bs, int
+ }
+ 
+ /*write N bits into the bit stream */
+-#if !defined(__clang__)
+-INLINE
+-#endif /* not __clang__ */
+ void putbits (Bit_stream_struc * bs, unsigned int val, int N)
+ {
+   register int j = N;
+Index: cinelerra-20140710/toolame-02l/bitstream.h
+===================================================================
+--- cinelerra-20140710.orig/toolame-02l/bitstream.h
++++ cinelerra-20140710/toolame-02l/bitstream.h
+@@ -9,7 +9,7 @@ unsigned int get1bit (Bit_stream_struc *
+ void put1bit (Bit_stream_struc *, int);
+ unsigned long look_ahead (Bit_stream_struc *, int);
+ unsigned long getbits (Bit_stream_struc *, int);
+-INLINE void putbits (Bit_stream_struc *, unsigned int, int);
++void putbits (Bit_stream_struc *, unsigned int, int);
+ void byte_ali_putbits (Bit_stream_struc *, unsigned int, int);
+ unsigned long byte_ali_getbits (Bit_stream_struc *, int);
+ unsigned long sstell (Bit_stream_struc *);

Reply via email to