diff options
author | Jérémy Bobbio <lunar@debian.org> | 2014-12-28 11:52:01 (GMT) |
---|---|---|
committer | Cyril Brulebois <kibi@debian.org> | 2014-12-29 14:17:37 (GMT) |
commit | 99f4a6062255b3622afc810fd6d69a51bfe2eda1 (patch) | |
tree | 2a6e499b0f096e6946b1106766d169d29c46116e /Makefile | |
parent | 66c759fdb16f09a5da52b074e1980e623ce05ec1 (diff) | |
download | debootstrap-99f4a6062255b3622afc810fd6d69a51bfe2eda1.zip debootstrap-99f4a6062255b3622afc810fd6d69a51bfe2eda1.tar.gz debootstrap-99f4a6062255b3622afc810fd6d69a51bfe2eda1.tar.bz2 |
Use debian/changelog timestamp as mtime for devices.tar members (Closes: #774069)
We also remove the timestamp in gzip header. This enables debootstap to be
built reproducibly.
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ # avoid dpkg-dev dependency; fish out the version with sed VERSION := $(shell sed 's/.*(\(.*\)).*/\1/; q' debian/changelog) +DATE := $(shell sed -n '/^ -- /{s/.*> \(.*\)/\1/p;q}' debian/changelog) MAKEDEV := /sbin/MAKEDEV @@ -35,7 +36,7 @@ devices.tar.gz: chown 0:0 dev chmod 755 dev (cd dev && $(MAKEDEV) std ptmx fd consoleonly) - tar cf - dev | gzip -9 >devices.tar.gz + tar --mtime="$(DATE)" -cf - dev | gzip -9n >devices.tar.gz @if [ "$$(tar tvf devices.tar.gz | wc -l)" -lt 2 ]; then \ echo " ** devices.tar.gz is empty!" >&2; \ exit 1; \ |