Storing localconfig and data/ one level up from Bugzilla home

Sergey A Lipnevich sergeyli at pisem.net
Mon Oct 7 16:09:18 UTC 2002


Hi!

I'm new to Bugzilla development. For the purpose of having multuple
Bugzilla repositories on the same system reusing same source code, I
adjusted Bugzilla to use localconfig and data/ information located one
level *above* Bugzila home, like this:

/projectA/config/bugzilla/localconfig
/projectA/config/bugzilla/data/...
/projectA/config/bugzilla/cgi -> symlink to /usr/share/bugzilla where
                                   the actual code is
/projectB/config/bugzilla/localconfig
/projectB/config/bugzilla/data/...
/projectB/config/bugzilla/cgi -> symlink to /usr/share/bugzilla

This way, globals.pl located localconfig and data/ and sets several
global variables to point at relevant files/directories. All other
Bugzilla modules are reusing these variables instead of having them
hard-coded. Things like database info and data/params are then different
for each repository, while source code is the same.

I also have modified necessary parts to use perl-ldap (see
http://search.cpan.org/author/GBARR/perl-ldap-0.26/) for authentication.
It now more or less works with my OpenLDAP 2.1.5.

The version of Bugzilla used was 2.16.0. If you are interested in
including such functionality into the mainstream Bugzilla, I could
prepare and send my patches.

Finally, I wanted to say many thanks to the development team for the
terrific product!

Regards,
Sergey.






More information about the developers mailing list