[debhelper-devel] [debhelper] 01/01: Dh_Lib: Use :unix with :gzip layer
Niels Thykier
nthykier at moszumanska.debian.org
Sat Jun 24 12:38:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit c06db0fbc7a24fa02a82a57b800869213c9a02e4
Author: Niels Thykier <niels at thykier.net>
Date: Sat Jun 24 12:37:45 2017 +0000
Dh_Lib: Use :unix with :gzip layer
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 7 +++++--
debian/changelog | 2 ++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 26a8341..58c13cc 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1573,8 +1573,11 @@ sub open_gz {
open($fd, '-|', 'gzip', '-dc', $file)
or die("gzip -dc $file failed: $!");
} else {
- open($fd, '<:gzip', $file)
- or die("open $file [<:gzip] failed: $!");
+ # Pass ":unix" as well due to https://rt.cpan.org/Public/Bug/Display.html?id=114557
+ # Alternatively, we could ensure we always use "POSIX::_exit". Unfortunately,
+ # loading POSIX is insanely slow.
+ open($fd, '<:unix:gzip', $file)
+ or die("open $file [<:unix:gzip] failed: $!");
}
return $fd;
}
diff --git a/debian/changelog b/debian/changelog
index 6453ced..405b1ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,8 @@ debhelper (10.5) UNRELEASED; urgency=medium
* dh_shlibdeps: Avoid calling file(1) on debug symbols.
* SUPPORT-POLICY: Include new document that describes the current
support policy of debhelper compat levels.
+ * Dh_Lib.pm: Pass ":unix" layer when using the ":gzip" layer due to
+ PerlIO-gzip bug RT#114557.
[ Iain Lane ]
* Dh_Lib: Re-add warning + exit 0 for the -i/-a shortcut that was
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list