summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2022-02-07 19:47:10 +0100
committerThomas Beierlein <tomjbe@gentoo.org>2022-02-07 19:47:10 +0100
commitb60e3a9c208702a304c4578851a121b544d4a07c (patch)
treebb289f47c93e7f7bdaed053c603b6f5bc62d62fd /media-radio
parentmedia-radio/fldigi: Fixes musl build error (diff)
downloadgentoo-b60e3a9c208702a304c4578851a121b544d4a07c.tar.gz
gentoo-b60e3a9c208702a304c4578851a121b544d4a07c.tar.bz2
gentoo-b60e3a9c208702a304c4578851a121b544d4a07c.zip
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@gentoo.org>
Diffstat (limited to 'media-radio')
-rw-r--r--media-radio/flrig/files/flrig-1.4.4-musl.patch28
-rw-r--r--media-radio/flrig/flrig-1.4.4.ebuild9
2 files changed, 36 insertions, 1 deletions
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
+}