On Tue, 11 Jul 2006, Raphael Hertzog wrote: > On Mon, 10 Jul 2006, Don Armstrong wrote: > > Not really, because it requires hard coding the configuration file > > location and loading that first; far better to use PERL_LIB or > > similar to set it. [Or just install into the appropriate location > > if you're using suexec or something.] > > FWIW, PERLLIB or PERL5LIB is incompatible with the '-T' switch of perl. > So the SetEnv in the apache.conf file is only working if you remove -T.
Right. (That's why I mentioned suexec, which does the same thing.) > So what I suggest is to put the "require '/etc/debbugs/config'" in a > BEGIN block and to let the user add his "use lib > '/my/own/copy/of/debbugs'" there in the config file. I'm actually going in a different direction for that, which is I was commenting on it. [Basically, I'm replacing /etc/debbugs/config with a module that reads the config file and exports variables as appropriate; this enables me to override the configuration file using environmental variables.] You can see what it'll look like here: http://bzr.donarmstrong.com/debbugs/source/cgi/bugreport.cgi http://bzr.donarmstrong.com/debbugs/source/Debbugs/Config.pm Anyway, that's not really much of a concern for you, since I can modify the patch accordingly. > > === modified file 'scripts/config.in.default' > > --- scripts/config.in.default > > +++ scripts/config.in.default > > @@ -2,6 +2,7 @@ > > #domains > > $gEmailDomain = "bugs.top.domain"; #bugs.debian.org > > $gListDomain = "lists.top.domain"; #lists.debian.org > > +$gWebHostBugDir = ""; > > $gWebDomain = "www.top.domain"; #www.debian.org/Bugs > > $gCGIDomain = "cgi.top.domain"; #cgi.debian.org > > This is only a little bugfix. This variable is used by bugreport.cgi and > it generated a warning about use of uninitialized value so I added it (it > already exists in scripts/config.in but has a different default value). Ah, right... the version on spohr already has it set, and I think mine does to; thanks for catching it. Anyway, I'll get to it in a bit; I may add a few more modules at the same time. Don Armstrong -- The beauty of the DRUNKENNESS subprogram was that you could move your intoxication level up and down at will, instead of being caught on a relentless down escalator to bargain basement philosophy and the parking garage. -- Rudy von Bitter _Software_ p124 http://www.donarmstrong.com http://rzlab.ucr.edu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]