components/pigz/patches/Makefile.patch
author Danek Duvall <danek.duvall@oracle.com>
Tue, 22 Apr 2014 11:33:57 -0700
changeset 1845 caa6e0a2a2e4
parent 1226 5e2a9b83712f
permissions -rw-r--r--
PSARC/2014/108 pycparser: complete C99 parser in pure Python 18468557 integrate pycparser

# Solaris used to have whereis but it was removed early in S12.  Use type
# instead.  Because most Linux distros have whereis, this patch is deemed
# Solaris-centric and thus not worthy of being submitted upstream.
#
--- pigz-2.2.5/Makefile.orig	2012-02-11 21:18:18.000000000 -0800
+++ pigz-2.2.5/Makefile	2013-03-15 06:01:46.213801609 -0700
@@ -39,7 +39,7 @@
 	(printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c | test `cat` -eq 2
 	(printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c | test `cat` -eq 3
 	(printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c | test `cat` -eq 4
-	-@if test "`whereis compress | grep /`" != ""; then \
+	-@if test "`type -f compress | grep /`" != ""; then \
 	  echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\
 	  compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\
 	fi