Source: resiprocate
Version: 1:1.10.0~alpha2-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: hostname
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that resiprocate could not be built reproducibly.
It embeds the hostname of the build machine into a library.

The attached patch fixes this by setting the hostname to a static value.

Regards,
 Reiner

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

diff --git a/debian/patches/reproducible_build_host.patch b/debian/patches/reproducible_build_host.patch
new file mode 100644
index 0000000..bba45a9
--- /dev/null
+++ b/debian/patches/reproducible_build_host.patch
@@ -0,0 +1,13 @@
+Index: resiprocate-1.10.0~alpha2/configure.ac
+===================================================================
+--- resiprocate-1.10.0~alpha2.orig/configure.ac
++++ resiprocate-1.10.0~alpha2/configure.ac
+@@ -124,7 +124,7 @@ AC_CHECK_MEMBER([struct sockaddr_in.sin_
+ 
+ AC_DEFINE(REPRO_BUILD_REV, PACKAGE_VERSION, REPRO_BUILD_REV)
+ AH_TEMPLATE([REPRO_BUILD_REV], [SVN revision])
+-AC_DEFINE_UNQUOTED(REPRO_BUILD_HOST, "`hostname`", REPRO_BUILD_HOST)
++AC_DEFINE_UNQUOTED(REPRO_BUILD_HOST, "debian", REPRO_BUILD_HOST)
+ AH_TEMPLATE([REPRO_BUILD_HOST], [Host where package was configured])
+ AC_DEFINE(REPRO_RELEASE_VERSION, PACKAGE_VERSION, REPRO_RELEASE_VERSION)
+ AH_TEMPLATE([REPRO_RELEASE_VERSION], [Package version])
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b308ff7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+reproducible_build_host.patch

Attachment: signature.asc
Description: OpenPGP 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