Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=eaee50c624241a60a93f4e168c57c3712bbbf639

commit eaee50c624241a60a93f4e168c57c3712bbbf639
Author: crazy <[EMAIL PROTECTED]>
Date:   Fri Dec 21 20:55:18 2007 +0100

pysqlite2-2.4.0-2-i686
* release bump
* fixed broken utf8 handling
* closes #2640

diff --git a/source/devel-extra/pysqlite2/FrugalBuild 
b/source/devel-extra/pysqlite2/FrugalBuild
index d795314..e2dd54e 100644
--- a/source/devel-extra/pysqlite2/FrugalBuild
+++ b/source/devel-extra/pysqlite2/FrugalBuild
@@ -5,19 +5,22 @@
pkgname=pysqlite2
_F_archive_name=pysqlite
pkgver=2.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="Python DB-API 2.0 interface for SQLite."
url="http://initd.org/tracker/pysqlite";
depends=('python' 'sqlite3>=3.4.1')
groups=('devel-extra')
archs=('i686' 'x86_64')
up2date="lynx -dump 'http://initd.org/tracker/pysqlite/wiki/pysqlite' | grep 
-m1 tar.gz | Flasttar"
-source=(http://initd.org/pub/software/pysqlite/releases/2.4/$pkgver/pysqlite-$pkgver.tar.gz)
-sha1sums=('53720df970945e65466350e4bcd59b974e4e7500')
+source=(http://initd.org/pub/software/pysqlite/releases/2.4/$pkgver/pysqlite-$pkgver.tar.gz
 \
+       fix_utf8_handling.patch)
+sha1sums=('53720df970945e65466350e4bcd59b974e4e7500' \
+          'd4dcbdef115fb8f909c966327f42c2e7fa1e17d1')

build()
{
Fcd pysqlite-$pkgver
+       export CFLAGS="$GFLAGS -fno-strict-aliasing"
Fbuild

# Put documentation in the right place
diff --git a/source/devel-extra/pysqlite2/fix_utf8_handling.patch 
b/source/devel-extra/pysqlite2/fix_utf8_handling.patch
new file mode 100644
index 0000000..47f6112
--- /dev/null
+++ b/source/devel-extra/pysqlite2/fix_utf8_handling.patch
@@ -0,0 +1,12 @@
+diff -Naur pysqlite-2.4.0/src/connection.c 
pysqlite-2.4.0-fix-utf8/src/connection.c
+--- pysqlite-2.4.0/src/connection.c    2007-11-25 17:56:11.000000000 +0100
++++ pysqlite-2.4.0-fix-utf8/src/connection.c   2007-12-21 20:44:44.000000000 
+0100
+@@ -83,7 +83,7 @@
+     Py_INCREF(&PyUnicode_Type);
+     self->text_factory = (PyObject*)&PyUnicode_Type;
+
+-    if (PyString_Check(database)) {
++    if (PyString_Check(database) || PyUnicode_Check(database)) {
+         Py_BEGIN_ALLOW_THREADS
+         rc = sqlite3_open(PyString_AsString(database), &self->db);
+         Py_END_ALLOW_THREADS
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to