diff --git a/srcpkgs/libdvbpsi/patches/fix-test_dr_boolean.patch b/srcpkgs/libdvbpsi/patches/fix-test_dr_boolean.patch new file mode 100644 index 00000000000..2d757115bdf --- /dev/null +++ b/srcpkgs/libdvbpsi/patches/fix-test_dr_boolean.patch @@ -0,0 +1,23 @@ +This uncommon way to use a boolean is not supported by gcc6. +Instead of incrementing by 12 (huh?) just toggle between +false and true. + +--- misc/test_dr.h 2013-11-10 13:13:35.000000000 +0100 ++++ misc/test_dr.h 2016-09-12 04:52:08.334029901 +0200 +@@ -93,13 +93,13 @@ + { \ + fprintf(stdout, " \"%s\" boolean check\n", #name); \ + i_loop_count = 0; \ +- s_decoded.name = 0; \ ++ s_decoded.name = false; \ + do \ + { + + #define BOZO_end_boolean(name) \ +- s_decoded.name += 12; \ +- } while(!i_err && (s_decoded.name <= 12)); \ ++ s_decoded.name = !s_decoded.name; \ ++ } while(!i_err && s_decoded.name); \ + fprintf(stdout, "\r iteration count: %22llu", i_loop_count); \ + if(i_err) \ + fprintf(stdout, " FAILED !!!\n"); \ diff --git a/srcpkgs/libdvbpsi/template b/srcpkgs/libdvbpsi/template index 3a3f85776ac..44a0020b13f 100644 --- a/srcpkgs/libdvbpsi/template +++ b/srcpkgs/libdvbpsi/template @@ -1,7 +1,7 @@ # Template file for 'libdvbpsi' pkgname=libdvbpsi version=1.1.2 -revision=3 +revision=4 build_style=gnu-configure short_desc="PSI decoder and generator library for MPEG2 and DVB streams" homepage="http://www.videolan.org/developers/libdvbpsi.html" @@ -10,7 +10,7 @@ maintainer="Juan RP " distfiles="http://download.videolan.org/pub/libdvbpsi/${version}/${pkgname}-${version}.tar.bz2" checksum=22436366beaa1bff27b3f6d80e43de1012b16d3b63b1e22d37d4a6fcb5db8933 -CFLAGS="-Wno-error=cast-qual" +CFLAGS="-Wno-error=cast-qual -Wno-error=misleading-indentation" libdvbpsi-devel_package() { depends="libdvbpsi>=${version}_${revision}"