[debhelper-devel] [debhelper] 01/02: Disable PERL_USE_UNSAFE_INC in compat 11
Niels Thykier
nthykier at moszumanska.debian.org
Wed Jun 28 09:53:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch clean-up-perl-unsafe-inc-in-compat-11
in repository debhelper.
commit a95329ac0dec6bd46b84933f9a9dacd806984b4b
Author: Niels Thykier <niels at thykier.net>
Date: Wed Jun 28 09:28:36 2017 +0000
Disable PERL_USE_UNSAFE_INC in compat 11
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 2 +-
debhelper.pod | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 15966b2..3a11217 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1505,7 +1505,7 @@ sub set_buildflags {
# Export PERL_USE_UNSAFE_INC as a transitional step to allow us
# to remove . from @INC by default without breaking packages which
# rely on this [CVE-2016-1238]
- $ENV{PERL_USE_UNSAFE_INC}=1;
+ $ENV{PERL_USE_UNSAFE_INC} = 1 if compat(10);
eval "use Dpkg::BuildFlags";
if ($@) {
diff --git a/debhelper.pod b/debhelper.pod
index b1786a5..4a22812 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -671,6 +671,18 @@ directory for all packages. This will not affect packages that only
build with debhelper commands, but it may expose bugs in commands not
included in debhelper.
+=item -
+
+The B<PERL_USE_UNSAFE_INC> environment variable is no longer set by
+B<dh> or any of the B<dh_auto_*> tools. It was added as a temporary
+work around to avoid a lot of packages failing to build at the same
+time.
+
+Note this item will eventually become obsolete as upstream intends
+to drop support for the B<PERL_USE_UNSAFE_INC> environment variable.
+When perl drops support for it, then this variable will be removed
+retroactively from existing compat levels as well.
+
=back
=back
--
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