From: justdave%bugzilla.org <> Date: Tue, 14 Sep 2004 12:51:25 +0000 (+0000) Subject: Bug 257534: Require Perl 5.8.1 or later when running on Windows with ActiveState... X-Git-Tag: bugzilla-2.18rc3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4ec73de56c510df231bd4be32abcaa0fc4396fe;p=thirdparty%2Fbugzilla.git Bug 257534: Require Perl 5.8.1 or later when running on Windows with ActiveState Perl (there is no official CGI ppm build with a new enough version for Bugzilla on any earlier version of ActiveState Perl) Patch by Byron Jones r=justdave, a=justdave --- diff --git a/checksetup.pl b/checksetup.pl index bb28e57174..a1a4ab11a3 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -150,6 +150,12 @@ if ($ARGV[0] && ($ARGV[0] !~ /^--/)) { # print "\nChecking perl modules ...\n" unless $silent; +if ($^O =~ /MSWin32/i) { + unless ($] >= 5.008001) { + die "Sorry, you need at least ActiveState Perl build 5.8.1\n"; + # for CGI 2.93 or higher + } +} unless ($] >= 5.006) { die "Sorry, you need at least Perl 5.6\n"; } @@ -314,26 +320,11 @@ my $patchreader = have_vers("PatchReader","0.9.4"); print "\n" unless $silent; if ($^O =~ /MSWin32/i && !$silent) { - if ($^V lt pack('U*',5,8,0)) { - # If something older than 5.8 is detected, then point to the oi - # repository using ppm version 2 commands (which is the default - # for Perl 5.6) - - print "The required ActivePerl modules are available at OpenInteract's ppm repository.\n"; - print "You can add the repository with the following command:\n"; - print " ppm set rep oi http://openinteract.sourceforge.net/ppmpackages/\n"; - print "You can then save the changes by typing:\n"; - print " ppm set save\n\n"; - } else { - # For Perl 5.8 or higher, point the user to a 5.8 repository, - # using ppm version 3 commands (which is the default for Perl 5.8) - - print "Most ActivePerl modules are available at Apache's ppm repository.\n"; - print "A list of mirrors is available at\n"; - print " http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/\n"; - print "You can add the repository with the following command:\n"; - print " ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/\n\n"; - } + print "Most ActivePerl modules are available at Apache's ppm repository.\n"; + print "A list of mirrors is available at\n"; + print " http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/\n"; + print "You can add the repository with the following command:\n"; + print " ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/\n\n"; } if ((!$gd || !$chartbase) && !$silent) { diff --git a/docs/rel_notes.txt b/docs/rel_notes.txt index 1f08a22c21..9327090c3b 100644 --- a/docs/rel_notes.txt +++ b/docs/rel_notes.txt @@ -24,7 +24,8 @@ Dependency Requirements Minimum software requirements: MySQL v3.23.41 (changed from 2.16) - Perl v5.6.0 (changed from 2.16) + Perl v5.6.0 (changed from 2.16) (Non-Windows platforms) + ActiveState Perl v5.8.1 (Windows only) Required Perl modules: diff --git a/docs/xml/Bugzilla-Guide.xml b/docs/xml/Bugzilla-Guide.xml index 7b4a40f53e..648f388c2c 100644 --- a/docs/xml/Bugzilla-Guide.xml +++ b/docs/xml/Bugzilla-Guide.xml @@ -44,6 +44,7 @@ + diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index 741128ddec..02223f286d 100644 --- a/docs/xml/installation.xml +++ b/docs/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -54,7 +54,8 @@ Install Perl - (&min-perl-ver; or above) + (&min-perl-ver; or above for non-Windows platforms; &min-perl-ver-win; + for Windows)