]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 621597: Make mod_perl.pl do the INC configuration itself, instead of
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Dec 2010 22:47:33 +0000 (14:47 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Dec 2010 22:47:33 +0000 (14:47 -0800)
requiring it to be in httpd.conf.
r=dkl, a=mkanat

docs/en/xml/installation.xml
mod_perl.pl

index cf4584a707d0f13cc82fb97b2f788d656a284a3a..79ad19fbc8ccebf9b29639a49718e0c4d9b8e157 100644 (file)
@@ -1132,7 +1132,7 @@ max_allowed_packet=4M
                 </warning> 
                 
                 <programlisting>
-    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
+    PerlSwitches -w -T
     PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
                 </programlisting>
             </step>
index abd0181030e870f89a782b4a01ad6bac6af12912..3551abdaf3a9d0023a8feeb3a29b53971b4234bb 100644 (file)
 package Bugzilla::ModPerl;
 use strict;
 
+# This sets up our libpath without having to specify it in the mod_perl
+# configuration.
+use File::Basename;
+use lib dirname(__FILE__);
+use Bugzilla::Constants ();
+use lib Bugzilla::Constants::bz_locations()->{'ext_libpath'};
+
 # If you have an Apache2::Status handler in your Apache configuration,
 # you need to load Apache2::Status *here*, so that any later-loaded modules
 # can report information to Apache2::Status.
@@ -36,7 +43,6 @@ use Bugzilla ();
 # Loading Bugzilla.pm doesn't load this, though, and we want it preloaded.
 use Bugzilla::BugMail ();
 use Bugzilla::CGI ();
-use Bugzilla::Constants ();
 use Bugzilla::Extension ();
 use Bugzilla::Install::Requirements ();
 use Bugzilla::Util ();