media-sound/snd: Unconditionally compile `oss_sample_types` function
authorDavid Seifert <soap@gentoo.org>
Tue, 5 Sep 2017 07:13:35 +0000 (09:13 +0200)
committerDavid Seifert <soap@gentoo.org>
Tue, 5 Sep 2017 07:13:35 +0000 (09:13 +0200)
Closes: https://bugs.gentoo.org/show_bug.cgi?id=621758
Package-Manager: Portage-2.3.8, Repoman-2.3.3

media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch [new file with mode: 0644]
media-sound/snd/snd-17.4.ebuild

diff --git a/media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch b/media-sound/snd/files/snd-17.4-undefined-oss_sample_types.patch
new file mode 100644 (file)
index 0000000..6199a7b
--- /dev/null
@@ -0,0 +1,21 @@
+Always compile the `oss_sample_types` function
+Bug: https://bugs.gentoo.org/show_bug.cgi?id=621758
+
+--- a/audio.c
++++ b/audio.c
+@@ -743,7 +743,6 @@
+ }
+ 
+ 
+-#if (!HAVE_ALSA)
+ static int oss_sample_types(int ur_dev, mus_sample_t *val)
+ {
+   int fd, samp_types = 0, sys, ind;
+@@ -774,7 +773,6 @@
+   val[0] = (mus_sample_t)(ind - 1);
+   return(MUS_NO_ERROR);
+ }
+-#endif
+ 
+ 
+ 
index 3a2a2027b8f40b4fac382d4642b9be81292f06fb..5b746a352c8a099e46cb8ad39360686fd42a299b 100644 (file)
@@ -44,7 +44,8 @@ REQUIRED_USE="
        ?? ( ruby s7 )"
 
 PATCHES=(
-       "${FILESDIR}/${PN}-17.4-portaudio.patch"
+       "${FILESDIR}"/${PN}-17.4-portaudio.patch
+       "${FILESDIR}"/${PN}-17.4-undefined-oss_sample_types.patch
 )
 
 pkg_setup() {