From 226f7c55d62fd00cdcf68a5c36e7f073d8e91b28 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 1 Dec 2015 21:58:06 +0000 Subject: [PATCH] opus: gcc2 build fix. --- media-libs/opus/opus-1.1.1.recipe | 2 ++ media-libs/opus/patches/opus-1.1.1.patchset | 39 +++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 media-libs/opus/patches/opus-1.1.1.patchset diff --git a/media-libs/opus/opus-1.1.1.recipe b/media-libs/opus/opus-1.1.1.recipe index 63b73f32f..c312e2f49 100644 --- a/media-libs/opus/opus-1.1.1.recipe +++ b/media-libs/opus/opus-1.1.1.recipe @@ -34,6 +34,8 @@ CHECKSUM_SHA256="9b84ff56bd7720d5554103c557664efac2b8b18acc4bbcc234cb881ab9a3371 ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" +PATCHES="opus-$portVersion.patchset" + PROVIDES=" opus$secondaryArchSuffix = $portVersion compat >= 1 lib:libopus$secondaryArchSuffix = 0.5.1 compat >= 0 diff --git a/media-libs/opus/patches/opus-1.1.1.patchset b/media-libs/opus/patches/opus-1.1.1.patchset new file mode 100644 index 000000000..bbafc1c46 --- /dev/null +++ b/media-libs/opus/patches/opus-1.1.1.patchset @@ -0,0 +1,39 @@ +From e9aeb2c1e9fc7eaf03adc91e79e905fe1256c4a1 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Tue, 1 Dec 2015 21:42:24 +0000 +Subject: gcc2 fix + + +diff --git a/celt/tests/test_unit_dft.c b/celt/tests/test_unit_dft.c +index 484dc57..38d37d5 100644 +--- a/celt/tests/test_unit_dft.c ++++ b/celt/tests/test_unit_dft.c +@@ -154,8 +154,9 @@ void test1d(int nfft,int isinverse,int arch) + + int main(int argc,char ** argv) + { ++ int arch; + ALLOC_STACK; +- int arch = opus_select_arch(); ++ arch = opus_select_arch(); + + if (argc>1) { + int k; +diff --git a/celt/tests/test_unit_mdct.c b/celt/tests/test_unit_mdct.c +index 9e0ac9f..cc1a3f0 100644 +--- a/celt/tests/test_unit_mdct.c ++++ b/celt/tests/test_unit_mdct.c +@@ -185,8 +185,9 @@ void test1d(int nfft,int isinverse,int arch) + + int main(int argc,char ** argv) + { ++ int arch; + ALLOC_STACK; +- int arch = opus_select_arch(); ++ arch = opus_select_arch(); + + if (argc>1) { + int k; +-- +2.2.2 +