diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-08-03 22:11:30 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 108ab9edf161b739bb2aebba9196d0ed7f690575 (patch) | |
tree | dd7e53dee30d08406c9ce55f2dd8d473beec38a9 /graphics | |
parent | cc1707cc681c034751cb8089a5aa30af21462b7f (diff) |
graphics/zgv: Patched SlackBuild.
Fixes build failure with libpng16 (-current).
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/zgv/zgv.SlackBuild | 3 | ||||
-rw-r--r-- | graphics/zgv/zgv_5.9-2.patch | 28 |
2 files changed, 31 insertions, 0 deletions
diff --git a/graphics/zgv/zgv.SlackBuild b/graphics/zgv/zgv.SlackBuild index 9768f3b701869..95007b5876a89 100644 --- a/graphics/zgv/zgv.SlackBuild +++ b/graphics/zgv/zgv.SlackBuild @@ -77,6 +77,9 @@ for i in $CWD/patches/*; do patch -p0 < $i done +# Patch for libpng16 (-current) thanks to Debian +patch -p1 < $CWD/zgv_5.9-2.patch + make SLKCFLAGS="$SLKCFLAGS" make install DESTDIR=$PKG diff --git a/graphics/zgv/zgv_5.9-2.patch b/graphics/zgv/zgv_5.9-2.patch new file mode 100644 index 0000000000000..90a3f840f13b7 --- /dev/null +++ b/graphics/zgv/zgv_5.9-2.patch @@ -0,0 +1,28 @@ +--- zgv-5.9.orig/src/readpng.c ++++ zgv-5.9/src/readpng.c +@@ -55,7 +55,6 @@ + fclose(global_png_infile); + } + +- + void my_png_error(png_structp png_ptr,const char *message) + { + strncpy(jpeg_png_errmsg,message,JPEG_PNG_ERRMSG_SIZE-1); +@@ -63,7 +62,7 @@ + use_errmsg=1; + + /* cleanup is done after jump back, so just do that now... */ +-longjmp(png_ptr->jmpbuf,1); ++longjmp(png_jmpbuf((png_ptr)),1); + } + + +@@ -132,7 +131,7 @@ + return(_PICERR_NOMEM); + } + +-if(setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf((png_ptr)))) + { + /* if we get here, there was an error. */ + /* don't use local variables here, they may have been blasted */ |