summaryrefslogtreecommitdiff
path: root/libre/hplip/reproducible-gzip.patch
blob: 7eeb9941baeb4c51ed641a27addaff88d84e3eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- hplip-3.20.5/createPPD.sh	2020-05-11 15:34:06.000000000 +0200
+++ hplip-3.20.5.old/createPPD.sh	2020-05-27 12:02:44.089477299 +0200
@@ -54,15 +54,15 @@
 	else
 		cp prnt/ps/hp-postscript*.ppd ppd/classppd/ps
 		for i in ppd/classppd/ps/*.ppd; do
-			gzip -c "$i" > "$i.gz"
+			gzip -nc "$i" > "$i.gz"
 		done
 	fi
         #cp prnt/ps/hp-postscript*.ppd.gz ppd/classppd/ps
 	for i in ppd/classppd/hpcups/*.ppd; do
-		gzip -c "$i" > "$i.gz"
+		gzip -nc "$i" > "$i.gz"
 	done
 	#for i in ppd/classppd/ps/*.ppd; do
-	#	gzip -c "$i" > "$i.gz"
+	#	gzip -nc "$i" > "$i.gz"
 	#done
 
 	cat > class_cups_drv.inc <<EOF
@@ -81,14 +81,14 @@
 install -d ppd/hpcups
 ppdc -d ppd/hpcups prnt/drv/hpcups.drv
 for i in ppd/hpcups/*.ppd; do
-      gzip -c "$i" > "$i.gz"
+      gzip -nc "$i" > "$i.gz"
 done
 
 install -d ppd/hpijs
 ppdc -d ppd/hpijs prnt/drv/hpijs.drv
 echo "gzip ppd files..."
 for i in ppd/hpijs/*.ppd; do
-      gzip -c "$i" > "$i.gz"
+      gzip -nc "$i" > "$i.gz"
 done
 echo "building foomatic_drv.inc..."
 ./hpijs-drv > foomatic_drv.inc $shadow