void-packages/srcpkgs/qt/patches/fix-alsatest.patch
Juergen Buchmueller 5704e3c0c5 qt: fix gcc6 build
+ Fix alsa-lib detection which was broken since 1.1.x
+ Various patches to fix errors when trying to build webkit with gcc6
+ Disable webkit for gcc6 because it currently won't compile
2016-09-13 05:56:23 +02:00

13 lines
598 B
Diff

Currently alsa-lib is at 1.1.2, thus accept SND_LIB_MINOR > 0 anyway.
--- a/config.tests/unix/alsa/alsatest.cpp 2015-05-07 16:14:42.000000000 +0200
+++ b/config.tests/unix/alsa/alsatest.cpp 2016-09-11 22:51:18.647973737 +0200
@@ -40,7 +40,7 @@
****************************************************************************/
#include <alsa/asoundlib.h>
-#if(!(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 10))
+#if(!(SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || (SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 10))))
#error "Alsa version found too old, require >= 1.0.10"
#endif