wok-current rev 25622
Patch gst-plugins-base to build with gcc >= 4.9 (again)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Sep 04 15:11:38 2023 +0000 (14 months ago) |
parents | b43832555246 |
children | 21d80f294788 |
files | gst-plugins-base/stuff/fix_xmmintrin_gcc4.9_build.patch gst-plugins-base/stuff/fix_xmmintrin_ss2.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gst-plugins-base/stuff/fix_xmmintrin_gcc4.9_build.patch Mon Sep 04 15:11:38 2023 +0000 1.3 @@ -0,0 +1,37 @@ 1.4 +Submitted By: Ken Moffat <ken at linuxfromscratch dot org> 1.5 +Date: 2014-05-26 1.6 +Initial Package Version: 0.10.36 1.7 +Upstream Status: Not offered, this is a workaround for gcc-4.9.0. 1.8 +Origin: Fernando, based on 1.9 + https://github.com/HandBrake/HandBrake/blob/master/contrib/lame/P00-darwin-xmmintrin.patch 1.10 +Description: Works around inlining failure on i686 with gcc-4.9.0. 1.11 +Rediffed to apply without fuzz and massive offset which caused 1.12 +configure.orig to get generated. 1.13 + 1.14 +Do Not Apply to x86_64. 1.15 + 1.16 +Note: there seems to still be a problem somewhere in the gst-0.10 audio 1.17 +on i686, I can get working video, but no audio. 1.18 + 1.19 +diff -Naur a/configure b/configure 1.20 +--- a/configure 2012-02-20 23:33:09.000000000 +0000 1.21 ++++ b/configure 2014-05-24 21:53:29.510695504 +0100 1.22 +@@ -21876,18 +21876,6 @@ 1.23 + done 1.24 + 1.25 + 1.26 +-for ac_header in xmmintrin.h emmintrin.h 1.27 +-do : 1.28 +- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 1.29 +-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 1.30 +-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 1.31 +- cat >>confdefs.h <<_ACEOF 1.32 +-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 1.33 +-_ACEOF 1.34 +- 1.35 +-fi 1.36 +- 1.37 +-done 1.38 + 1.39 + 1.40 + # ------ AX CREATE STDINT H -------------------------------------
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/gst-plugins-base/stuff/fix_xmmintrin_ss2.patch Mon Sep 04 15:11:38 2023 +0000 2.3 @@ -0,0 +1,35 @@ 2.4 +From 9bd5a7ae5435469c3557a3d70e762791cb3dc5c7 Mon Sep 17 00:00:00 2001 2.5 +From: Antoine Jacoutot <ajacoutot@gnome.org> 2.6 +Date: Mon, 20 Jan 2014 15:44:09 +0100 2.7 +Subject: [PATCH] audioresample: fix build on BSD 2.8 + 2.9 +On i386, EMMINTRIN is defined but not usable without sse so check for 2.10 +__SSE__ and __SSE2__ as well. 2.11 + 2.12 +https://bugzilla.gnome.org/show_bug.cgi?id=670690 2.13 +--- 2.14 + gst/audioresample/resample.c | 4 ++-- 2.15 + 1 file changed, 2 insertions(+), 2 deletions(-) 2.16 + 2.17 +diff --git a/gst/audioresample/resample.c b/gst/audioresample/resample.c 2.18 +index 98d006c..481fa01 100644 2.19 +--- a/gst/audioresample/resample.c 2.20 ++++ b/gst/audioresample/resample.c 2.21 +@@ -77,13 +77,13 @@ 2.22 + #define EXPORT G_GNUC_INTERNAL 2.23 + 2.24 + #ifdef _USE_SSE 2.25 +-#ifndef HAVE_XMMINTRIN_H 2.26 ++#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H) 2.27 + #undef _USE_SSE 2.28 + #endif 2.29 + #endif 2.30 + 2.31 + #ifdef _USE_SSE2 2.32 +-#ifndef HAVE_EMMINTRIN_H 2.33 ++#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H) 2.34 + #undef _USE_SSE2 2.35 + #endif 2.36 + #endif 2.37 +-- 2.38 +1.8.5.3