commit:     b60e3a9c208702a304c4578851a121b544d4a07c
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  7 18:47:10 2022 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Feb  7 18:47:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b60e3a9c

media-radio/flrig: Fixes musl build error

Closes: https://bugs.gentoo.org/832232
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 media-radio/flrig/files/flrig-1.4.4-musl.patch | 28 ++++++++++++++++++++++++++
 media-radio/flrig/flrig-1.4.4.ebuild           |  9 ++++++++-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/media-radio/flrig/files/flrig-1.4.4-musl.patch 
b/media-radio/flrig/files/flrig-1.4.4-musl.patch
new file mode 100644
index 000000000000..44c85a711828
--- /dev/null
+++ b/media-radio/flrig/files/flrig-1.4.4-musl.patch
@@ -0,0 +1,28 @@
+diff --git a/src/cmedia/cmedia.cxx b/src/cmedia/cmedia.cxx
+index c65400f..efe83c5 100644
+--- a/src/cmedia/cmedia.cxx
++++ b/src/cmedia/cmedia.cxx
+@@ -41,9 +41,6 @@
+ #ifndef __WIN32__
+ #include <termios.h>
+ #include <glob.h>
+-#  ifndef __APPLE__
+-#    include <error.h>
+-#  endif
+ #endif
+ 
+ #include "config.h"
+diff --git a/src/cmedia/tmate2.cxx b/src/cmedia/tmate2.cxx
+index b209469..6408179 100644
+--- a/src/cmedia/tmate2.cxx
++++ b/src/cmedia/tmate2.cxx
+@@ -44,9 +44,6 @@
+ #ifndef __WIN32__
+ #include <termios.h>
+ #include <glob.h>
+-#  ifndef __APPLE__
+-#    include <error.h>
+-#  endif
+ #endif
+ 
+ #include "config.h"

diff --git a/media-radio/flrig/flrig-1.4.4.ebuild 
b/media-radio/flrig/flrig-1.4.4.ebuild
index a98ec86ead1f..fa8591685185 100644
--- a/media-radio/flrig/flrig-1.4.4.ebuild
+++ b/media-radio/flrig/flrig-1.4.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -20,3 +20,10 @@ RDEPEND="x11-libs/libX11
 
 DEPEND="${RDEPEND}
        sys-devel/gettext"
+
+PATCHES=( "${FILESDIR}/${PN}-1.4.4-musl.patch" )
+
+src_prepare() {
+       eapply ${PATCHES[@]}
+       eapply_user
+}

Reply via email to