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/flrig/, media-radio/flrig/files/
Date: Mon, 07 Feb 2022 18:47:27
Message-Id: 1644259630.b60e3a9c208702a304c4578851a121b544d4a07c.tomjbe@gentoo
1 commit: b60e3a9c208702a304c4578851a121b544d4a07c
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 7 18:47:10 2022 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 18:47:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b60e3a9c
7
8 media-radio/flrig: Fixes musl build error
9
10 Closes: https://bugs.gentoo.org/832232
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/flrig/files/flrig-1.4.4-musl.patch | 28 ++++++++++++++++++++++++++
15 media-radio/flrig/flrig-1.4.4.ebuild | 9 ++++++++-
16 2 files changed, 36 insertions(+), 1 deletion(-)
17
18 diff --git a/media-radio/flrig/files/flrig-1.4.4-musl.patch b/media-radio/flrig/files/flrig-1.4.4-musl.patch
19 new file mode 100644
20 index 000000000000..44c85a711828
21 --- /dev/null
22 +++ b/media-radio/flrig/files/flrig-1.4.4-musl.patch
23 @@ -0,0 +1,28 @@
24 +diff --git a/src/cmedia/cmedia.cxx b/src/cmedia/cmedia.cxx
25 +index c65400f..efe83c5 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 +diff --git a/src/cmedia/tmate2.cxx b/src/cmedia/tmate2.cxx
39 +index b209469..6408179 100644
40 +--- a/src/cmedia/tmate2.cxx
41 ++++ b/src/cmedia/tmate2.cxx
42 +@@ -44,9 +44,6 @@
43 + #ifndef __WIN32__
44 + #include <termios.h>
45 + #include <glob.h>
46 +-# ifndef __APPLE__
47 +-# include <error.h>
48 +-# endif
49 + #endif
50 +
51 + #include "config.h"
52
53 diff --git a/media-radio/flrig/flrig-1.4.4.ebuild b/media-radio/flrig/flrig-1.4.4.ebuild
54 index a98ec86ead1f..fa8591685185 100644
55 --- a/media-radio/flrig/flrig-1.4.4.ebuild
56 +++ b/media-radio/flrig/flrig-1.4.4.ebuild
57 @@ -1,4 +1,4 @@
58 -# Copyright 1999-2021 Gentoo Authors
59 +# Copyright 1999-2022 Gentoo Authors
60 # Distributed under the terms of the GNU General Public License v2
61
62 EAPI=8
63 @@ -20,3 +20,10 @@ RDEPEND="x11-libs/libX11
64
65 DEPEND="${RDEPEND}
66 sys-devel/gettext"
67 +
68 +PATCHES=( "${FILESDIR}/${PN}-1.4.4-musl.patch" )
69 +
70 +src_prepare() {
71 + eapply ${PATCHES[@]}
72 + eapply_user
73 +}