diff options
Diffstat (limited to 'graphics/xcftools/files')
-rw-r--r-- | graphics/xcftools/files/patch-src_io-unix.c | 11 | ||||
-rw-r--r-- | graphics/xcftools/files/patch-src_xcf2png.c | 16 | ||||
-rw-r--r-- | graphics/xcftools/files/patch-test_dottest | 53 |
3 files changed, 80 insertions, 0 deletions
diff --git a/graphics/xcftools/files/patch-src_io-unix.c b/graphics/xcftools/files/patch-src_io-unix.c new file mode 100644 index 000000000000..21b8159d9ebf --- /dev/null +++ b/graphics/xcftools/files/patch-src_io-unix.c @@ -0,0 +1,11 @@ +--- src/io-unix.c.orig 2013-02-12 19:30:10.000000000 +0100 ++++ src/io-unix.c 2014-09-11 01:34:41.000000000 +0200 +@@ -96,7 +96,7 @@ + if( status > 0 ) { + fclose(xcfstream) ; + xcfstream = 0 ; +- FatalGeneric(status,NULL); ++ FatalGeneric(status,"status=%d",status); + } + } else { + fclose(xcfstream) ; diff --git a/graphics/xcftools/files/patch-src_xcf2png.c b/graphics/xcftools/files/patch-src_xcf2png.c new file mode 100644 index 000000000000..c9426bb76080 --- /dev/null +++ b/graphics/xcftools/files/patch-src_xcf2png.c @@ -0,0 +1,16 @@ +--- src/xcf2png.c.orig 2013-02-12 19:30:10.000000000 +0100 ++++ src/xcf2png.c 2014-09-11 01:38:20.000000000 +0200 +@@ -23,6 +23,13 @@ + #include "palette.h" + + #include <png.h> ++#ifndef png_voidp_NULL ++#define png_voidp_NULL (png_voidp)NULL ++#endif ++#ifndef png_error_ptr_NULL ++#define png_error_ptr_NULL (png_error_ptr)NULL ++#endif ++ + #include <stdlib.h> + #include <string.h> + #include <locale.h> diff --git a/graphics/xcftools/files/patch-test_dottest b/graphics/xcftools/files/patch-test_dottest new file mode 100644 index 000000000000..525a1649a6da --- /dev/null +++ b/graphics/xcftools/files/patch-test_dottest @@ -0,0 +1,53 @@ +--- test/dotest.orig 2013-02-12 19:30:10.000000000 +0100 ++++ test/dotest 2014-09-11 05:58:19.000000000 +0200 +@@ -31,6 +31,17 @@ + keepgoing=1 + fi + ++ ++compare() { ++ answer=`pamarith -compare "$1" "$2" 2>&1` ++ result=$? ++ if [ ! $result -eq 0 ]; then ++ echo "$answer" ++ fi ++ return $result ++} ++ ++ + failed() { + if (( lastfailed != totaltests )) + then +@@ -126,9 +137,9 @@ + source="$1" + shift + testrun ${XCFTOOLS_PREFIX}xcf2pnm \ +- -@ -oo.$oext $aopt source/$source.xcf.gz "$@" +- [ -z "$oanswer" ] || cmp o.want o.$oext || failed +- [ -z "$aanswer" ] || cmp a.want a.pnm || failed ++ -oo.$oext $aopt source/$source.xcf.gz "$@" ++ [ -z "$oanswer" ] || compare o.want o.$oext || failed ++ [ -z "$aanswer" ] || compare a.want a.pnm || failed + } + + testpng() { +@@ -162,10 +173,10 @@ + perl pngtype.pl < o.png > pngtype + diff -u pngtype.want pngtype || failed + pngtopnm $oargs o.png > o.pnm +- cmp o.want o.pnm || failed ++ compare o.want o.pnm || failed + if [ "$afilter" != : ] ; then + pngtopnm -alpha o.png > a.pnm +- cmp a.want a.pnm || failed ++ compare a.want a.pnm || failed + fi + rm pngtype.want + } +@@ -732,4 +743,4 @@ + exit 0 + fi + +-# End +\ No newline at end of file ++# End |