From 9eb71e108584e609739037f0d949326f60f72c61 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" Date: Sat, 12 Apr 2008 22:24:23 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20428637=20=C3=A2=C2=80=C2=93=20Documentati?= =?UTF-8?q?on=20doesn't=20build=20(and=20even=20less=20on=20Perl=205.10).?= =?UTF-8?q?=20Patch=20by=20Marc=20Schumann=20;=20r=3Dm?= =?UTF-8?q?kanat,LpSolit;=20a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@250143 18797224-902f-48f8-a5cc-f745e15eee43 --- .../webtools/bugzilla/docs/en/xml/installation.xml | 6 +++--- mozilla/webtools/bugzilla/docs/makedocs.pl | 11 +++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/mozilla/webtools/bugzilla/docs/en/xml/installation.xml b/mozilla/webtools/bugzilla/docs/en/xml/installation.xml index f2e69396ab9..5342f59c85b 100644 --- a/mozilla/webtools/bugzilla/docs/en/xml/installation.xml +++ b/mozilla/webtools/bugzilla/docs/en/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -285,7 +285,7 @@ - CGI &min-cgi-ver; or CGI &min-mp-cgi-ver; if using mod_perl + CGI &min-cgi-ver; @@ -469,7 +469,7 @@ CGI - (&min-cgi-ver;) for mod_perl + (&min-mp-cgi-ver;) for mod_perl diff --git a/mozilla/webtools/bugzilla/docs/makedocs.pl b/mozilla/webtools/bugzilla/docs/makedocs.pl index ae5ba40574e..17e6c333172 100755 --- a/mozilla/webtools/bugzilla/docs/makedocs.pl +++ b/mozilla/webtools/bugzilla/docs/makedocs.pl @@ -73,9 +73,11 @@ foreach my $module (@$modules, @$opt_modules) print ENTITIES '' . "\n"; } -# CGI is a special case, because it has an optional version *and* a required -# version. -my ($cgi_opt) = grep($_->{package} eq 'CGI', @$opt_modules); +# CGI is a special case, because for Perl versions below 5.10, it has an +# optional version *and* a required version. +# We check @opt_modules first, then @modules, and pick the first we get. +# We'll get the optional one then, if it is given, otherwise the required one. +my ($cgi_opt) = grep($_->{module} eq 'CGI', @$opt_modules, @$modules); print ENTITIES '{version} . '">' . "\n"; print ENTITIES "\n \n"; @@ -83,7 +85,8 @@ print ENTITIES "\n \n"; my $db_modules = DB_MODULE; foreach my $db (keys %$db_modules) { my $dbd = $db_modules->{$db}->{dbd}; - my $name = $dbd->{package}; + my $name = $dbd->{module}; + $name =~ s/::/-/g; $name = lc($name); my $version = $dbd->{version} || 'any'; my $db_version = $db_modules->{$db}->{'db_version'};