Bug#846895: libfile-stripnondeterminism-perl: Treat .par files as Zip archives
Anders Kaseorg
andersk at mit.edu
Sun Dec 4 00:10:37 UTC 2016
Package: libfile-stripnondeterminism-perl
Version: 0.028-1
Tags: patch
.par files are Zip archives
(http://search.cpan.org/~rschupp/PAR-Repository-0.21/lib/PAR/Repository/Zip.pm).
This patch should allow barnowl to build reproducibly.
---
lib/File/StripNondeterminism.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/File/StripNondeterminism.pm b/lib/File/StripNondeterminism.pm
index 8648a3c..cc36bcb 100644
--- a/lib/File/StripNondeterminism.pm
+++ b/lib/File/StripNondeterminism.pm
@@ -100,7 +100,7 @@ sub get_normalizer_for_file {
\&File::StripNondeterminism::handlers::javaproperties::normalize;
}
# zip
- if (m/\.(zip|pk3|epub|whl|xpi|htb|zhfst)$/
+ if (m/\.(zip|pk3|epub|whl|xpi|htb|zhfst|par)$/
&& _get_file_type($_) =~ m/Zip archive data|EPUB document/) {
return \&File::StripNondeterminism::handlers::zip::normalize;
}
--
2.11.0
More information about the Reproducible-builds
mailing list