[libapache2-mod-perl2] 02/02: Make the generated documentation not vary with filesystem ordering
Niko Tyni
ntyni at moszumanska.debian.org
Tue Nov 24 21:10:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
ntyni pushed a commit to branch ntyni/reproducible
in repository libapache2-mod-perl2.
commit 5b982f8c1aee47d0179514f4a3cbb3ad20be2e4a
Author: Niko Tyni <ntyni at debian.org>
Date: Sun Oct 11 18:56:37 2015 +0300
Make the generated documentation not vary with filesystem ordering
If the order of the generated HTML depends on the filesystem ordering,
it's possible that it varies between build systems, breaking build
reproducibility.
Closes: #801520
---
debian/transform_pod2html.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/transform_pod2html.pl b/debian/transform_pod2html.pl
index 44d8497..329af9a 100644
--- a/debian/transform_pod2html.pl
+++ b/debian/transform_pod2html.pl
@@ -25,7 +25,7 @@ croak "No destination directory: $DEST_DIR" if not -d $DEST_DIR;
# the pod in the form expected by HTML::Template.
my %data = (pod=>[],sections=>[]);
-find( \&transform_pod2html, $SRC_DIR );
+find( { wanted => \&transform_pod2html, preprocess => sub { sort @_ }}, $SRC_DIR );
my $template = HTML::Template->new(filename=>"$CUR_DIR/debian/index.tmpl", die_on_bad_params=>0);
$template->param(%{$data{sections}->[0]->{sections}->[0]});
open my $fh,'>', "$CUR_DIR/$DEST_DIR/index.html";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libapache2-mod-perl2.git
More information about the Pkg-perl-cvs-commits
mailing list