Source: mknbi
Version: 1.4.4-11
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that mknbi could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/06-reproducible-builds.patch       1970-01-01 
02:00:00.000000000 +0200
--- b/debian/patches/06-reproducible-builds.patch       2016-07-15 
23:06:54.580070469 +0200
@@ -0,0 +1,30 @@
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-07-15
+
+--- mknbi-1.4.4.orig/Makefile
++++ mknbi-1.4.4/Makefile
+@@ -61,6 +61,11 @@ MANS=       mknbi.1 disnbi.1 menuc.1
+ HTMLS=        mknbi.html disnbi.html menuc.html
+ DOCS= $(MANS) $(HTMLS)
+ 
++ifdef SOURCE_DATE_EPOCH
++BUILD_DATE=   $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 
2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || 
date -u "+%Y-%m-%d")
++else
++BUILD_DATE=   $(shell date "+%Y-%m-%d")
++endif
+ 
+ all:  $(PROG) $(FIRSTS) $(RMRD) $(DOCS)
+ 
+@@ -210,9 +215,9 @@ $(ALTBOOT):        altboot.S
+       $(RM) altboot.s
+ 
+ $(MANS):      mknbi.pl disnbi.pl Makefile
+-      pod2man --date=`date +%Y-%m-%d` --release="Mknbi 
$(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" mknbi.pl > mknbi.1
+-      pod2man --date=`date +%Y-%m-%d` --release="Mknbi 
$(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" disnbi.pl > disnbi.1
+-      pod2man --date=`date +%Y-%m-%d` --release="Mknbi 
$(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" menuc.pl > menuc.1
++      pod2man --date=$(BUILD_DATE) --release="Mknbi 
$(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" mknbi.pl > mknbi.1
++      pod2man --date=$(BUILD_DATE) --release="Mknbi 
$(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" disnbi.pl > disnbi.1
++      pod2man --date=$(BUILD_DATE) --release="Mknbi 
$(VERSION)$(EXTRAVERSION)" --center="Etherboot tools" menuc.pl > menuc.1
+ 
+ $(HTMLS):     mknbi.pl disnbi.pl
+       pod2html mknbi.pl > mknbi.html
--- a/debian/patches/series     2016-07-15 23:00:52.105074043 +0200
--- b/debian/patches/series     2016-07-15 23:06:45.327993142 +0200
@@ -3,3 +3,4 @@
 03-gcc-multilib-harder.patch
 04-no-stack-protector.patch
 05-gcc-5,patch
+06-reproducible-builds.patch
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to