media-libs/libsoundio: fix build failure in 1.1.0
authorDiogo Pereira <sir.suriv@gmail.com>
Tue, 2 Aug 2016 02:43:08 +0000 (03:43 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 7 Aug 2016 08:47:42 +0000 (10:47 +0200)
Fix a build error when no backends are enabled.

Gentoo-Bug: 589704
Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Closes: https://github.com/gentoo/gentoo/pull/1994

Signed-off-by: David Seifert <soap@gentoo.org>
media-libs/libsoundio/files/libsoundio-1.1.0_missing_include.patch [new file with mode: 0644]
media-libs/libsoundio/libsoundio-1.1.0.ebuild

diff --git a/media-libs/libsoundio/files/libsoundio-1.1.0_missing_include.patch b/media-libs/libsoundio/files/libsoundio-1.1.0_missing_include.patch
new file mode 100644 (file)
index 0000000..4a09895
--- /dev/null
@@ -0,0 +1,22 @@
+From e8b908243d58760d7815525d18bddd64ec97a5d2 Mon Sep 17 00:00:00 2001
+From: Andrew Kelley <superjoe30@gmail.com>
+Date: Fri, 22 Apr 2016 10:24:32 -0700
+Subject: [PATCH] add missing include directive
+
+fixes compilation when no backends are available. closes #67
+---
+ src/soundio_private.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/soundio_private.h b/src/soundio_private.h
+index 13d1d7a..213b36f 100644
+--- a/src/soundio_private.h
++++ b/src/soundio_private.h
+@@ -10,6 +10,7 @@
+ 
+ #include "soundio_internal.h"
+ #include "config.h"
++#include "list.h"
+ 
+ #ifdef SOUNDIO_HAVE_JACK
+ #include "jack.h"
index ed32c520f0084b0dbafdbc7b8abca5128157921b..0cde6b72e9fb71f78488587a9f6f09dc56c05e79 100644 (file)
@@ -19,6 +19,8 @@ DEPEND="alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
        pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )"
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}_missing_include.patch" )
+
 # ENABLE_JACK does not support the current version of jack1
 # See https://github.com/andrewrk/libsoundio/issues/11
 multilib_src_configure() {