pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/sqlite3 The new thread-safe feature doesn't ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5a69eac392fb
branches:  trunk
changeset: 535375:5a69eac392fb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 15 14:11:53 2007 +0000

description:
The new thread-safe feature doesn't really work: The py-sqlite2
self-test fails with a segmentation fault.

diffstat:

 databases/sqlite3/Makefile.common |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6f2cde7e8148 -r 5a69eac392fb databases/sqlite3/Makefile.common
--- a/databases/sqlite3/Makefile.common Thu Nov 15 12:58:49 2007 +0000
+++ b/databases/sqlite3/Makefile.common Thu Nov 15 14:11:53 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.16 2007/11/15 10:39:18 rillig Exp $
+# $NetBSD: Makefile.common,v 1.17 2007/11/15 14:11:53 rillig Exp $
 
 DISTNAME=      sqlite-3.5.2
 PKGNAME=       ${DISTNAME:S/-/3-/}
@@ -17,4 +17,11 @@
 USE_TOOLS+=            gmake
 USE_LIBTOOL=           yes
 
+# XXX: This option has been added for backwards compatibility after
+# updating to 3.5.2. Without it, py-sqlite2 crashes when trying to
+# access the mutex. The effect of this option is that multiple threads
+# may not use a _common_ database connection. They may access the
+# database through different database connections, though.
+CONFIGURE_ARGS+=       --disable-threadsafe
+
 PKGCONFIG_OVERRIDE=    sqlite3.pc.in



Home | Main Index | Thread Index | Old Index