Commit d452840e authored by justdave%bugzilla.org's avatar justdave%bugzilla.org

Bug 257534: Require Perl 5.8.1 or later when running on Windows with ActiveState…

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 <bugzilla@glob.com.au> r=justdave, a=justdave
parent 1a4d36f7
...@@ -151,6 +151,12 @@ if ($ARGV[0] && ($ARGV[0] !~ /^--/)) { ...@@ -151,6 +151,12 @@ if ($ARGV[0] && ($ARGV[0] !~ /^--/)) {
# #
print "\nChecking perl modules ...\n" unless $silent; 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) { unless ($] >= 5.006) {
die "Sorry, you need at least Perl 5.6\n"; die "Sorry, you need at least Perl 5.6\n";
} }
...@@ -315,26 +321,11 @@ my $patchreader = have_vers("PatchReader","0.9.4"); ...@@ -315,26 +321,11 @@ my $patchreader = have_vers("PatchReader","0.9.4");
print "\n" unless $silent; print "\n" unless $silent;
if ($^O =~ /MSWin32/i && !$silent) { if ($^O =~ /MSWin32/i && !$silent) {
if ($^V lt pack('U*',5,8,0)) { print "Most ActivePerl modules are available at Apache's ppm repository.\n";
# If something older than 5.8 is detected, then point to the oi print "A list of mirrors is available at\n";
# repository using ppm version 2 commands (which is the default print " http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/\n";
# for Perl 5.6) 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 "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";
}
} }
if ((!$gd || !$chartbase) && !$silent) { if ((!$gd || !$chartbase) && !$silent) {
......
...@@ -24,7 +24,8 @@ Dependency Requirements ...@@ -24,7 +24,8 @@ Dependency Requirements
Minimum software requirements: Minimum software requirements:
MySQL v3.23.41 (changed from 2.16) 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: Required Perl modules:
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
<!-- For minimum versions --> <!-- For minimum versions -->
<!ENTITY min-mysql-ver "3.23.41"> <!ENTITY min-mysql-ver "3.23.41">
<!ENTITY min-perl-ver "5.6.0"> <!ENTITY min-perl-ver "5.6.0">
<!ENTITY min-perl-ver-win "5.8.1">
<!ENTITY min-template-ver "2.08"> <!ENTITY min-template-ver "2.08">
<!ENTITY min-file-temp-ver "any"> <!ENTITY min-file-temp-ver "any">
<!ENTITY min-appconfig-ver "1.52"> <!ENTITY min-appconfig-ver "1.52">
......
...@@ -951,7 +951,7 @@ Support: ENTRY, DEFAULT/MANDATORY, CANEDIT ...@@ -951,7 +951,7 @@ Support: ENTRY, DEFAULT/MANDATORY, CANEDIT
<para>Revisions are normally released to fix security vulnerabilities <para>Revisions are normally released to fix security vulnerabilities
and are distinguished by an increase in the third number. For example, and are distinguished by an increase in the third number. For example,
when 2.16.2 was released, it was a revision to 2.16.1. when 2.16.6 was released, it was a revision to 2.16.5.
</para> </para>
<para>Point releases are normally released when the Bugzilla team feels <para>Point releases are normally released when the Bugzilla team feels
...@@ -960,12 +960,12 @@ Support: ENTRY, DEFAULT/MANDATORY, CANEDIT ...@@ -960,12 +960,12 @@ Support: ENTRY, DEFAULT/MANDATORY, CANEDIT
stabilization period and release candidates, however the use of stabilization period and release candidates, however the use of
development versions or release candidates is beyond the scope of this development versions or release candidates is beyond the scope of this
document. Point releases can be distinguished by an increase in the document. Point releases can be distinguished by an increase in the
second number, or minor version. For example, 2.16.2 is a newer point second number, or minor version. For example, 2.18.0 is a newer point
release than 2.14.5. release than 2.16.5.
</para> </para>
<para>The examples in this section are written as if you were updating <para>The examples in this section are written as if you were updating
to version 2.16.2. The procedures are the same regardless if you are to version 2.18.1. The procedures are the same regardless if you are
updating to a new point release or a new revision. However, the chance updating to a new point release or a new revision. However, the chance
of running into trouble increases when upgrading to a new point release, of running into trouble increases when upgrading to a new point release,
escpecially if you've made local changes. escpecially if you've made local changes.
...@@ -997,7 +997,7 @@ bash$ <command>cd /var/www/html/bugzilla</command> ...@@ -997,7 +997,7 @@ bash$ <command>cd /var/www/html/bugzilla</command>
bash$ <command>cvs login</command> bash$ <command>cvs login</command>
Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot
CVS password: <command>anonymous</command> CVS password: <command>anonymous</command>
bash$ <command>cvs -q update -r BUGZILLA-2_16_2 -dP</command> bash$ <command>cvs -q update -r BUGZILLA-2_18_1 -dP</command>
P checksetup.pl P checksetup.pl
P collectstats.pl P collectstats.pl
P globals.pl P globals.pl
...@@ -1033,19 +1033,19 @@ P template/en/default/list/quips.html.tmpl ...@@ -1033,19 +1033,19 @@ P template/en/default/list/quips.html.tmpl
<programlisting> <programlisting>
bash$ <command>cd /var/www/html</command> bash$ <command>cd /var/www/html</command>
bash$ <command>wget ftp://ftp.mozilla.org/pub/webtools/bugzilla-2.16.2.tar.gz</command> bash$ <command>wget ftp://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.18.1.tar.gz</command>
<emphasis>Output omitted</emphasis> <emphasis>Output omitted</emphasis>
bash$ <command>tar xzvf bugzilla-2.16.2.tar.gz</command> bash$ <command>tar xzvf bugzilla-2.18.1.tar.gz</command>
bugzilla-2.16.2/ bugzilla-2.18.1/
bugzilla-2.16.2/.cvsignore bugzilla-2.18.1/.cvsignore
bugzilla-2.16.2/1x1.gif bugzilla-2.18.1/1x1.gif
<emphasis>Output truncated</emphasis> <emphasis>Output truncated</emphasis>
bash$ <command>cd bugzilla-2.16.2</command> bash$ <command>cd bugzilla-2.18.1</command>
bash$ <command>cp ../bugzilla/localconfig* .</command> bash$ <command>cp ../bugzilla/localconfig* .</command>
bash$ <command>cp -r ../bugzilla/data .</command> bash$ <command>cp -r ../bugzilla/data .</command>
bash$ <command>cd ..</command> bash$ <command>cd ..</command>
bash$ <command>mv bugzilla bugzilla.old</command> bash$ <command>mv bugzilla bugzilla.old</command>
bash$ <command>mv bugzilla-2.16.2 bugzilla</command> bash$ <command>mv bugzilla-2.18.1 bugzilla</command>
bash$ <command>cd bugzilla</command> bash$ <command>cd bugzilla</command>
bash$ <command>./checksetup.pl</command> bash$ <command>./checksetup.pl</command>
<emphasis>Output omitted</emphasis> <emphasis>Output omitted</emphasis>
...@@ -1086,10 +1086,10 @@ bash$ <command>./checksetup.pl</command> ...@@ -1086,10 +1086,10 @@ bash$ <command>./checksetup.pl</command>
<programlisting> <programlisting>
bash$ <command>cd /var/www/html/bugzilla</command> bash$ <command>cd /var/www/html/bugzilla</command>
bash$ <command>wget ftp://ftp.mozilla.org/pub/webtools/bugzilla-2.16.1-to-2.16.2.diff.gz</command> bash$ <command>wget ftp://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.18.0-to-2.18.1.diff.gz</command>
<emphasis>Output omitted</emphasis> <emphasis>Output omitted</emphasis>
bash$ <command>gunzip bugzilla-2.16.1-to-2.16.2.diff.gz</command> bash$ <command>gunzip bugzilla-2.18.0-to-2.18.1.diff.gz</command>
bash$ <command>patch -p1 &lt; bugzilla-2.16.1-to-2.16.2.diff</command> bash$ <command>patch -p1 &lt; bugzilla-2.18.0-to-2.18.1.diff</command>
patching file checksetup.pl patching file checksetup.pl
patching file collectstats.pl patching file collectstats.pl
patching file globals.pl patching file globals.pl
......
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> --> <!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- $Id: installation.xml,v 1.74 2004/07/23 22:02:37 bugreport%peshkin.net Exp $ --> <!-- $Id: installation.xml,v 1.75 2004/09/14 05:48:54 justdave%bugzilla.org Exp $ -->
<chapter id="installing-bugzilla"> <chapter id="installing-bugzilla">
<title>Installing Bugzilla</title> <title>Installing Bugzilla</title>
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
<procedure> <procedure>
<step> <step>
<para><link linkend="install-perl">Install Perl</link> <para><link linkend="install-perl">Install Perl</link>
(&min-perl-ver; or above) (&min-perl-ver; or above for non-Windows platforms; &min-perl-ver-win;
for Windows)
</para> </para>
</step> </step>
<step> <step>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment