[libnet-interface-perl] 01/03: Add patch to make build reproducible.

gregor herrmann gregoa at debian.org
Wed Jul 8 20:43:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libnet-interface-perl.

commit 5f41d68ba5e2d017ea69f0babcf2afdef20fcad1
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Jul 8 22:39:00 2015 +0200

    Add patch to make build reproducible.
    
    Thanks: Chris Lamb for the bug report and the patch.
    Closes: #790503
---
 debian/patches/reproducible-build.patch | 29 +++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 30 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..d74f7e1
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,29 @@
+Description: make build reproducible
+ The patch removes randomness from the build system.
+ Cf. https://wiki.debian.org/ReproducibleBuilds
+Origin: vendor
+Author: Chris Lamb <lamby at debian.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-07-08
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=105762
+Bug: https://rt.cpan.org/Ticket/Display.html?id=105762
+
+--- a/inst/netsymbols.pl
++++ b/inst/netsymbols.pl
+@@ -319,13 +319,13 @@
+ 
+ ### populate C portion
+ #
+-my @tmp = grep {/^AF/} keys %fam;	# tmp store AFs
++my @tmp = grep {/^AF/} sort keys %fam;	# tmp store AFs
+ my @afs = sort { $fam{$a} <=> $fam{$b} } @tmp;
+ 
+- at tmp = grep {/^PF/} keys %fam;
++ at tmp = grep {/^PF/} sort keys %fam;
+ my @pfs = sort { $fam{$a} <=> $fam{$b} } @tmp;
+ 
+-my @ifs = keys %ifs;
++my @ifs = sort keys %ifs;
+ # iffs are not unique so we can safely purge unwanted symbols here
+ my @iffs = sort grep {/^IFF_/ && $_ !~ /IFF_DRV/} keys %ifs;
+ my @iffIN6 = sort grep {/^IN6_IFF/} keys %ifs;
diff --git a/debian/patches/series b/debian/patches/series
index 4362634..2f3283c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 socket_h.patch
 manpage.patch
 update-configure.ac.patch
+reproducible-build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-interface-perl.git



More information about the Pkg-perl-cvs-commits mailing list