Source: libnet-tclink-perl
Version: 2.4.9.1+dfsg-1.5
Severity: wishlist
Tags: patch upstream
User: reproducible-bui...@lists.alioth.debian.org
Usertags: uname
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that libnet-tclink-perl could not be built reproducibly.
It embeds the current kernel/machine name into a library.

The attached patch replaces this with a static value instead.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..6ab0a11
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,14 @@
+Author: Reiner Herrmann <rei...@reiner-h.de>
+Description: Don't include kernel/machine name to get reproducible build
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -26,7 +26,7 @@
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence
+ # the contents of the Makefile that is written.
+ 
+-my $platform = `uname -sm`;
++my $platform = "Debian";
+ chomp($platform);
+ $platform =~ s/ /-/g;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 835d0a3..cd72032 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 add-shebang.patch
 disable-network-test.patch
 no-SSLv3.patch
+reproducible_build.patch

Reply via email to