[Pkg-awstats-devel] Bug#519319: awstats_buildstaticpages.pl has old check for nested includes for Perl 5.6 also

Andrew Ruthven andrew at etc.gen.nz
Wed Mar 11 20:33:20 UTC 2009


Package: awstats
Version: 6.7.dfsg-5.1
Severity: normal

Hi,

Bug #4400335 removed a bogus warning about nested includes in awstats.pl, it
turns out that awstats_buildstaticpages.pl in the examples directory has the
same bogus warning.

Since Lenny is shipping with Perl 5.10 this warning is redundant.  The attached
patch removes it.

Cheers!


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-ovz005 (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages awstats depends on:
ii  perl [libtime-hires-perl]     5.10.0-19  Larry Wall's Practical Extraction 

Versions of packages awstats recommends:
ii  libnet-xwhois-perl            0.90-3     Whois Client Interface for Perl5

Versions of packages awstats suggests:
ii  apache2-mpm-prefork [htt 2.2.9-10+lenny2 Apache HTTP Server - traditional n
ii  libgeo-ipfree-perl       0.2-7           A look up country of ip address Pe
ii  libnet-dns-perl          0.63-2          Perform DNS queries from a Perl sc
ii  libnet-ip-perl           1.25-2          Perl extension for manipulating IP

-- no debconf information
-------------- next part --------------
--- /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl.orig	2009-03-12 09:28:05.054649570 +1300
+++ /usr/share/doc/awstats/examples/awstats_buildstaticpages.pl	2009-03-12 09:28:26.568399585 +1300
@@ -189,10 +189,6 @@
 			    # Correct relative include files
 				if ($FileConfig =~ /^(.*[\\\/])[^\\\/]*$/) { $includeFile = "$1$includeFile"; }
 			}
-			if ($level > 1) {
-				warning("Warning: Perl versions before 5.6 cannot handle nested includes");
-				next;
-			}
 		    if ( open( CONFIG_INCLUDE, $includeFile ) ) {
 				&Parse_Config( *CONFIG_INCLUDE , $level+1, $includeFile);
 				close( CONFIG_INCLUDE );


More information about the Pkg-awstats-devel mailing list