Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/fldigi/files/, media-radio/fldigi/
Date: Mon, 07 Feb 2022 18:44:17
Message-Id: 1644259380.a2fe58bfad5cdf534d6ae3e3e6de3d48843509ed.tomjbe@gentoo
1 commit: a2fe58bfad5cdf534d6ae3e3e6de3d48843509ed
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 7 18:43:00 2022 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 18:43:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2fe58bf
7
8 media-radio/fldigi: Fixes musl build error
9
10 Closes: https://bugs.gentoo.org/832231
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
13
14 media-radio/fldigi/files/fldigi-4.1.20-musl.patch | 14 ++++++++++++++
15 media-radio/fldigi/fldigi-4.1.20.ebuild | 9 ++++++++-
16 2 files changed, 22 insertions(+), 1 deletion(-)
17
18 diff --git a/media-radio/fldigi/files/fldigi-4.1.20-musl.patch b/media-radio/fldigi/files/fldigi-4.1.20-musl.patch
19 new file mode 100644
20 index 000000000000..5b96abf40337
21 --- /dev/null
22 +++ b/media-radio/fldigi/files/fldigi-4.1.20-musl.patch
23 @@ -0,0 +1,14 @@
24 +diff --git a/src/cmedia/cmedia.cxx b/src/cmedia/cmedia.cxx
25 +index b08e3d7..cc775e9 100644
26 +--- a/src/cmedia/cmedia.cxx
27 ++++ b/src/cmedia/cmedia.cxx
28 +@@ -41,9 +41,6 @@
29 + #ifndef __WIN32__
30 + #include <termios.h>
31 + #include <glob.h>
32 +-# ifndef __APPLE__
33 +-# include <error.h>
34 +-# endif
35 + #endif
36 +
37 + #include "config.h"
38
39 diff --git a/media-radio/fldigi/fldigi-4.1.20.ebuild b/media-radio/fldigi/fldigi-4.1.20.ebuild
40 index 76084ffc4c43..792f85ce34c9 100644
41 --- a/media-radio/fldigi/fldigi-4.1.20.ebuild
42 +++ b/media-radio/fldigi/fldigi-4.1.20.ebuild
43 @@ -1,4 +1,4 @@
44 -# Copyright 1999-2021 Gentoo Authors
45 +# Copyright 1999-2022 Gentoo Authors
46 # Distributed under the terms of the GNU General Public License v2
47
48 EAPI=8
49 @@ -35,6 +35,13 @@ DEPEND="${RDEPEND}
50
51 DOCS=( AUTHORS ChangeLog NEWS README )
52
53 +PATCHES=( "${FILESDIR}/${PN}-4.1.20-musl.patch" )
54 +
55 +src_prepare() {
56 + eapply ${PATCHES[@]}
57 + eapply_user
58 +}
59 +
60 src_configure() {
61 append-cxxflags $(test-flags-CXX -std=c++14)
62 local myconf=""