summaryrefslogtreecommitdiff
path: root/audio/milkytracker
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2012-09-09 21:23:11 -0500
committerErik Hanson <erik@slackbuilds.org>2012-09-09 22:02:46 -0500
commit70c976a7c46321b4703f10d567fab65b39960191 (patch)
tree34bd6fdbbdd7eaf31e8863ca326c5d64dc3f7bc3 /audio/milkytracker
parent640a503a0d0f1cf7e8fde33bbfe35c33253ad4bb (diff)
downloadslackbuilds-70c976a7c46321b4703f10d567fab65b39960191.tar.gz
audio/milkytracker: Fixed with a patch.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'audio/milkytracker')
-rw-r--r--audio/milkytracker/fix-FBTS-with-new-zlib.patch29
-rw-r--r--audio/milkytracker/milkytracker.SlackBuild3
2 files changed, 32 insertions, 0 deletions
diff --git a/audio/milkytracker/fix-FBTS-with-new-zlib.patch b/audio/milkytracker/fix-FBTS-with-new-zlib.patch
new file mode 100644
index 0000000000..deb3e93576
--- /dev/null
+++ b/audio/milkytracker/fix-FBTS-with-new-zlib.patch
@@ -0,0 +1,29 @@
+--- milkytracker-0.90.85/src/compression/DecompressorGZIP.cpp 2009-04-17 22:34:16.000000000 +0200
++++ milkytracker-trunk/src/compression/DecompressorGZIP.cpp 2012-02-20 20:24:49.161937553 +0100
+@@ -61,7 +61,7 @@
+ int len = 0;
+ pp_uint8 *buf;
+
+- if ((gz_input_file = (void **)gzopen (fileName.getStrBuffer(), "r")) == NULL)
++ if ((gz_input_file = (gzFile*)gzopen (fileName.getStrBuffer(), "r")) == NULL)
+ return false;
+
+ if ((buf = new pp_uint8[0x10000]) == NULL)
+@@ -71,7 +71,7 @@
+
+ while (true)
+ {
+- len = gzread (gz_input_file, buf, 0x10000);
++ len = gzread (*gz_input_file, buf, 0x10000);
+
+ if (len < 0)
+ {
+@@ -84,7 +84,7 @@
+ fOut.write(buf, 1, len);
+ }
+
+- if (gzclose (gz_input_file) != Z_OK)
++ if (gzclose (*gz_input_file) != Z_OK)
+ {
+ delete[] buf;
+ return false;
diff --git a/audio/milkytracker/milkytracker.SlackBuild b/audio/milkytracker/milkytracker.SlackBuild
index 6313c91c4e..0a0b8d73cf 100644
--- a/audio/milkytracker/milkytracker.SlackBuild
+++ b/audio/milkytracker/milkytracker.SlackBuild
@@ -73,6 +73,9 @@ find . \
# Apply 64bit_freebsd_fix.patch from homepage. (Closes: #626627)
patch -p1 < $CWD/64bit_freebsd_fix.patch
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661906
+patch -p1 < $CWD/fix-FBTS-with-new-zlib.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \