Source: safecat
Version: 1.13-2
Severity: wishlist
Tags: patch upstream
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that safecat could not be built reproducibly.
It embeds the build date/time into the binary

The attached patch strips this to enable reproducible building.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/05-reproducible-build.patch b/debian/patches/05-reproducible-build.patch
new file mode 100644
index 0000000..386d358
--- /dev/null
+++ b/debian/patches/05-reproducible-build.patch
@@ -0,0 +1,15 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Strip build date/time to enable reproducible building
+
+--- a/Makefile
++++ b/Makefile
+@@ -407,8 +407,7 @@
+ version.h: \
+ conf-version
+ 	@echo 'static const char *const version_string="$$Version:' \
+-	`head -1 conf-version` 'built' `date +"%b %d, %Y"` at \
+-	`date +"%H:%M"`'$$";' > version.h
++	`head -1 conf-version` '$$";' > version.h
+ 
+ writefile.o: \
+ compile writefile.c
diff --git a/debian/patches/series b/debian/patches/series
index e1c2077..9cbc2c2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 02-do-not-mention-procmail.patch
 03-no-RPLINE-DTLINE.patch
 04-manpage-dashes.patch
+05-reproducible-build.patch

Attachment: signature.asc
Description: Digital signature

_______________________________________________
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