[debhelper-devel] [debhelper] 01/03: Disable PERL_USE_UNSAFE_INC in compat 11
Niels Thykier
nthykier at moszumanska.debian.org
Thu Jun 29 16:07:06 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 57c7706124a0a9f8bf35834feb22e66808411b54
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 07c979f..0bae5a4 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1570,7 +1570,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 942334b..0b3f202 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -676,6 +676,18 @@ and B<dh_installman> now accept the parameter B<--sourcedir> with same
meaning as B<dh_install>. Furthermore, they now also fall back to
F<debian/tmp> like B<dh_install>.
+=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