From a5c7d868b95a310a3ce6ccce1f2f6d19562a3f9f Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 27 Sep 2016 14:00:12 +0200 Subject: [PATCH] audiofile: fix gcc6 build --- srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch | 11 +++++++++++ srcpkgs/audiofile/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch diff --git a/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch new file mode 100644 index 00000000000..77ec7675cdb --- /dev/null +++ b/srcpkgs/audiofile/patches/fix-gcc6-shift_left.patch @@ -0,0 +1,11 @@ +--- libaudiofile/modules/SimpleModule.h 2013-03-07 08:14:57.000000000 +0100 ++++ libaudiofile/modules/SimpleModule.h 2016-09-27 13:49:59.329194632 +0200 +@@ -123,7 +123,7 @@ + typedef typename IntTypes::UnsignedType UnsignedType; + + static const int kScaleBits = (Format + 1) * CHAR_BIT - 1; +- static const int kMinSignedValue = -1 << kScaleBits; ++ static const int kMinSignedValue = static_cast(~0u << kScaleBits); + + struct signedToUnsigned : public std::unary_function + { diff --git a/srcpkgs/audiofile/template b/srcpkgs/audiofile/template index 20d1e158a83..ff49ba9aa15 100644 --- a/srcpkgs/audiofile/template +++ b/srcpkgs/audiofile/template @@ -1,7 +1,7 @@ # Template file for 'audiofile' pkgname=audiofile version=0.3.6 -revision=1 +revision=2 wrksrc=$pkgname-$pkgname-$version build_style=gnu-configure hostmakedepends="automake libtool asciidoc pkg-config"