This is an automated email from the git hooks/post-receive script. fsfs pushed a commit to branch master in repository libkinosearch1-perl.
commit a24538b8aa55ab2a54ab31d8ef9dbcee59ab2a74 Author: Florian Schlichting <f...@debian.org> Date: Thu Sep 10 23:40:37 2015 +0200 Add patch by ntyni to make build reproducible (closes: #797711) --- ...st-of-source-files-when-generating-XS-cod.patch | 46 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 47 insertions(+) diff --git a/debian/patches/0001-Sort-the-list-of-source-files-when-generating-XS-cod.patch b/debian/patches/0001-Sort-the-list-of-source-files-when-generating-XS-cod.patch new file mode 100644 index 0000000..fb9ba74 --- /dev/null +++ b/debian/patches/0001-Sort-the-list-of-source-files-when-generating-XS-cod.patch @@ -0,0 +1,46 @@ +From efa36d64ab5be55a03deebf2fa91a4938de57fef Mon Sep 17 00:00:00 2001 +From: Niko Tyni <nt...@debian.org> +Date: Fri, 28 Aug 2015 22:49:22 +0300 +Subject: [PATCH] Sort the list of source files when generating XS code + +The order of the file list affects generated code, so nondeterminism +there renders the build unreproducible. + +The $first trick is a tad inelegant, but a custom sort() function +that would put Kinosearch1.pm first would probably be more confusing. + +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797711 +Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=107019 +--- + Build.PL | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Build.PL b/Build.PL +index 50a466a..31fbd4f 100644 +--- a/Build.PL ++++ b/Build.PL +@@ -37,10 +37,11 @@ my %source_pm = (); + + # grab all .pm filepaths, making sure that KinoSearch1.pm is first + my @pm_filepaths; ++my $first; + find( + { wanted => sub { + if ( $File::Find::name =~ /KinoSearch1\.pm$/ ) { +- unshift @pm_filepaths, $File::Find::name; ++ $first = $File::Find::name; + } + elsif ( $File::Find::name =~ /\.pm$/ ) { + push @pm_filepaths, $File::Find::name; +@@ -51,6 +52,8 @@ find( + 'lib', + ); + ++@pm_filepaths = ( $first, sort @pm_filepaths ); ++ + for my $pm_filepath (@pm_filepaths) { + open( my $module_fh, '<', $pm_filepath ) + or die "couldn't open file '$pm_filepath': $!"; +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..216bd53 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Sort-the-list-of-source-files-when-generating-XS-cod.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libkinosearch1-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits