Source: libnet-interface-perl
Version: 1.012-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that libnet-interface-perl could not be built reproducibly.
The attached patch removes randomness from the build system. Once
applied, libnet-interface-perl can be built reproducibly in our
reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --no-dereference -urNad
libnet-interface-perl.orig/libnet-interface-perl-1.012/debian/patches/reproducible-build.patch
libnet-interface-perl/libnet-interface-perl-1.012/debian/patches/reproducible-build.patch
---
libnet-interface-perl.orig/libnet-interface-perl-1.012/debian/patches/reproducible-build.patch
1970-01-01 01:00:00.000000000 +0100
+++
libnet-interface-perl/libnet-interface-perl-1.012/debian/patches/reproducible-build.patch
2015-06-29 22:50:20.387553935 +0100
@@ -0,0 +1,19 @@
+--- libnet-interface-perl-1.012.orig/inst/netsymbols.pl
++++ libnet-interface-perl-1.012/inst/netsymbols.pl
+@@ -319,13 +319,13 @@ const ni_iff_t ni_iff_tab[] = {
+
+ ### 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;
+
+-@tmp = grep {/^PF/} keys %fam;
++@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 --no-dereference -urNad
libnet-interface-perl.orig/libnet-interface-perl-1.012/debian/patches/series
libnet-interface-perl/libnet-interface-perl-1.012/debian/patches/series
---
libnet-interface-perl.orig/libnet-interface-perl-1.012/debian/patches/series
2015-06-29 22:48:01.481355817 +0100
+++ libnet-interface-perl/libnet-interface-perl-1.012/debian/patches/series
2015-06-29 22:50:16.635386518 +0100
@@ -1,3 +1,4 @@
socket_h.patch
manpage.patch
update-configure.ac.patch
+reproducible-build.patch