Bug#397491: Porting Apache::DBILogger to mod_perl2
Gunnar Wolf
gwolf at gwolf.org
Mon Feb 26 16:09:50 UTC 2007
Hi,
I actually jumped in the code to try and fix the bug you report -
Actually, Apache::DBILogger is a very simple module, and the patch
seems trivial as well - Probably, as easy as this:
--- DBILogger.pm.orig 2007-02-26 09:44:09.000000000 -0600
+++ DBILogger.pm 2007-02-26 09:44:18.000000000 -0600
@@ -2,7 +2,7 @@
require 5.004;
use strict;
-use Apache::Constants qw( :common );
+use Apache2::Const qw( :common );
use DBI;
use Date::Format;
However, I seem to have hit an (unrelated?) Apache2 bug in Sid - I'll
take a look on this.
Anyway, as soon as I get this working (either with Sid or with Sarge
Apache2, which are -again- not exactly API-compatible), I'll post a
patch for the upstream author - and find a sane path on how to fix
this, so we don't have two packages just replicating
functionality. Maybe it will be sane to do:
BEGIN {
eval "use Apache::Constants qw(:common)";
if ($@) {
eval "use Apache2::Const qw(:common)";
if ($@) {
die "Not under Apache, not under Apache2?\n$@";
}
}
}
Anyway, I'll do a couple of checks, and then debug why it's not
working in Sid ;-)
Greetings,
--
Gunnar Wolf - gwolf at gwolf.org - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973 F800 D80E F35A 8BB5 27AF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20070226/7db7bdc7/attachment.pgp
More information about the pkg-perl-maintainers
mailing list