Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/codec2/, media-libs/codec2/files/
Date: Sat, 08 Aug 2020 16:55:51
Message-Id: 1596905657.c9843a298647c9fd076a4fb54320cdf8a47466ae.soap@gentoo
1 commit: c9843a298647c9fd076a4fb54320cdf8a47466ae
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 8 16:54:17 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 8 16:54:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9843a29
7
8 media-libs/codec2: Fix building under -fno-common
9
10 Closes: https://bugs.gentoo.org/707668
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 media-libs/codec2/codec2-0.8.1.ebuild | 5 ++++-
15 media-libs/codec2/files/codec2-0.8.1-fno-common.patch | 11 +++++++++++
16 2 files changed, 15 insertions(+), 1 deletion(-)
17
18 diff --git a/media-libs/codec2/codec2-0.8.1.ebuild b/media-libs/codec2/codec2-0.8.1.ebuild
19 index 50150b2cb65..8dbf9acea97 100644
20 --- a/media-libs/codec2/codec2-0.8.1.ebuild
21 +++ b/media-libs/codec2/codec2-0.8.1.ebuild
22 @@ -15,7 +15,10 @@ SLOT="0"
23 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
24 IUSE="examples"
25
26 -PATCHES=( "${FILESDIR}/${P}-unused-deps.patch" )
27 +PATCHES=(
28 + "${FILESDIR}"/${P}-unused-deps.patch
29 + "${FILESDIR}"/${P}-fno-common.patch
30 +)
31
32 multilib_src_configure() {
33 local mycmakeargs=( -DUNITTEST=OFF )
34
35 diff --git a/media-libs/codec2/files/codec2-0.8.1-fno-common.patch b/media-libs/codec2/files/codec2-0.8.1-fno-common.patch
36 new file mode 100644
37 index 00000000000..d5818a01f5c
38 --- /dev/null
39 +++ b/media-libs/codec2/files/codec2-0.8.1-fno-common.patch
40 @@ -0,0 +1,11 @@
41 +--- a/src/codec2_ofdm.h
42 ++++ b/src/codec2_ofdm.h
43 +@@ -51,7 +51,7 @@
44 + struct OFDM;
45 +
46 + /* Default configuration for '700D' mode */
47 +-const struct OFDM_CONFIG * OFDM_CONFIG_700D;
48 ++extern const struct OFDM_CONFIG * OFDM_CONFIG_700D;
49 +
50 + /* create and destroy modem states */
51 +