Source: epic4
Version: 1:2.10.5-2
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps username hostname
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that epic4 could not be built reproducibly.
It embeds the build time, username and hostname 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/03_reproducible_build.patch b/debian/patches/03_reproducible_build.patch
new file mode 100644
index 0000000..41960c9
--- /dev/null
+++ b/debian/patches/03_reproducible_build.patch
@@ -0,0 +1,17 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Strip non-deterministic data to make build reproducible
+
+--- a/source/info.c.sh.in
++++ b/source/info.c.sh.in
+@@ -25,10 +25,7 @@
+ #define USER "$comp_user"
+ #endif
+ 
+-const char *compile_user = "$comp_user";
+-const char *compile_host = "$comp_host";
+-const char *compile_time = "$comp_time";
+ const char *info_c_sum   = "$info_c_sum";
+-const char *compile_info = "Compiled by " USER "@$comp_host on $comp_time";
++const char *compile_info = "Compiled by Debian";
+ 
+ __E__O__F__
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c7a15ff
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+03_reproducible_build.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to