Hello community, here is the log from the commit of package perl-Apache-DBI for openSUSE:Factory checked in at 2015-04-18 10:39:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Apache-DBI (Old) and /work/SRC/openSUSE:Factory/.perl-Apache-DBI.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Apache-DBI" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Apache-DBI/perl-Apache-DBI.changes 2011-11-14 13:18:13.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Apache-DBI.new/perl-Apache-DBI.changes 2015-04-18 10:39:49.000000000 +0200 @@ -1,0 +2,12 @@ +Tue Apr 14 09:20:21 UTC 2015 - co...@suse.com + +- updated to 1.12 + see /usr/share/doc/packages/perl-Apache-DBI/Changes + + 1.12 June 12, 2013 + + - Fix detection of server startup in mod_perl 2, to avoid caching + connections in the parent process. Perrin Harkins + <per...@elem.com> + +------------------------------------------------------------------- Old: ---- Apache-DBI-1.11.tar.gz New: ---- Apache-DBI-1.12.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Apache-DBI.spec ++++++ --- /var/tmp/diff_new_pack.3XGl8M/_old 2015-04-18 10:39:49.000000000 +0200 +++ /var/tmp/diff_new_pack.3XGl8M/_new 2015-04-18 10:39:49.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Apache-DBI # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,68 +15,67 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Apache-DBI -BuildRequires: apache2-devel apache2-mod_perl libapr-util1-devel pcre-devel perl-DBI -BuildRequires: perl-macros -Version: 1.11 -Release: 1 -Provides: ApacheDBI perl-ApacheDBI -Obsoletes: perl-ApacheDBI -Requires: apache2 -Requires: apache2-mod_perl -Conflicts: perlmod -AutoReqProv: on +Version: 1.12 +Release: 0 +%define cpan_name Apache-DBI +Summary: Initiate a persistent database connection +License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -License: Artistic-1.0 -Url: http://cpan.org/modules/by-module/Apache/ -Summary: Apache authentication via perl DBI -Source: Apache-DBI-%{version}.tar.gz -Patch: Apache-DBI-%{version}-path.patch +Url: http://search.cpan.org/dist/Apache-DBI/ +Source0: http://www.cpan.org/authors/id/P/PH/PHRED/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +Patch0: Apache-DBI-1.11-path.patch +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(DBI) >= 1 +BuildRequires: perl(Digest::SHA1) >= 2.01 +Requires: perl(DBI) >= 1 +Requires: perl(Digest::SHA1) >= 2.01 %{perl_requires} %description -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 authentication and authorization as well as support for -persistent database connections via Perl's Database Independent -Interface (DBI). +This module initiates a persistent database connection. +The database access uses Perl's DBI. For supported DBI drivers see: + http://dbi.perl.org/ -Authors: --------- - Tim Bunce <dbi-us...@isc.org> +When loading the DBI module (do not confuse this with the Apache::DBI +module) it checks if the environment variable 'MOD_PERL' has been set and +if the module Apache::DBI has been loaded. In this case every connect +request will be forwarded to the Apache::DBI module. This checks if a +database handle from a previous connect request is already stored and if +this handle is still valid using the ping method. If these two conditions +are fulfilled it just returns the database handle. The parameters defining +the connection have to be exactly the same, including the connect +attributes! If there is no appropriate database handle or if the ping +method fails, a new connection is established and the handle is stored for +later re-use. There is no need to remove the disconnect statements from +your code. They won't do anything because the Apache::DBI module overloads +the disconnect method. %prep -%setup -q -n Apache-DBI-%{version} -%patch +%setup -q -n %{cpan_name}-%{version} +%patch0 %build -export APACHE=`which httpd` -perl Makefile.PL -make %{?_smp_mflags} all +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -export APACHE=`which httpd` %perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-, root, root) -%doc Changes README traces.txt eg -%doc %{_mandir}/man?/* -%{perl_vendorlib}/Apache -%dir %{perl_vendorarch}/auto/Apache -%{perl_vendorarch}/auto/Apache/DBI +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README TODO traces.txt %changelog ++++++ Apache-DBI-1.11.tar.gz -> Apache-DBI-1.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.11/Changes new/Apache-DBI-1.12/Changes --- old/Apache-DBI-1.11/Changes 2011-10-07 22:32:36.000000000 +0200 +++ new/Apache-DBI-1.12/Changes 2013-06-12 09:24:48.000000000 +0200 @@ -1,5 +1,11 @@ Revision history for ApacheDBI. +1.12 June 12, 2013 + + - Fix detection of server startup in mod_perl 2, to avoid caching + connections in the parent process. Perrin Harkins + <per...@elem.com> + 1.11 October 7, 2011 - RT 69087, Perl 5.14 'Using qw(...) as parentheses' fix diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.11/MANIFEST new/Apache-DBI-1.12/MANIFEST --- old/Apache-DBI-1.11/MANIFEST 2011-10-07 22:33:19.000000000 +0200 +++ new/Apache-DBI-1.12/MANIFEST 2013-06-12 09:27:04.000000000 +0200 @@ -8,4 +8,5 @@ lib/Apache/DBI.pm t/10mysql.t traces.txt -META.yml Module meta-data (added by MakeMaker) +META.yml Module YAML meta-data (added by MakeMaker) +META.json Module JSON meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.11/META.json new/Apache-DBI-1.12/META.json --- old/Apache-DBI-1.11/META.json 1970-01-01 01:00:00.000000000 +0100 +++ new/Apache-DBI-1.12/META.json 2013-06-12 09:27:04.000000000 +0200 @@ -0,0 +1,44 @@ +{ + "abstract" : "unknown", + "author" : [ + "unknown" + ], + "dynamic_config" : 1, + "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630", + "license" : [ + "unknown" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Apache-DBI", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : { + "DBI" : "1", + "Digest::MD5" : "2.2", + "Digest::SHA1" : "2.01", + "Test::More" : "0" + } + } + }, + "release_status" : "stable", + "version" : "1.12" +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.11/META.yml new/Apache-DBI-1.12/META.yml --- old/Apache-DBI-1.11/META.yml 2011-10-07 22:33:19.000000000 +0200 +++ new/Apache-DBI-1.12/META.yml 2013-06-12 09:27:04.000000000 +0200 @@ -1,24 +1,25 @@ ---- #YAML:1.0 -name: Apache-DBI -version: 1.11 -abstract: ~ -author: [] -license: unknown -distribution_type: module -configure_requires: - ExtUtils::MakeMaker: 0 +--- +abstract: unknown +author: + - unknown build_requires: - ExtUtils::MakeMaker: 0 -requires: - DBI: 1 - Digest::MD5: 2.2 - Digest::SHA1: 2.01 - Test::More: 0 -no_index: - directory: - - t - - inc -generated_by: ExtUtils::MakeMaker version 6.57_05 + ExtUtils::MakeMaker: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 1 +generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630' +license: unknown meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: Apache-DBI +no_index: + directory: + - t + - inc +requires: + DBI: 1 + Digest::MD5: 2.2 + Digest::SHA1: 2.01 + Test::More: 0 +version: 1.12 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.11/README new/Apache-DBI-1.12/README --- old/Apache-DBI-1.11/README 2011-06-27 19:25:32.000000000 +0200 +++ new/Apache-DBI-1.12/README 2013-06-12 09:25:57.000000000 +0200 @@ -1,7 +1,7 @@ DESCRIPTION: ------------ -This is version 1.11-dev of Apache::AuthDBI and Apache::DBI. +This is version 1.12 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.11/lib/Apache/AuthDBI.pm new/Apache-DBI-1.12/lib/Apache/AuthDBI.pm --- old/Apache-DBI-1.11/lib/Apache/AuthDBI.pm 2011-10-07 22:32:54.000000000 +0200 +++ new/Apache-DBI-1.12/lib/Apache/AuthDBI.pm 2013-06-12 09:26:54.000000000 +0200 @@ -1,7 +1,7 @@ -# $Id: AuthDBI.pm 1140245 2011-06-27 17:25:53Z phred $ +# $Id: AuthDBI.pm 1492087 2013-06-12 07:26:54Z phred $ package Apache::AuthDBI; -$Apache::AuthDBI::VERSION = '1.11'; +$Apache::AuthDBI::VERSION = '1.12'; # 1: report about cache miss # 2: full debug output diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Apache-DBI-1.11/lib/Apache/DBI.pm new/Apache-DBI-1.12/lib/Apache/DBI.pm --- old/Apache-DBI-1.11/lib/Apache/DBI.pm 2011-10-07 22:32:45.000000000 +0200 +++ new/Apache-DBI-1.12/lib/Apache/DBI.pm 2013-06-12 09:22:49.000000000 +0200 @@ -1,4 +1,4 @@ -# $Id: DBI.pm 1140245 2011-06-27 17:25:53Z phred $ +# $Id: DBI.pm 1490648 2013-06-07 13:46:30Z perrin $ package Apache::DBI; use strict; @@ -11,6 +11,7 @@ require Apache2::Module; require Apache2::RequestUtil; require Apache2::ServerUtil; + require ModPerl::Util; } elsif (defined $modperl::VERSION && $modperl::VERSION > 1 && $modperl::VERSION < 1.99) { @@ -22,7 +23,7 @@ require_version DBI 1.00; -$Apache::DBI::VERSION = '1.11'; +$Apache::DBI::VERSION = '1.12'; # 1: report about new connect # 2: full debug output @@ -124,8 +125,10 @@ # unpredictable query results. # See: http://perl.apache.org/docs/2.0/user/porting/compat.html#C__Apache__Server__Starting__and_C__Apache__Server__ReStarting_ if (MP2) { - require Apache2::ServerUtil; - if (Apache2::ServerUtil::restart_count() == 1) { + require ModPerl::Util; + my $callback = ModPerl::Util::current_callback(); + if ($callback !~ m/Handler$/ or + $callback =~ m/(PostConfig|OpenLogs)/) { debug(2, "$prefix skipping connection during server startup, read the docu !!"); return $drh->connect(@args); } ++++++ cpanspec.yml ++++++ --- description_paragraphs: 4 #no_testing: broken upstream #sources: # - source1 # - source2 patches: Apache-DBI-1.11-path.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: - #./Build build flags=%{?_smp_mflags} --myflag