From 570f6d025ef4dfb30287162afe82f9bc38b65f62 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Fri, 23 Sep 2016 10:59:03 +0200 Subject: [PATCH] xye: fix gcc6 build --- srcpkgs/xye/patches/fix-gcc6-narrowing.patch | 11 +++++++++++ srcpkgs/xye/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xye/patches/fix-gcc6-narrowing.patch diff --git a/srcpkgs/xye/patches/fix-gcc6-narrowing.patch b/srcpkgs/xye/patches/fix-gcc6-narrowing.patch new file mode 100644 index 00000000000..fd4e1f6c26a --- /dev/null +++ b/srcpkgs/xye/patches/fix-gcc6-narrowing.patch @@ -0,0 +1,11 @@ +--- src/xsb_level.cpp 2012-09-15 22:21:06.000000000 +0200 ++++ src/xsb_level.cpp 2016-09-23 10:56:51.900831887 +0200 +@@ -784,7 +784,7 @@ + + bool FromXyeDFS(int* mem, unsigned char x, unsigned char y) + { +- static const unsigned char dx[4] = {0,0,-1,1}, dy[4] = {-1,1,0,0}; ++ static const unsigned char dx[4] = {0x00,0x00,0xff,0x01}, dy[4] = {0xff,0x01,0x00,0x00}; + int &res = mem[y*XYE_HORZ+x]; + if( res==0) + { diff --git a/srcpkgs/xye/template b/srcpkgs/xye/template index 96ff65a7500..9e0e789214b 100644 --- a/srcpkgs/xye/template +++ b/srcpkgs/xye/template @@ -1,7 +1,7 @@ # Template file for 'xye' pkgname=xye version=0.12.2 -revision=1 +revision=2 build_style=gnu-configure makedepends="SDL_image-devel SDL_ttf-devel" short_desc="Puzzle game inspired by Kye"