Skip to contentSkip to conversation

etherboot: use gzip -n

PATCH In review Bernhard M. Wiedemann 3 participants 3 messages Jun 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 etherboot: use gzip -n

to not include current timestamp in results
to allow for reproducible builds.

See https://reproducible-builds.org/ for why this matters

---
 tools/firmware/etherboot/Makefile | 2 +-
 tools/firmware/etherboot/README   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/firmware/etherboot/Makefile +1 -1
index 459a1e22e6..7cc5517f10 100644
@@ -31,7 +31,7 @@ $T:
 	if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \
 		$(GIT) clone $(IPXE_GIT_URL) $D.git; \
 		(cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
-		$(IPXE_GIT_TAG) | gzip >../_$T); \
+		$(IPXE_GIT_TAG) | gzip -n >../_$T); \
 		rm -rf $D.git; \
 	fi
 	mv _$T $T
tools/firmware/etherboot/README +1 -1
index c1c713c76b..5e3c1daf58 100644
@@ -15,7 +15,7 @@ as on 25th September 2008):
 
  git clone git://git.etherboot.org/scm/gpxe.git
  cd gpxe
- git archive --format=tar --prefix=gpxe/ c24bc349ead939d90b5784dbff3cd9fdb9d83ba8 | gzip >../gpxe-git-snapshot.tar.gz
+ git archive --format=tar --prefix=gpxe/ c24bc349ead939d90b5784dbff3cd9fdb9d83ba8 | gzip -n >../gpxe-git-snapshot.tar.gz
 
 ----------------------------------------
 
Signature · 7 lines
2.12.3


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#2 lore raw
In reply to Bernhard M. Wiedemann

Bernhard M. Wiedemann writes ("[PATCH] etherboot: use gzip -n"):

Quoted 2 lines

to not include current timestamp in results
to allow for reproducible builds.

Quoted 1 line

See https://reproducible-builds.org/ for why this matters

We're sold on this BTW, but our build system largely predates the recognition that this is important. Patches like yours are very welcome.

Regards,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel