--- a/components/pigz/patches/300_system-test.patch Thu Oct 06 01:32:44 2016 -0700
+++ b/components/pigz/patches/300_system-test.patch Thu Oct 06 13:05:51 2016 -0700
@@ -1,17 +1,17 @@
Developed internally, for system-test; not suitable for upstream.
---- pigz-2.2.5/Makefile.~4~ 2015-06-01 08:32:01.403004646 -0700
-+++ pigz-2.2.5/Makefile 2015-06-01 08:34:05.581419748 -0700
+--- pigz-2.3.3/Makefile.orig 2016-09-26 13:21:02.245052682 +0000
++++ pigz-2.3.3/Makefile 2016-09-26 13:16:33.808207549 +0000
@@ -1,5 +1,6 @@
CC=cc
CFLAGS=-O3 -Wall -Wextra
+TARGETDIR ?= $(shell pwd)
-
- pigz: pigz.o yarn.o
- $(CC) -o pigz pigz.o yarn.o -lz
-@@ -26,36 +27,36 @@
- pigzn.o: pigz.c
- $(CC) -Wall -O3 -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c
+ LDFLAGS=-lz
+ ZOPFLI=zopfli/src/zopfli/
+ # use gcc and gmake on Solaris
+@@ -52,36 +53,36 @@
+ tryn.o: try.c try.h
+ $(CC) $(CFLAGS) -DDEBUG -DNOTHREAD -g -c -o tryn.o try.c
-test: pigz
- ./pigz -kf pigz.c ; ./pigz -t pigz.c.gz
@@ -26,6 +26,9 @@
- (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 "`which compress | grep /`" != ""; then \
+- echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\
+- compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\
+test: $(TARGETDIR)/pigz
+ $(TARGETDIR)/pigz -kf pigz.c ; $(TARGETDIR)/pigz -t pigz.c.gz
+ $(TARGETDIR)/pigz -kfb 32 pigz.c ; $(TARGETDIR)/pigz -t pigz.c.gz
@@ -39,21 +42,19 @@
+ (printf "w" | gzip ; printf "x") | $(TARGETDIR)/pigz -cdf | wc -c | test `cat` -eq 2
+ (printf "w" | gzip ; printf "xy") | $(TARGETDIR)/pigz -cdf | wc -c | test `cat` -eq 3
+ (printf "w" | gzip ; printf "xyz") | $(TARGETDIR)/pigz -cdf | wc -c | test `cat` -eq 4
- -@if test "`type -f compress | grep /`" != ""; then \
-- echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\
-- compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\
++ -@if test "`type -f compress | grep /`" != ""; then \
+ echo 'compress -f < pigz.c | $(TARGETDIR)/unpigz | cmp - pigz.c' ;\
+ compress -f < pigz.c | $(TARGETDIR)/unpigz | cmp - pigz.c ;\
fi
@rm -f pigz.c.gz pigz.c.zz pigz.c.zip
@rm -rf d/1 d/2
- (mkdir -p d/1; cd d/1; tar xzf ../../../../pigz-2.2.5.tar.gz; \
+ (mkdir -p d/1; cd d/1; tar xzf ../../../../pigz-2.3.3.tar.gz; \
- cd ..; cp -pr 1 2; ../pigz -rp 4 --index %z 1; \
- ../pigz -drp 4 --index %z 1; diff -r 1 2)
+ cd ..; cp -pr 1 2; $(TARGETDIR)/pigz -rp 4 --index %z 1; \
+ $(TARGETDIR)/pigz -drp 4 --index %z 1; diff -r 1 2)
@rm -rf d/1 d/2
- (mkdir -p d/1; cd d/1; tar xzf ../../../../pigz-2.2.5.tar.gz; \
+ (mkdir -p d/1; cd d/1; tar xzf ../../../../pigz-2.3.3.tar.gz; \
- cd ..; cp -pr 1 2; ../pigz -zrp 4 -X %f.idx 1; \
- ../pigz -dzrp 4 -X %f.idx 1; diff -r 1 2)
+ cd ..; cp -pr 1 2; $(TARGETDIR)/pigz -zrp 4 -X %f.idx 1; \