[Patch] xine-lib: fix alsa-lib headers path

Xavier Bachelot <[email protected]> Thu, 16 May 2019 12:26:11 +0200
Newsgroups gmane.comp.video.xine.devel
Message-ID <[email protected]>
Hi,

I stomped on this while building latest xine-lib against alsa-lib 1.1.9 
has found in Fedora.

Regards,
Xavier

_______________________________________________
xine-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-devel
xine-lib-1.2.9-fix_alsa_headers_path.patch (text/x-patch, 916 B)
# HG changeset patch
# User Xavier Bachelot <[email protected]>
# Date 1557995649 -7200
#      Thu May 16 10:34:09 2019 +0200
# Node ID 673f6f42def382d02c6b75cfbce030f52e1bdaae
# Parent  a7e3e6825a9669e277965c1e6ab479cbfda04b0b
Fix alsa headers include path

alsa-lib 1.1.9 has changed the include paths in its pkgconfig to disallow the
use of straight asoundlib.h in favor of the canonical alsa/asounlib.h.
See for details:
https://www.alsa-project.org/wiki/Detailed_changes_v1.1.8_v1.1.9#.2Finclude.2FMakefile.am

diff -r a7e3e6825a96 -r 673f6f42def3 src/audio_out/audio_alsa_out.c
--- a/src/audio_out/audio_alsa_out.c	Wed May 15 17:34:15 2019 +0200
+++ b/src/audio_out/audio_alsa_out.c	Thu May 16 10:34:09 2019 +0200
@@ -44,7 +44,7 @@
 
 #define ALSA_PCM_NEW_HW_PARAMS_API
 #define ALSA_PCM_NEW_SW_PARAMS_API
-#include <asoundlib.h>
+#include <alsa/asoundlib.h>
 
 #include <sys/ioctl.h>
 #include <inttypes.h>