wok-current rev 25624

Patch gst-ffmpeg to work with new gcc
author Stanislas Leduc <shann@slitaz.org>
date Mon Sep 04 19:03:50 2023 +0000 (15 months ago)
parents 21d80f294788
children 17a2e23e5aba
files gst-ffmpeg/receipt gst-ffmpeg/stuff/gst-ffmpeg_gcc47.patch
line diff
     1.1 --- a/gst-ffmpeg/receipt	Mon Sep 04 18:47:50 2023 +0000
     1.2 +++ b/gst-ffmpeg/receipt	Mon Sep 04 19:03:50 2023 +0000
     1.3 @@ -28,6 +28,9 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	# Patch to work with gcc >= 4.7
     1.8 +	patch -p1 $stuff/gst-ffmpeg_gcc47.patch
     1.9 +
    1.10  	sed -i 's|ORC_TARGET_ALTIVEC_ALTIVEC|ORC_TARGET_POWERPC_ALTIVEC|' ext/*/*.c
    1.11  	./configure \
    1.12  		--prefix=/usr \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gst-ffmpeg/stuff/gst-ffmpeg_gcc47.patch	Mon Sep 04 19:03:50 2023 +0000
     2.3 @@ -0,0 +1,65 @@
     2.4 +gst-ffmpeg libav: Fixes compiling gst-ffmpeg with gcc-4.7
     2.5 +
     2.6 +Fetch from: http://www.slackware.com/~alien/slackbuilds/gst-plugins-ffmpeg/build/gst-ffmpeg-0.10.13_gcc47.patch
     2.7 +
     2.8 +Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
     2.9 +---
    2.10 +Submitted By: Andrew Benton <andy@benton.eu.com>
    2.11 +Date: 2012-06-15
    2.12 +Initial Package Version: 0.10.13
    2.13 +Upstream Status: From upstream
    2.14 +Origin:
    2.15 +http://git.videolan.org/?p=ffmpeg.git;a=patch;h=5f654897e325349dacf2546674e0510bb72ecb50
    2.16 +
    2.17 +Description: Fixes compiling gst-ffmpeg with gcc-4.7
    2.18 +
    2.19 +libavcodec/x86/h264_qpel_mmx.c: Assembler messages:
    2.20 +libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp'
    2.21 +libavcodec/x86/h264_qpel_mmx.c:1294: Error: operand type mismatch for `cmp'
    2.22 +libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp'
    2.23 +libavcodec/x86/h264_qpel_mmx.c:1298: Error: operand type mismatch for `cmp'
    2.24 +libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
    2.25 +libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
    2.26 +libavcodec/x86/h264_qpel_mmx.c:964: Error: operand type mismatch for `cmp'
    2.27 +make[5]: *** [libavcodec/x86/dsputil_mmx.o] Error 1
    2.28 +
    2.29 +Index: gst-ffmpeg-0.10.13/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c
    2.30 +===================================================================
    2.31 +--- gst-ffmpeg-0.10.13.orig/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c	2012-03-30 11:39:41.324522051 -0700
    2.32 ++++ gst-ffmpeg-0.10.13/gst-libs/ext/libav/libavcodec/x86/h264_qpel_mmx.c	2012-03-30 11:54:08.152564075 -0700
    2.33 +@@ -398,7 +398,7 @@
    2.34 +             "2:                         \n\t"\
    2.35 +             \
    2.36 +             : "+a"(src), "+c"(dst)\
    2.37 +-            : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
    2.38 ++            : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
    2.39 +             : "memory"\
    2.40 +         );\
    2.41 +         src += 4-(h+5)*srcStride;\
    2.42 +@@ -446,7 +446,7 @@
    2.43 +             QPEL_H264HV(%%mm3, %%mm4, %%mm5, %%mm0, %%mm1, %%mm2, 15*48)\
    2.44 +             "2:                     \n\t"\
    2.45 +             : "+a"(src)\
    2.46 +-            : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)\
    2.47 ++            : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)\
    2.48 +             : "memory"\
    2.49 +             );\
    2.50 +         tmp += 4;\
    2.51 +@@ -823,7 +823,7 @@
    2.52 +         "2:                          \n\t"\
    2.53 +         \
    2.54 +         : "+a"(src), "+c"(dst)\
    2.55 +-        : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "g"(h)\
    2.56 ++        : "S"((x86_reg)srcStride), "D"((x86_reg)dstStride), "rm"(h)\
    2.57 +         : XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3", \
    2.58 +                        "%xmm4", "%xmm5", "%xmm6", "%xmm7",)\
    2.59 +           "memory"\
    2.60 +@@ -878,7 +878,7 @@
    2.61 +             QPEL_H264HV_XMM(%%xmm3, %%xmm4, %%xmm5, %%xmm0, %%xmm1, %%xmm2, 15*48)
    2.62 +             "2:                         \n\t"
    2.63 +             : "+a"(src)
    2.64 +-            : "c"(tmp), "S"((x86_reg)srcStride), "g"(size)
    2.65 ++            : "c"(tmp), "S"((x86_reg)srcStride), "rm"(size)
    2.66 +             : XMM_CLOBBERS("%xmm0", "%xmm1", "%xmm2", "%xmm3",
    2.67 +                            "%xmm4", "%xmm5", "%xmm6", "%xmm7",)
    2.68 +               "memory"