components/pigz/patches/Makefile.patch
author pkidd <patrick.kidd@oracle.com>
Wed, 26 Apr 2017 08:46:08 -0700
branchs11u3-sru
changeset 7947 3fa78a5a2366
parent 3420 8e187df4069d
permissions -rw-r--r--
build metadata for S11.3SRU20.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3420
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     1
# Solaris used to have whereis but it was removed early in S12.  Use type
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     2
# instead.  Because most Linux distros have whereis, this patch is deemed
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     3
# Solaris-centric and thus not worthy of being submitted upstream.
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     4
#
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     5
--- pigz-2.2.5/Makefile.orig	2012-02-11 21:18:18.000000000 -0800
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     6
+++ pigz-2.2.5/Makefile	2013-03-15 06:01:46.213801609 -0700
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     7
@@ -39,7 +39,7 @@
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     8
 	(printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c | test `cat` -eq 2
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
     9
 	(printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c | test `cat` -eq 3
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
    10
 	(printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c | test `cat` -eq 4
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
    11
-	-@if test "`whereis compress | grep /`" != ""; then \
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
    12
+	-@if test "`type -f compress | grep /`" != ""; then \
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
    13
 	  echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
    14
 	  compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\
8e187df4069d PSARC 2012/357 pigz
Michael Gerdts <mike.gerdts@oracle.com>
parents:
diff changeset
    15
 	fi