This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=1974f18a184a7425ffa75b70f0d24852ef61ecd1

commit 1974f18a184a7425ffa75b70f0d24852ef61ecd1
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Sat Jan 16 13:25:14 2021 +0100

    test: Set PERL in the perl test suite
    
    There is no guarantee that the PERL environment variable will contain
    the perl executable path or name. When running the test suite from the
    autotools build system we always set the PERL environment variable,
    but on CPAN we were not doing that, and some CPAN testers have PERL
    set to its version.
---
 scripts/Build.PL.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/Build.PL.in b/scripts/Build.PL.in
index 9846ffc91..c6be8c36a 100644
--- a/scripts/Build.PL.in
+++ b/scripts/Build.PL.in
@@ -17,6 +17,7 @@ if (-e 'Build.PL.in') {
 my $class = Module::Build->subclass(
     class => 'Module::Build::Dpkg',
     code => q{
+        require Config;
         require IPC::Cmd;
 
         sub find_command {
@@ -70,6 +71,7 @@ my $class = Module::Build->subclass(
 
             local $ENV{LANG} = 'C';
             local $ENV{LC_ALL} = 'C';
+            local $ENV{PERL} = $Config{perlpath};
             local $ENV{DPKG_TEST_MODE} = 'cpan';
             local $ENV{DPKG_DATADIR} = 'data';
             local $ENV{DPKG_ORIGINS_DIR} = 't/origins';

-- 
Dpkg.Org's dpkg

Reply via email to