commit:     cb59eb7aebe85455c7c2d8133464b226d72f8ed3
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 27 07:03:17 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Oct 27 07:03:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb59eb7a

media-libs/codec2: 1.0.1 - fixed compilation issue

Closes: https://bugs.gentoo.org/817437
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 media-libs/codec2/codec2-1.0.1.ebuild                       |  4 ++++
 .../codec2/files/codec2-1.0.1-static-rx_filter_coh.patch    | 13 +++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/media-libs/codec2/codec2-1.0.1.ebuild 
b/media-libs/codec2/codec2-1.0.1.ebuild
index 43e5b77c8f4..616aed089b4 100644
--- a/media-libs/codec2/codec2-1.0.1.ebuild
+++ b/media-libs/codec2/codec2-1.0.1.ebuild
@@ -17,6 +17,10 @@ IUSE="examples test"
 # Not yet passing, but infrastructure added to run
 RESTRICT="test"
 
+PATCHES=(
+       "${FILESDIR}/codec2-1.0.1-static-rx_filter_coh.patch"
+)
+
 multilib_src_configure() {
        local mycmakeargs=(
                -DUNITTEST=$(usex test)

diff --git a/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch 
b/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch
new file mode 100644
index 00000000000..9290ea9b2cf
--- /dev/null
+++ b/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch
@@ -0,0 +1,13 @@
+diff --git a/src/cohpsk.c b/src/cohpsk.c
+index f4f8dcdc..0b0ead9c 100644
+--- a/src/cohpsk.c
++++ b/src/cohpsk.c
+@@ -809,7 +809,7 @@ typedef float float4 __attribute__ ((vector_size (16)));
+ 
+ 
\*---------------------------------------------------------------------------*/
+ 
+-inline void rx_filter_coh(COMP rx_filt[COHPSK_NC+1][P+1], int Nc, COMP 
rx_baseband[COHPSK_NC+1][COHPSK_M+COHPSK_M/P], COMP 
rx_filter_memory[COHPSK_NC+1][+COHPSK_NFILTER], int nin)
++static inline void rx_filter_coh(COMP rx_filt[COHPSK_NC+1][P+1], int Nc, COMP 
rx_baseband[COHPSK_NC+1][COHPSK_M+COHPSK_M/P], COMP 
rx_filter_memory[COHPSK_NC+1][+COHPSK_NFILTER], int nin)
+ {
+     int c,i,j,k,l;
+     int n=COHPSK_M/P;

Reply via email to