[packages/perl-DBI] - updated to 1.647
qboosh
qboosh at pld-linux.org
Fri Sep 12 18:34:08 CEST 2025
commit 2d23b8fbbb03e35a989537ab1183a9089b34ca82
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Sep 12 18:37:00 2025 +0200
- updated to 1.647
cve-2014-10401.patch | 42 ------------------------------------------
perl-DBI-changes.patch | 22 ----------------------
perl-DBI.spec | 28 +++++++++++-----------------
3 files changed, 11 insertions(+), 81 deletions(-)
---
diff --git a/perl-DBI.spec b/perl-DBI.spec
index 2ce2e8a..cf410a6 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -22,13 +22,12 @@ Summary(ru.UTF-8): Библиотека для доступа к базам да
Summary(sv.UTF-8): Ett databasåtkomst-API för Perl
Summary(zh_CN.UTF-8): Perl 的数据库访问 API。
Name: perl-DBI
-Version: 1.643
-Release: 8
+Version: 1.647
+Release: 1
License: GPL or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/DBI/%{pnam}-%{version}.tar.gz
-# Source0-md5: 352f80b1e23769c116082a90905d7398
-Patch0: cve-2014-10401.patch
+Source0: https://www.cpan.org/modules/by-module/DBI/%{pnam}-%{version}.tgz
+# Source0-md5: a2a6a0d583e920a6dbca138b1cab0900
URL: https://metacpan.org/dist/DBI
BuildRequires: perl-ExtUtils-MakeMaker >= 6.48
BuildRequires: perl-devel >= 1:5.8.1
@@ -36,12 +35,12 @@ BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.745
%if %{with tests}
BuildRequires: perl-Net-Daemon
-BuildRequires: perl-PlRPC >= 0.2001
+BuildRequires: perl-PlRPC >= 0.2020
BuildRequires: perl-Test-Simple >= 0.90
%endif
-Suggests: perl-Clone >= 0.34
-Suggests: perl-PlRPC >= 0.2001
-Suggests: perl-SQL-Statement >= 1.402
+Suggests: perl-Clone >= 0.47
+Suggests: perl-PlRPC >= 0.2020
+Suggests: perl-SQL-Statement >= 1.414
Obsoletes: perl-DBI-FAQ < 0.39
Conflicts: perl-DBD-Amazon < 0.10
Conflicts: perl-DBD-AnyData < 0.110
@@ -52,7 +51,7 @@ Conflicts: perl-DBD-RAM < 0.072
Conflicts: perl-SQL-Statement < 1.33
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _noautoreq_perl DBD::<foo> DBI DBI::.* DBD::File::.*
+%define _noautoreq_perl DBI DBI::.*
%description
The DBI is a database access module for the Perl programming language.
@@ -204,16 +203,13 @@ Apache'a. Można je analizować za pomocą dbiprof.
%prep
%setup -q -n %{pnam}-%{version}
-%patch -P0 -p1
-
-%{__mv} Changes lib/DBI/Changes.pod
-echo 'man DBI::Changes' > Changes
%{__mv} t/80proxy.t{,-needs-syslog}
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
+
%{__make} \
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
@@ -234,8 +230,6 @@ install -d $RPM_BUILD_ROOT{%{perl_vendorlib}/DBIx,%{perl_vendorarch}/{DBIx,auto/
# not our OS
%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/{DBI/W32ODBC,Win32/DBIODBC}.pm
%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{DBI::W32,Win32::DBI}ODBC.3pm
-# already in doc
-%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/DBI/Changes.pod
%if %{without coro}
%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm
@@ -246,7 +240,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Changes README.md
+%doc ChangeLog README.md
%attr(755,root,root) %{_bindir}/dbilogstrip
%attr(755,root,root) %{_bindir}/dbiprof
%attr(755,root,root) %{_bindir}/dbiproxy
diff --git a/cve-2014-10401.patch b/cve-2014-10401.patch
deleted file mode 100644
index 2773045..0000000
--- a/cve-2014-10401.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 19d0fb169eed475e1c053e99036b8668625cfa94 Mon Sep 17 00:00:00 2001
-From: Jens Rehsack <sno at netbsd.org>
-Date: Tue, 6 Oct 2020 10:22:17 +0200
-Subject: [PATCH] lib/DBD/File.pm: fix CVE-2014-10401
-
-Dig into the root cause of RT#99508 - which resulted in CVE-2014-10401 - and
-figure out that DBI->parse_dsn is the wrong helper to parse our attributes in
-DSN, since in DBD::dr::connect only the "dbname" remains from DSN which causes
-parse_dsn to bailout.
-
-Parsing on our own similar to parse_dsn shows the way out.
-
-Signed-off-by: Jens Rehsack <sno at netbsd.org>
----
- lib/DBD/File.pm | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/lib/DBD/File.pm b/lib/DBD/File.pm
-index fb14e9a..f55076f 100644
---- a/lib/DBD/File.pm
-+++ b/lib/DBD/File.pm
-@@ -109,7 +109,11 @@ sub connect
- # We do not (yet) care about conflicting attributes here
- # my $dbh = DBI->connect ("dbi:CSV:f_dir=test", undef, undef, { f_dir => "text" });
- # will test here that both test and text should exist
-- if (my $attr_hash = (DBI->parse_dsn ($dbname))[3]) {
-+ #
-+ # Parsing on our own similar to parse_dsn to find attributes in 'dbname' parameter.
-+ if ($dbname) {
-+ my @attrs = split /;/ => $dbname;
-+ my $attr_hash = { map { split /\s*=>?\s*|\s*,\s*/, $_} @attrs };
- if (defined $attr_hash->{f_dir} && ! -d $attr_hash->{f_dir}) {
- my $msg = "No such directory '$attr_hash->{f_dir}";
- $drh->set_err (2, $msg);
-@@ -120,7 +124,6 @@ sub connect
- if ($attr and defined $attr->{f_dir} && ! -d $attr->{f_dir}) {
- my $msg = "No such directory '$attr->{f_dir}";
- $drh->set_err (2, $msg);
-- $attr->{RaiseError} and croak $msg;
- return;
- }
-
diff --git a/perl-DBI-changes.patch b/perl-DBI-changes.patch
deleted file mode 100644
index 2e6e3e3..0000000
--- a/perl-DBI-changes.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- DBI-1.601/Makefile.PL~ 2007-09-28 17:11:08.000000000 +0100
-+++ DBI-1.601/Makefile.PL 2007-10-27 16:55:35.349648759 +0100
-@@ -309,19 +309,6 @@
- roadmap_pm = ' . File::Spec->catfile($self->{INST_LIB}, 'DBI', 'Roadmap.pm') . '
- '.q{
-
--config :: $(changes_pm) $(roadmap_pm)
-- $(NOECHO) $(NOOP)
--
--$(changes_pm): Changes
-- $(MKPATH) $(inst_libdbi)
-- $(RM_F) $(changes_pm)
-- $(CP) Changes $(changes_pm)
--
--$(roadmap_pm): Roadmap.pod
-- $(MKPATH) $(inst_libdbi)
-- $(RM_F) $(roadmap_pm)
-- $(CP) Roadmap.pod $(roadmap_pm)
--
- faq:
- : checkin any local changes not already checked in before overwriting
- svn commit --message "dbi.tiddlyspot.com FAQ update" dbi.tiddlyspot.com.html
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-DBI.git/commitdiff/2d23b8fbbb03e35a989537ab1183a9089b34ca82
More information about the pld-cvs-commit
mailing list