$OpenBSD: patch-packages_zlib_Makefile_in,v 1.1 2012/10/01 21:16:00 edd Exp $
--- packages/zlib/Makefile.in.orig	Thu Jul 26 17:15:46 2012
+++ packages/zlib/Makefile.in	Sat Sep 29 14:09:31 2012
@@ -62,9 +62,11 @@ uninstall::
 check:		test_multipart.gz
 		$(PL) -q -f test_zlib.pl -g test_zlib,halt -t 'halt(1)'
 
+# We have to force compression for gzip to return success.
+# There is a bug in gzip which means it will die silently without.
 test_multipart.gz:
-		echo "Part1" | gzip > $@
-		echo "Part2" | gzip >> $@
+		echo "Part1" | gzip -f > $@
+		echo "Part2" | gzip -f >> $@
 
 
 ################################################################
