Hello community,
here is the log from the commit of package perl-Apache-DBI for openSUSE:Factory
checked in at Thu Nov 18 17:54:20 CET 2010.
--------
--- perl-Apache-DBI/perl-Apache-DBI.changes 2010-02-23 16:35:51.000000000 +0100
+++ perl-Apache-DBI/perl-Apache-DBI.changes 2010-11-18 17:03:32.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Nov 18 17:02:41 CET 2010 - anicka@suse.cz
+
+- update to 1.09
+ * Fix pod errors
+ * Adds PerlChildExitHandler to disconnect existing connections
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
Apache-DBI-1.08-path.diff
Apache-DBI-1.08.tar.bz2
New:
----
Apache-DBI-1.09-path.diff
Apache-DBI-1.09.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Apache-DBI.spec ++++++
--- /var/tmp/diff_new_pack.8tlGlL/_old 2010-11-18 17:54:03.000000000 +0100
+++ /var/tmp/diff_new_pack.8tlGlL/_new 2010-11-18 17:54:03.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package perl-Apache-DBI (Version 1.08)
+# spec file for package perl-Apache-DBI (Version 1.09)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -20,7 +20,7 @@
Name: perl-Apache-DBI
BuildRequires: apache2-devel apache2-mod_perl libapr-util1-devel pcre-devel perl-DBI
-Version: 1.08
+Version: 1.09
Release: 1
Provides: ApacheDBI perl-ApacheDBI
Obsoletes: perl-ApacheDBI
++++++ Apache-DBI-1.08-path.diff -> Apache-DBI-1.09-path.diff ++++++
++++++ Apache-DBI-1.08.tar.bz2 -> Apache-DBI-1.09.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.08/Changes new/Apache-DBI-1.09/Changes
--- old/Apache-DBI-1.08/Changes 2010-02-03 23:58:55.000000000 +0100
+++ new/Apache-DBI-1.09/Changes 2010-11-12 04:17:24.000000000 +0100
@@ -1,5 +1,12 @@
Revision history for ApacheDBI.
+1.09 November 11, 2010
+ - Fix pod errors
+ Submitted by: Damyan Ivanov
+
+ - Adds PerlChildExitHandler to disconnect existing connections
+ Submitted by: Nick Wellnhoffer
+
1.08 February 3rd, 2010
- Fix bug to allow DBI in startup.pl etc again
Bug report from Adam Prime, patch from Lubomir Rintel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.08/META.yml new/Apache-DBI-1.09/META.yml
--- old/Apache-DBI-1.08/META.yml 2010-02-04 00:00:01.000000000 +0100
+++ new/Apache-DBI-1.09/META.yml 2010-11-12 04:18:08.000000000 +0100
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Apache-DBI
-version: 1.08
+version: 1.09
abstract: ~
author: []
license: unknown
@@ -18,7 +18,7 @@
directory:
- t
- inc
-generated_by: ExtUtils::MakeMaker version 6.55_02
+generated_by: ExtUtils::MakeMaker version 6.56
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.08/README new/Apache-DBI-1.09/README
--- old/Apache-DBI-1.08/README 2010-02-03 23:58:39.000000000 +0100
+++ new/Apache-DBI-1.09/README 2010-11-12 04:17:24.000000000 +0100
@@ -1,7 +1,7 @@
DESCRIPTION:
------------
-This is version 1.08 of Apache::AuthDBI and Apache::DBI.
+This is version 1.09 of Apache::AuthDBI and Apache::DBI.
These modules are supposed to be used with the Apache server together with
an embedded perl interpreter like mod_perl. They provide support for basic
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.08/lib/Apache/AuthDBI.pm new/Apache-DBI-1.09/lib/Apache/AuthDBI.pm
--- old/Apache-DBI-1.08/lib/Apache/AuthDBI.pm 2010-02-03 23:58:39.000000000 +0100
+++ new/Apache-DBI-1.09/lib/Apache/AuthDBI.pm 2010-11-12 04:17:24.000000000 +0100
@@ -1,7 +1,7 @@
-# $Id$
+# $Id: AuthDBI.pm 907307 2010-02-06 20:55:46Z phred $
package Apache::AuthDBI;
-$Apache::AuthDBI::VERSION = '1.08';
+$Apache::AuthDBI::VERSION = '1.09';
# 1: report about cache miss
# 2: full debug output
@@ -1356,6 +1356,8 @@
=head1 LIST OF TOKENS
+=over
+
=item * Auth_DBI_data_source (Authentication and Authorization)
The data_source value has the syntax 'dbi:driver:dsn'. This parameter is
@@ -1470,6 +1472,8 @@
placeholder for the username. This may result in improved performance for
databases supporting this method.
+=back
+
=head1 CONFIGURATION
The module should be loaded upon startup of the Apache daemon.
@@ -1549,6 +1553,7 @@
mod_perl versions less then 2.0.0 are NO longer supported.
=head2 MOD_PERL 1.0
+
Note that this module needs mod_perl-1.08 or higher, apache_1.3.0 or higher
and that mod_perl needs to be configured with the appropriate call-back hooks:
@@ -1580,6 +1585,8 @@
=head1 AUTHORS
+=over
+
=item *
Apache::AuthDBI by Edmund Mergl; now maintained and supported by the
modperl mailinglist, subscribe by sending mail to
@@ -1591,6 +1598,8 @@
=item *
DBI by Tim Bunce
+=back
+
=head1 COPYRIGHT
The Apache::AuthDBI module is free software; you can redistribute it and/or
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.08/lib/Apache/DBI.pm new/Apache-DBI-1.09/lib/Apache/DBI.pm
--- old/Apache-DBI-1.08/lib/Apache/DBI.pm 2010-02-03 23:58:39.000000000 +0100
+++ new/Apache-DBI-1.09/lib/Apache/DBI.pm 2010-11-12 04:17:24.000000000 +0100
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: DBI.pm 907307 2010-02-06 20:55:46Z phred $
package Apache::DBI;
use strict;
@@ -22,7 +22,7 @@
require_version DBI 1.00;
-$Apache::DBI::VERSION = '1.08';
+$Apache::DBI::VERSION = '1.09';
# 1: report about new connect
# 2: full debug output
@@ -39,6 +39,9 @@
# a negative value de-activates ping,
# default = 0
my %LastPingTime; # keeps track of last ping per data_source
+my $ChildExitHandlerInstalled; # set to true on installation of
+ # PerlChildExitHandler
+my $InChild;
# Check to see if we need to reset TaintIn and TaintOut
my $TaintInOut = ($DBI::VERSION >= 1.31) ? 1 : 0;
@@ -134,6 +137,23 @@
}
}
+ # this PerlChildExitHandler is supposed to disconnect all open
+ # connections to the database
+ if (!$ChildExitHandlerInstalled) {
+ $ChildExitHandlerInstalled = 1;
+ my $s;
+ if (MP2) {
+ $s = Apache2::ServerUtil->server;
+ }
+ elsif (Apache->can('push_handlers')) {
+ $s = 'Apache';
+ }
+ if ($s) {
+ debug(2, "$prefix push PerlChildExitHandler");
+ $s->push_handlers(PerlChildExitHandler => \&childexit);
+ }
+ }
+
# this PerlCleanupHandler is supposed to initiate a rollback after the
# script has finished if AutoCommit is off. however, cleanup can only
# be determined at end of handle life as begin_work may have been called
@@ -218,6 +238,22 @@
1;
}
+# The PerlChildExitHandler disconnects all open connections
+sub childexit {
+
+ my $prefix = "$$ Apache::DBI ";
+ debug(2, "$prefix PerlChildExitHandler");
+
+ foreach my $dbh (values(%Connected)) {
+ eval { DBI::db::disconnect($dbh) };
+ if ($@) {
+ debug(2, "$prefix DBI::db::disconnect failed - $@");
+ }
+ }
+
+ 1;
+}
+
# The PerlCleanupHandler is supposed to initiate a rollback after the script
# has finished if AutoCommit is off.
# Note: the PerlCleanupHandler runs after the response has been sent to
@@ -517,7 +553,7 @@
PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1
Apache::DBI v0.94 was the last version before dual mod_perl 2.x support was begun.
-It still recommened that you use the latest version of Apache::DBI because Apache::DBI
+It still recommended that you use the latest version of Apache::DBI because Apache::DBI
versions less than 1.00 are NO longer supported.
=head1 DO YOU NEED THIS MODULE?
@@ -537,6 +573,8 @@
=head1 AUTHORS
+=over
+
=item *
Philip M. Gollucci is currently packaging new releases.
@@ -553,6 +591,8 @@
=item *
DBI by Tim Bunce
+=back
+
=head1 COPYRIGHT
The Apache::DBI module is free software; you can redistribute it and/or
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org