[Pkg-libvirt-commits] [libguestfs] 310/384: Added patch to build appliance tarballs using reproducible timestamp

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:58:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 520500d6f2d15bf87f9932257666dbb061b5db5f
Author: Hilko Bengen <bengen at debian.org>
Date:   Sat Feb 28 10:46:35 2015 +0100

    Added patch to build appliance tarballs using reproducible timestamp
---
 ...rballs-for-supermin-appliance-using-repro.patch | 39 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 40 insertions(+)

diff --git a/debian/patches/0004-Generate-tarballs-for-supermin-appliance-using-repro.patch b/debian/patches/0004-Generate-tarballs-for-supermin-appliance-using-repro.patch
new file mode 100644
index 0000000..2c54be0
--- /dev/null
+++ b/debian/patches/0004-Generate-tarballs-for-supermin-appliance-using-repro.patch
@@ -0,0 +1,39 @@
+From: Hilko Bengen <bengen at debian.org>
+Date: Sat, 14 Feb 2015 14:17:09 +0100
+Subject: Generate tarballs for supermin appliance using reproducible timestamp
+
+---
+ appliance/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/appliance/Makefile.am b/appliance/Makefile.am
+index 3135219..95450ad 100644
+--- a/appliance/Makefile.am
++++ b/appliance/Makefile.am
+@@ -84,7 +84,7 @@ supermin.d/daemon.tar.gz: ../daemon/guestfsd guestfsd.suppressions guestfs_lvm_c
+ 	ln $(srcdir)/guestfsd.suppressions tmp-d/etc/guestfsd.suppressions
+ 	ln $(srcdir)/guestfs_lvm_conf.aug tmp-d/usr/share/guestfs/guestfs_lvm_conf.aug
+ 	ln $(srcdir)/guestfs_shadow.aug tmp-d/usr/share/guestfs/guestfs_shadow.aug
+-	( cd tmp-d && tar zcf - * ) > $@-t
++	( cd tmp-d && tar --mtime=$(abs_top_srcdir)/ChangeLog -zcf - * ) > $@-t
+ 	rm -r tmp-d
+ 	mv $@-t $@
+ 
+@@ -105,7 +105,7 @@ supermin.d/hostfiles: hostfiles.in Makefile
+ 
+ supermin.d/init.tar.gz: init
+ 	rm -f $@ $@-t
+-	( cd $(srcdir) && tar zcf - init ) > $@-t
++	( cd $(srcdir) && tar --mtime=$(abs_top_srcdir)/ChangeLog -zcf - init ) > $@-t
+ 	mv $@-t $@
+ 
+ # We should put this file in /lib/udev/rules.d, but put it in /etc so
+@@ -115,7 +115,7 @@ supermin.d/udev-rules.tar.gz: 99-guestfs-serial.rules
+ 	rm -rf tmp-u
+ 	mkdir -p tmp-u/etc/udev/rules.d
+ 	for f in $^; do ln $$f tmp-u/etc/udev/rules.d/$$(basename $$f); done
+-	( cd tmp-u && tar zcf - etc ) > $@-t
++	( cd tmp-u && tar --mtime=$(abs_top_srcdir)/ChangeLog -zcf - etc ) > $@-t
+ 	rm -r tmp-u
+ 	mv $@-t $@
+ 
diff --git a/debian/patches/series b/debian/patches/series
index cf66984..d4bb3ae 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-perl-revert-failed-attempt-at-building-out-of-tree-s.patch
 0002-golang-Fix-for-out-of-tree-builds.patch
 0003-Do-not-use-DTB-for-armel.patch
+0004-Generate-tarballs-for-supermin-appliance-using-repro.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list