[libdomain-publicsuffix-perl] 01/06: Add patch from upstream git which fixes gcc-7 build failure.
gregor herrmann
gregoa at debian.org
Sat Aug 5 00:46:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libdomain-publicsuffix-perl.
commit 143f3358125780d01e56171aec0cfef97129cac8
Author: gregor herrmann <gregoa at debian.org>
Date: Fri Aug 4 18:55:33 2017 -0400
Add patch from upstream git which fixes gcc-7 build failure.
Thanks: Gianfranco Costamagna for forwarding the patch.
Closes: #853490
---
debian/patches/gcc-7.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 25 insertions(+)
diff --git a/debian/patches/gcc-7.patch b/debian/patches/gcc-7.patch
new file mode 100644
index 0000000..93563e1
--- /dev/null
+++ b/debian/patches/gcc-7.patch
@@ -0,0 +1,24 @@
+From 65fb42981662f8d960766222c1be9ce4a20e0c6a Mon Sep 17 00:00:00 2001
+From: Gavin Carr <gavin at openfusion.com.au>
+Date: Wed, 31 May 2017 14:57:59 +1000
+Subject: [PATCH] Use explicit utf-8 encoding on searched path open.
+
+Bug-Debian: https://bugs.debian.org/853490
+
+---
+ lib/Domain/PublicSuffix.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Domain/PublicSuffix.pm b/lib/Domain/PublicSuffix.pm
+index 0ab452f..cfa01ae 100755
+--- a/lib/Domain/PublicSuffix.pm
++++ b/lib/Domain/PublicSuffix.pm
+@@ -251,7 +251,7 @@ sub _parse_data_file {
+ foreach my $path (@paths) {
+ $path = File::Spec->catfile( $path, "effective_tld_names.dat" );
+ if ( -e $path ) {
+- open( $dat, '<', $path )
++ open( $dat, '<:encoding(UTF-8)', $path )
+ or die "Cannot open \'" . $path . "\': " . $!;
+ @tld_lines = <$dat>;
+ close($dat);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bdfcd89
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gcc-7.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdomain-publicsuffix-perl.git
More information about the Pkg-perl-cvs-commits
mailing list