[PKG-Openstack-devel] Bug#835051: sheepdog: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Aug 21 17:20:22 UTC 2016


Source: sheepdog
Version: 0.8.3-4.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that sheepdog could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible-build.diff	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.diff	2016-08-21 18:17:02.874561258 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-21
+
+--- sheepdog-0.8.3.orig/man/Makefile.am
++++ sheepdog-0.8.3/man/Makefile.am
+@@ -11,7 +11,7 @@ EXTRA_DIST		= sheep.8.in dog.8.in sheepf
+ %.8: %.8.in Makefile $(top_srcdir)/script/gen_man.pl $(top_builddir)/%/$*
+ 	rm -f $@-t $@
+ 	@sed \
+-		-e "s#@DATE@#`date '+%Y-%m-%d'`#g" \
++		-e "s#@DATE@#$$(date --utc --date "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" "+%Y-%m%d")#g" \
+ 		-e "s#@OPTIONS@#$(shell $(top_srcdir)/script/gen_man.pl $(top_builddir)/$*/$*)#g" \
+ 		$< > $@-t
+ 	mv $@-t $@
--- a/debian/patches/series	2016-08-21 18:09:34.798385593 +0100
--- b/debian/patches/series	2016-08-21 18:16:46.254258039 +0100
@@ -1,3 +1,4 @@
 define_EFD_SEMAPHORE_ifnone.diff
 subdir-objects.diff
 sorted_bash_completion.diff
+reproducible-build.diff


More information about the Openstack-devel mailing list