rpms/perl-DBD-SQLite/FC-5 DBD-SQLite-1.11-type-information-segv.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 perl-DBD-SQLite.spec, 1.8, 1.9 sources, 1.4, 1.5

Jose Pedro Oliveira (jpo) fedora-extras-commits at redhat.com
Wed Apr 12 14:55:21 UTC 2006


Author: jpo

Update of /cvs/extras/rpms/perl-DBD-SQLite/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13106

Modified Files:
	.cvsignore perl-DBD-SQLite.spec sources 
Added Files:
	DBD-SQLite-1.11-type-information-segv.patch 
Log Message:
Update to 1.12.

DBD-SQLite-1.11-type-information-segv.patch:

--- NEW FILE DBD-SQLite-1.11-type-information-segv.patch ---
diff -ur DBD-SQLite-1.11.orig/dbdimp.c DBD-SQLite-1.11/dbdimp.c
--- DBD-SQLite-1.11.orig/dbdimp.c	2005-12-02 17:28:53.000000000 +0000
+++ DBD-SQLite-1.11/dbdimp.c	2006-02-06 12:10:31.000000000 +0000
@@ -677,11 +677,15 @@
         retsv = sv_2mortal(newRV(sv_2mortal((SV*)av)));
         for (n = 0; n < i; n++) {
             const char *fieldtype = sqlite3_column_decltype(imp_sth->stmt, n);
-            int type = sqlite3_column_type(imp_sth->stmt, n);
+            /* int type = sqlite3_column_type(imp_sth->stmt, n); */
             /* warn("got type: %d = %s\n", type, fieldtype); */
-            type = type_to_odbc_type(type);
+            /* type = type_to_odbc_type(type); */
             /* av_store(av, n, newSViv(type)); */
-            av_store(av, n, newSVpv(fieldtype, 0));
+	    if (fieldtype == NULL) {
+		av_store(av, n, newSVpv("INTEGER", 0));
+	    } else {
+                av_store(av, n, newSVpv(fieldtype, 0));
+	    }
         }
     }
     else if (strEQ(key, "NULLABLE")) {


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-DBD-SQLite/FC-5/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore	2 Dec 2005 20:59:23 -0000	1.4
+++ .cvsignore	12 Apr 2006 14:55:21 -0000	1.5
@@ -1 +1 @@
-DBD-SQLite-1.11.tar.gz
+DBD-SQLite-1.12.tar.gz


Index: perl-DBD-SQLite.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-DBD-SQLite/FC-5/perl-DBD-SQLite.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- perl-DBD-SQLite.spec	9 Mar 2006 19:59:28 -0000	1.8
+++ perl-DBD-SQLite.spec	12 Apr 2006 14:55:21 -0000	1.9
@@ -1,12 +1,13 @@
 Name:           perl-DBD-SQLite
-Version:        1.11
-Release:        3%{?dist}
+Version:        1.12
+Release:        1%{?dist}
 Summary:        Self Contained RDBMS in a DBI Driver
 
 Group:          Development/Libraries
 License:        GPL or Artistic
 URL:            http://search.cpan.org/dist/DBD-SQLite/
 Source0:        http://www.cpan.org/authors/id/M/MS/MSERGEANT/DBD-SQLite-%{version}.tar.gz
+Patch0:         DBD-SQLite-1.11-type-information-segv.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  perl-DBI >= 1.03
@@ -30,10 +31,11 @@
 
 %prep
 %setup -q -n DBD-SQLite-%{version}
+%patch0 -p1
 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor USE_LOCAL_SQLITE=1
+CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
 
 
@@ -63,6 +65,13 @@
 
 
 %changelog
+* Tue Apr 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.12-1
+- Update to 1.12.
+
+* Wed Apr  5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-4
+- Patch to build with system sqlite 3.3.x (#183530).
+- Patch to avoid type information segv (#187873).
+
 * Thu Mar  9 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.11-3
 - DBD::SQLite fails to build with the current FC-5 sqlite version (3.3.3);
   see bugzilla entry #183530.


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-DBD-SQLite/FC-5/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	2 Dec 2005 20:59:23 -0000	1.4
+++ sources	12 Apr 2006 14:55:21 -0000	1.5
@@ -1 +1 @@
-7f22d8789245047343e114e655571022  DBD-SQLite-1.11.tar.gz
+40b1d208d70d5d8cab7723df96fc239c  DBD-SQLite-1.12.tar.gz




More information about the fedora-extras-commits mailing list