1 |
commit: cb59eb7aebe85455c7c2d8133464b226d72f8ed3 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 27 07:03:17 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 27 07:03:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb59eb7a |
7 |
|
8 |
media-libs/codec2: 1.0.1 - fixed compilation issue |
9 |
|
10 |
Closes: https://bugs.gentoo.org/817437 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
media-libs/codec2/codec2-1.0.1.ebuild | 4 ++++ |
15 |
.../codec2/files/codec2-1.0.1-static-rx_filter_coh.patch | 13 +++++++++++++ |
16 |
2 files changed, 17 insertions(+) |
17 |
|
18 |
diff --git a/media-libs/codec2/codec2-1.0.1.ebuild b/media-libs/codec2/codec2-1.0.1.ebuild |
19 |
index 43e5b77c8f4..616aed089b4 100644 |
20 |
--- a/media-libs/codec2/codec2-1.0.1.ebuild |
21 |
+++ b/media-libs/codec2/codec2-1.0.1.ebuild |
22 |
@@ -17,6 +17,10 @@ IUSE="examples test" |
23 |
# Not yet passing, but infrastructure added to run |
24 |
RESTRICT="test" |
25 |
|
26 |
+PATCHES=( |
27 |
+ "${FILESDIR}/codec2-1.0.1-static-rx_filter_coh.patch" |
28 |
+) |
29 |
+ |
30 |
multilib_src_configure() { |
31 |
local mycmakeargs=( |
32 |
-DUNITTEST=$(usex test) |
33 |
|
34 |
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 |
35 |
new file mode 100644 |
36 |
index 00000000000..9290ea9b2cf |
37 |
--- /dev/null |
38 |
+++ b/media-libs/codec2/files/codec2-1.0.1-static-rx_filter_coh.patch |
39 |
@@ -0,0 +1,13 @@ |
40 |
+diff --git a/src/cohpsk.c b/src/cohpsk.c |
41 |
+index f4f8dcdc..0b0ead9c 100644 |
42 |
+--- a/src/cohpsk.c |
43 |
++++ b/src/cohpsk.c |
44 |
+@@ -809,7 +809,7 @@ typedef float float4 __attribute__ ((vector_size (16))); |
45 |
+ |
46 |
+ \*---------------------------------------------------------------------------*/ |
47 |
+ |
48 |
+-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) |
49 |
++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) |
50 |
+ { |
51 |
+ int c,i,j,k,l; |
52 |
+ int n=COHPSK_M/P; |