f38
Jitka Plesnikova 5 years ago
parent aa5118af39
commit 74645a561d

1
.gitignore vendored

@ -17,3 +17,4 @@ DBD-SQLite-1.29.tar.gz
/DBD-SQLite-1.60.tar.gz
/DBD-SQLite-1.62.tar.gz
/DBD-SQLite-1.64.tar.gz
/DBD-SQLite-1.66.tar.gz

@ -1,30 +0,0 @@
From 0c92dbae924a230f720891cc04a436fa6ee63490 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 29 Jul 2019 16:59:44 +0200
Subject: [PATCH] Initialize filename variable in sqlite_db_filename()
If sqlite library is too old, filename variable in
sqlite_db_filename() function was never defined. In spite of that the
variable was used in later condition.
This patch fixes it.
---
dbdimp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dbdimp.c b/dbdimp.c
index 02f77a1..f5978cd 100644
--- a/dbdimp.c
+++ b/dbdimp.c
@@ -1623,7 +1623,7 @@ SV *
sqlite_db_filename(pTHX_ SV *dbh)
{
D_imp_dbh(dbh);
- const char *filename;
+ const char *filename = NULL;
if (!imp_dbh->db) {
return &PL_sv_undef;
--
2.21.0

@ -2,8 +2,8 @@
%bcond_without perl_DBD_SQLite_enables_optional_test
Name: perl-DBD-SQLite
Version: 1.64
Release: 6%{?dist}
Version: 1.66
Release: 1%{?dist}
Summary: SQLite DBI Driver
# lib/DBD/SQLite.pm: GPL+ or Artistic
# LICENSE: GPL+ or Artistic
@ -20,8 +20,6 @@ Patch0: perl-DBD-SQLite-bz543982.patch
Patch1: DBD-SQLite-1.62-Remove-bundled-source-extentions.patch
# Adapt tests to unbundled Test::NoWarnings
Patch2: DBD-SQLite-1.60-Unbundle-Test-NoWarnings.patch
# Initialize filename variable in sqlite_db_filename()
Patch3: DBD-SQLite-1.64-Initialize-filename-variable-in-sqlite_db_filename.patch
# if sqlite >= 3.6.0 then
# perl-DBD-SQLite uses the external library
# else
@ -57,6 +55,7 @@ BuildRequires: sed
BuildRequires: perl(bytes)
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec::Functions)
@ -88,7 +87,6 @@ libraries.
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# Remove bundled sqlite libraries (BZ#1059154)
# System libraries will be used
rm sqlite*
@ -117,6 +115,9 @@ make test
%{_mandir}/man3/*.3pm*
%changelog
* Mon Aug 31 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.66-1
- 1.66 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.64-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

@ -1 +1 @@
SHA512 (DBD-SQLite-1.64.tar.gz) = 36a227193b4544c7cec24eec50ee51f46c00a2dad99ab7b8899b0417ea928a1e223f4052fb75f2d641cbfa4408192492ba8943fdb92520dc9888014467f503a4
SHA512 (DBD-SQLite-1.66.tar.gz) = 4d58003e69f29b18d01ed0b5853cdac40ec9ce5d4c75bc8a3743937897a38290a99be30b1b9fae593b0d8d51d05b7e2438d29f7a7c1c755b66de51826397aef9

Loading…
Cancel
Save