Skip Menu |

This queue is for tickets about the Apache-Test CPAN distribution.

Report information
The Basics
Id: 123283
Status: new
Priority: 0/
Queue: Apache-Test

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Missing import of "catfile" in Apache::TestConfigParse

Compile testing of Apache::TestConfigParse fails like so:

 

syntax error at /var/tmp/portage/dev-perl/Apache-Test-1.400.0-r2/work/Apache-Test-1.40/blib/lib/Apache/TestConfigParse.pm line 378, near "catfile qw(conf httpd.conf)"
syntax error at /var/tmp/portage/dev-perl/Apache-Test-1.400.0-r2/work/Apache-Test-1.40/blib/lib/Apache/TestConfigParse.pm line 399, near "catfile qw(conf $extra_file)"
Global symbol "$default_conf" requires explicit package name (did you forget to declare "my $default_conf"?) at /var/tmp/portage/dev-perl/Apache-Test-1.400.0-r2/work/Apache-Test-1.40/blib/lib/Apache/TestConfigParse.pm line 400.
Compilation failed in require.
BEGIN failed--compilation aborted.   

The error however is misleading, probably due to indirect-syntax:

https://metacpan.org/source/SHAY/Apache-Test-1.40/lib/Apache/TestConfigParse.pm#L400

Adding catfile to this import list solves the problem:

https://metacpan.org/source/SHAY/Apache-Test-1.40/lib/Apache/TestConfigParse.pm#L26


-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

Subject: 0002-Fix-missing-import-of-catfile.patch
From f06bb625c7feb44bf9b5c13617522ce57cdad84e Mon Sep 17 00:00:00 2001 From: Kent Fredric <kentnl@gentoo.org> Date: Sun, 15 Oct 2017 06:16:45 +1300 Subject: Fix missing import of "catfile" Bug: https://rt.cpan.org/Ticket/Display.html?id=123283 --- lib/Apache/TestConfigParse.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Apache/TestConfigParse.pm b/lib/Apache/TestConfigParse.pm index 88a19af..8fe0fe4 100644 --- a/lib/Apache/TestConfigParse.pm +++ b/lib/Apache/TestConfigParse.pm @@ -23,7 +23,7 @@ use warnings FATAL => 'all'; use Apache::TestTrace; -use File::Spec::Functions qw(rel2abs splitdir file_name_is_absolute); +use File::Spec::Functions qw(rel2abs splitdir file_name_is_absolute catfile); use File::Basename qw(dirname basename); sub strip_quotes { -- 2.14.2