commit:     e73573692da466a260372f147612c7602bd8bf4b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  2 04:42:45 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  2 04:43:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7357369

media-sound/sidplayfp: add musl patch

Closes: https://bugs.gentoo.org/764113
Thanks-to: ernsteiswuerfel <erhard_f <AT> mailbox.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/sidplayfp/files/sidplayfp-1.4.4-musl-limits.patch | 11 +++++++++++
 media-sound/sidplayfp/sidplayfp-1.4.4.ebuild                  |  9 ++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/media-sound/sidplayfp/files/sidplayfp-1.4.4-musl-limits.patch 
b/media-sound/sidplayfp/files/sidplayfp-1.4.4-musl-limits.patch
new file mode 100644
index 000000000000..ad810d66f5b5
--- /dev/null
+++ b/media-sound/sidplayfp/files/sidplayfp-1.4.4-musl-limits.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/764113
+--- a/src/IniConfig.cpp
++++ b/src/IniConfig.cpp
+@@ -36,6 +36,7 @@
+ #  include <sys/types.h>
+ #  include <sys/stat.h>  /* mkdir */
+ #  include <dirent.h>    /* opendir */
++#  include <limits.h>
+ #else
+ #  include <windows.h>
+ #endif

diff --git a/media-sound/sidplayfp/sidplayfp-1.4.4.ebuild 
b/media-sound/sidplayfp/sidplayfp-1.4.4.ebuild
index 40dc1277bbd0..caff4726ef0c 100644
--- a/media-sound/sidplayfp/sidplayfp-1.4.4.ebuild
+++ b/media-sound/sidplayfp/sidplayfp-1.4.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -22,11 +22,17 @@ DEPEND="${RDEPEND}
 
 DOCS=( AUTHORS README TODO )
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.4.4-musl-limits.patch
+)
+
 src_prepare() {
        default
+
        if ! use alsa; then
                sed -i -e 's:alsa >= 1.0:dIsAbLe&:' configure || die
        fi
+
        if ! use pulseaudio; then
                sed -i -e 's:libpulse-simple >= 1.0:dIsAbLe&:' configure || die
        fi
@@ -34,5 +40,6 @@ src_prepare() {
 
 src_configure() {
        export ac_cv_header_linux_soundcard_h=$(usex oss)
+
        econf
 }

Reply via email to