summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-02 13:43:17 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-02 13:43:17 +0000
commitca326994663bdc3263bf67b7ec9465ab30bb03ba (patch)
tree4268583b7003a2ab42ad3a8c91b949635c134a78 /app-arch/gzip
parentAdd need-kde call to be sure that $KDEDIR is set. Removed dependency over kde... (diff)
downloadgentoo-2-ca326994663bdc3263bf67b7ec9465ab30bb03ba.tar.gz
gentoo-2-ca326994663bdc3263bf67b7ec9465ab30bb03ba.tar.bz2
gentoo-2-ca326994663bdc3263bf67b7ec9465ab30bb03ba.zip
grab patch from fedora
Diffstat (limited to 'app-arch/gzip')
-rw-r--r--app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch b/app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch
new file mode 100644
index 000000000000..c20403983ba9
--- /dev/null
+++ b/app-arch/gzip/files/gzip-1.3.5-zgreppipe.patch
@@ -0,0 +1,21 @@
+Ripped from Fedora
+
+--- gzip-1.3.1/zgrep.in
++++ gzip-1.3.1/zgrep.in
+@@ -92,6 +92,7 @@
+ fi
+
+ res=0
++trap break SIGPIPE
+ for i do
+ gzip -cdfq "$i" |
+ if test $files_with_matches -eq 1; then
+@@ -110,5 +111,8 @@
+ fi
+ r=$?
+ test $res -lt $r && res=$r
++ # SIGPIPE + 128
++ test "$r" -eq 141 && exit $res
+ done
++trap - SIGPIPE
+ exit $res