summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorCHTEKK <CHTEKK@localhost>2007-03-10 18:23:14 +0000
committerCHTEKK <CHTEKK@localhost>2007-03-10 18:23:14 +0000
commitc4d13e57083fd4c6ea30adedcf2c7f42b5fcba0c (patch)
treeb453c5a78e3c92801e7ff8b06093747d7672b6aa /apps
parentAdd SQLite 3.3.13 for testing. (diff)
downloadchtekk-c4d13e57083fd4c6ea30adedcf2c7f42b5fcba0c.tar.gz
chtekk-c4d13e57083fd4c6ea30adedcf2c7f42b5fcba0c.tar.bz2
chtekk-c4d13e57083fd4c6ea30adedcf2c7f42b5fcba0c.zip
Add patches, update digest.
svn path=/; revision=21
Diffstat (limited to 'apps')
-rw-r--r--apps/dev-db/sqlite/Manifest36
-rw-r--r--apps/dev-db/sqlite/files/maketcllib.sh40
-rw-r--r--apps/dev-db/sqlite/files/sandbox-fix1.patch40
-rw-r--r--apps/dev-db/sqlite/files/sandbox-fix2.patch14
-rw-r--r--apps/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch12
-rw-r--r--apps/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch108
-rw-r--r--apps/dev-db/sqlite/files/sqlite-3-test-fix-3.3.4.patch20
-rw-r--r--apps/dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch22
-rw-r--r--apps/dev-db/sqlite/files/sqlite-64bit-test-fix.patch15
-rw-r--r--apps/dev-db/sqlite/files/sqlite-64bit-test-fix2.patch13
10 files changed, 320 insertions, 0 deletions
diff --git a/apps/dev-db/sqlite/Manifest b/apps/dev-db/sqlite/Manifest
index eff4c9c..b8427cc 100644
--- a/apps/dev-db/sqlite/Manifest
+++ b/apps/dev-db/sqlite/Manifest
@@ -1,3 +1,39 @@
+AUX maketcllib.sh 879 RMD160 6d9a0e79a79d5a2efd6074e6b439d4634600980e SHA1 d5bb6054d3c9a4132c92bd8c172a547bf2cc9d85 SHA256 e101ed11d908bfb7f57519a99674160b0273d6500d191f758f8a0d1e6ed78120
+MD5 d0fc4c53a61d386992d16680140548d0 files/maketcllib.sh 879
+RMD160 6d9a0e79a79d5a2efd6074e6b439d4634600980e files/maketcllib.sh 879
+SHA256 e101ed11d908bfb7f57519a99674160b0273d6500d191f758f8a0d1e6ed78120 files/maketcllib.sh 879
+AUX sandbox-fix1.patch 960 RMD160 751c8327b36ebdc60c4138a10e4c2e145e225455 SHA1 5998db43539b15e878e0ed806af2eeee072dc5fc SHA256 ab348a7803767d6aa0ee50eb68db75267667b336d4e995a1d378919703b1c448
+MD5 243b5d38d7a42f47aea10f9386b3227a files/sandbox-fix1.patch 960
+RMD160 751c8327b36ebdc60c4138a10e4c2e145e225455 files/sandbox-fix1.patch 960
+SHA256 ab348a7803767d6aa0ee50eb68db75267667b336d4e995a1d378919703b1c448 files/sandbox-fix1.patch 960
+AUX sandbox-fix2.patch 432 RMD160 778fe532561642dbae6d1a3f572f6703828af42b SHA1 1b0eee83c7d6d2e36ffdf0265c8bdd14d1574a61 SHA256 21552219c14daad788380ae7e1ba6c665bb1ef9eadb611f676bd6249e3bde02d
+MD5 c56bcbb1c837001efcb36185429ac673 files/sandbox-fix2.patch 432
+RMD160 778fe532561642dbae6d1a3f572f6703828af42b files/sandbox-fix2.patch 432
+SHA256 21552219c14daad788380ae7e1ba6c665bb1ef9eadb611f676bd6249e3bde02d files/sandbox-fix2.patch 432
+AUX sqlite-2.8.15-alignement-fix.patch 538 RMD160 12407bbe5f1bcae243d4247b43bf63ce0e8becea SHA1 d67a8bb2de26b1d6b7222175bd7f69d28afffb1e SHA256 f61f2f36fed61438d13dbb09902078ef11f0c3e8c8a119f84030689a2f2add8f
+MD5 217c8f27a3185a30858423e31e1aa4d9 files/sqlite-2.8.15-alignement-fix.patch 538
+RMD160 12407bbe5f1bcae243d4247b43bf63ce0e8becea files/sqlite-2.8.15-alignement-fix.patch 538
+SHA256 f61f2f36fed61438d13dbb09902078ef11f0c3e8c8a119f84030689a2f2add8f files/sqlite-2.8.15-alignement-fix.patch 538
+AUX sqlite-2.8.16-multilib.patch 4038 RMD160 0e074a3ebac7c188dbbf9b86be87a79e0c23390a SHA1 8d38fd5820fd1037b35194d33666be19dcce9e98 SHA256 4ccbef245ea50f317e34bad5ed07e6917fc08d718c6e57884255799980d6e765
+MD5 60fec205107aa53f0cf83d62c2300183 files/sqlite-2.8.16-multilib.patch 4038
+RMD160 0e074a3ebac7c188dbbf9b86be87a79e0c23390a files/sqlite-2.8.16-multilib.patch 4038
+SHA256 4ccbef245ea50f317e34bad5ed07e6917fc08d718c6e57884255799980d6e765 files/sqlite-2.8.16-multilib.patch 4038
+AUX sqlite-3-test-fix-3.3.4.patch 761 RMD160 5c1dc771d1dbe5dc0138145ddc169a8aa2305c3b SHA1 3e2c30622e387d002bfc5e49a49781ca9cc63c82 SHA256 f26cc9b97c6240f5e3f595b6be57309044be44e9f865f7596b4e85d77eef82d4
+MD5 47dbf777bcdf0cc3e5e97a60814b8469 files/sqlite-3-test-fix-3.3.4.patch 761
+RMD160 5c1dc771d1dbe5dc0138145ddc169a8aa2305c3b files/sqlite-3-test-fix-3.3.4.patch 761
+SHA256 f26cc9b97c6240f5e3f595b6be57309044be44e9f865f7596b4e85d77eef82d4 files/sqlite-3-test-fix-3.3.4.patch 761
+AUX sqlite-3.3.3-tcl-fix.patch 955 RMD160 74965942daef0fe667bd866c9ebf5b2ff999c1d9 SHA1 c15e2a86f476dcab72b8a38ff89d6535ec0bbfd0 SHA256 b36bbb78a7c35a0c457e4cbdbc1b925fc4ffa07e0c60eb2230f1aff874a45403
+MD5 798bdd07506f713c72a1578b14bbd36d files/sqlite-3.3.3-tcl-fix.patch 955
+RMD160 74965942daef0fe667bd866c9ebf5b2ff999c1d9 files/sqlite-3.3.3-tcl-fix.patch 955
+SHA256 b36bbb78a7c35a0c457e4cbdbc1b925fc4ffa07e0c60eb2230f1aff874a45403 files/sqlite-3.3.3-tcl-fix.patch 955
+AUX sqlite-64bit-test-fix.patch 604 RMD160 58b1df9e9f6593d41fa17541eb3b429c70da384a SHA1 f20d6c33a0a26829e2c3eb14b5c21c259166938d SHA256 5310357cd2658333a5a76860dc87a5f98977878ffae6a9e11c5e1ec4c73ccc15
+MD5 d35b21872efe5925225672ab7dcd7307 files/sqlite-64bit-test-fix.patch 604
+RMD160 58b1df9e9f6593d41fa17541eb3b429c70da384a files/sqlite-64bit-test-fix.patch 604
+SHA256 5310357cd2658333a5a76860dc87a5f98977878ffae6a9e11c5e1ec4c73ccc15 files/sqlite-64bit-test-fix.patch 604
+AUX sqlite-64bit-test-fix2.patch 438 RMD160 83904019c277fdf24c8299b0e6aba7184cd8b56f SHA1 15512752ca2eefeab7daad22a76d767692dac3b5 SHA256 87c47559f891736006050f0a3a4e4393084cf314a7bc44cc0e09f57efc0de23b
+MD5 619a169ced11eef8b06756518cfc8a4f files/sqlite-64bit-test-fix2.patch 438
+RMD160 83904019c277fdf24c8299b0e6aba7184cd8b56f files/sqlite-64bit-test-fix2.patch 438
+SHA256 87c47559f891736006050f0a3a4e4393084cf314a7bc44cc0e09f57efc0de23b files/sqlite-64bit-test-fix2.patch 438
DIST sqlite-3.3.13.tar.gz 2054971 RMD160 5ed0c1248db4681349ee89a851fe200ea855fbcd SHA1 405d3f042d64d9ecbb42fff6d4c0dae4a1eeeda2 SHA256 930144d92e91ef7b3a7edbbe768cc539db95c06cf05cb156350f8d35bb56625c
EBUILD sqlite-3.3.13.ebuild 2308 RMD160 99621866834736de6a078e25cb2d6efaf45404df SHA1 7ccc477c1438e6bf47c09ae7559961f4eec1e87b SHA256 09f405bbc4a92456453cc71fb12d38b4f5195f1161d8d9ab088f89c128311744
MD5 e08ba4d2014917fc142f626536654709 sqlite-3.3.13.ebuild 2308
diff --git a/apps/dev-db/sqlite/files/maketcllib.sh b/apps/dev-db/sqlite/files/maketcllib.sh
new file mode 100644
index 0000000..ad87ce1
--- /dev/null
+++ b/apps/dev-db/sqlite/files/maketcllib.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+#
+# This script was adapted from the one used by Hwaci to build it's
+# documentation and binaries for shipping to their website.
+#
+# Any similarity to the original has probably been trampled into
+# oblivion modifying everything for Gentoo.
+#
+echo "Starting TCL Build"
+
+# Set srcdir to the name of the directory that contains the publish.sh
+# script.
+#
+srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'`
+
+#
+# Build the tclsqlite.so shared library for import into tclsh or wish
+# under Linux
+#
+make target_source
+source /etc/make.conf
+cd tsrc
+rm shell.c
+
+OPTS='-DUSE_TCL_STUBS=1 -DNDEBUG=1'
+TCLSTUBLIB=${TCL_BUILD_STUB_LIB_PATH}
+
+export CFLAGS
+gcc -fPIC $CFLAGS $OPTS -I. -shared *.c $TCLSTUBLIB -o tclsqlite.so
+
+strip tclsqlite.so
+cp tclsqlite.so ..
+
+cd ..
+
+echo "pkg_mkIndex [pwd] tclsqlite.so" >> make_pkgIndex.tcl
+tclsh make_pkgIndex.tcl
+
+echo "Done TCL Build"
+
diff --git a/apps/dev-db/sqlite/files/sandbox-fix1.patch b/apps/dev-db/sqlite/files/sandbox-fix1.patch
new file mode 100644
index 0000000..38e4256
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sandbox-fix1.patch
@@ -0,0 +1,40 @@
+--- test/capi3.test~ 2006-01-30 23:35:44.000000000 +0100
++++ test/capi3.test 2006-02-05 19:41:12.000000000 +0100
+@@ -140,18 +140,6 @@
+ do_test capi3-3.2 {
+ sqlite3_close $db2
+ } {SQLITE_OK}
+-do_test capi3-3.3 {
+- catch {
+- set db2 [sqlite3_open /bogus/path/test.db {}]
+- }
+- sqlite3_errcode $db2
+-} {SQLITE_CANTOPEN}
+-do_test capi3-3.4 {
+- sqlite3_errmsg $db2
+-} {unable to open database file}
+-do_test capi3-3.5 {
+- sqlite3_close $db2
+-} {SQLITE_OK}
+ do_test capi3-3.6.1 {
+ sqlite3_close $db2
+ } {SQLITE_MISUSE}
+@@ -176,18 +164,6 @@
+ do_test capi3-4.2 {
+ sqlite3_close $db2
+ } {SQLITE_OK}
+-do_test capi3-4.3 {
+- catch {
+- set db2 [sqlite3_open16 [utf16 /bogus/path/test.db] {}]
+- }
+- sqlite3_errcode $db2
+-} {SQLITE_CANTOPEN}
+-do_test capi3-4.4 {
+- utf8 [sqlite3_errmsg16 $db2]
+-} {unable to open database file}
+-do_test capi3-4.5 {
+- sqlite3_close $db2
+-} {SQLITE_OK}
+ } ;# utf16
+
+ # This proc is used to test the following API calls:
diff --git a/apps/dev-db/sqlite/files/sandbox-fix2.patch b/apps/dev-db/sqlite/files/sandbox-fix2.patch
new file mode 100644
index 0000000..cf051c4
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sandbox-fix2.patch
@@ -0,0 +1,14 @@
+--- test/attach3.test~ 2005-03-29 05:11:00.000000000 +0200
++++ test/attach3.test 2006-02-05 19:30:45.000000000 +0100
+@@ -226,11 +226,6 @@
+ # Failure to attach leaves us in a workable state.
+ # Ticket #811
+ #
+-do_test attach3-11.0 {
+- catchsql {
+- ATTACH DATABASE '/nodir/nofile.x' AS notadb;
+- }
+-} {1 {unable to open database: /nodir/nofile.x}}
+ do_test attach3-11.1 {
+ catchsql {
+ ATTACH DATABASE ':memory:' AS notadb;
diff --git a/apps/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch b/apps/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch
new file mode 100644
index 0000000..7081ffd
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sqlite-2.8.15-alignement-fix.patch
@@ -0,0 +1,12 @@
+diff -uNr sqlite.orig/src/vdbeInt.h sqlite/src/vdbeInt.h
+--- sqlite.orig/src/vdbeInt.h 2004-10-16 01:33:02.779442000 +0200
++++ sqlite/src/vdbeInt.h 2004-10-16 01:35:01.139442000 +0200
+@@ -115,7 +115,7 @@
+ int flags; /* Some combination of MEM_Null, MEM_Str, MEM_Dyn, etc. */
+ double r; /* Real value */
+ char *z; /* String value */
+- char zShort[NBFS]; /* Space for short strings */
++ char zShort[NBFS] __attribute__ ((__aligned__(16))); /* Space for short strings */
+ };
+ typedef struct Mem Mem;
+
diff --git a/apps/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch b/apps/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch
new file mode 100644
index 0000000..3211187
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sqlite-2.8.16-multilib.patch
@@ -0,0 +1,108 @@
+diff -Naurp sqlite-2.8.16.orig/Makefile.in sqlite-2.8.16/Makefile.in
+--- sqlite-2.8.16.orig/Makefile.in 2005-02-14 00:22:04.000000000 +0000
++++ sqlite-2.8.16/Makefile.in 2005-02-17 18:22:50.174537727 +0000
+@@ -187,12 +187,12 @@ last_change: $(SRC)
+ | awk '{print $$5,$$6}' >last_change
+
+ libsqlite.la: $(LIBOBJ)
+- $(LTLINK) -o libsqlite.la $(LIBOBJ) ${RELEASE} -rpath @exec_prefix@/lib \
++ $(LTLINK) -o libsqlite.la $(LIBOBJ) ${RELEASE} -rpath @libdir@ \
+ -version-info "8:6:8"
+
+ libtclsqlite.la: tclsqlite.lo libsqlite.la
+ $(LTLINK) -o libtclsqlite.la tclsqlite.lo \
+- libsqlite.la $(LIBTCL) -rpath @exec_prefix@/lib/sqlite \
++ libsqlite.la $(LIBTCL) -rpath @libdir@/sqlite \
+ -version-info "8:6:8"
+
+ sqlite@TARGET_EXEEXT@: $(TOP)/src/shell.c libsqlite.la sqlite.h
+@@ -465,14 +465,14 @@ doc: $(DOC)
+ mv $(DOC) doc
+
+ install: sqlite libsqlite.la sqlite.h
+- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib
+- $(LTINSTALL) libsqlite.la $(DESTDIR)$(exec_prefix)/lib
++ $(INSTALL) -d $(DESTDIR)@libdir@
++ $(LTINSTALL) libsqlite.la $(DESTDIR)@libdir@
+ $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin
+ $(LTINSTALL) sqlite $(DESTDIR)$(exec_prefix)/bin
+ $(INSTALL) -d $(DESTDIR)$(prefix)/include
+ $(INSTALL) -m 0644 sqlite.h $(DESTDIR)$(prefix)/include
+- $(INSTALL) -d $(DESTDIR)$(exec_prefix)/lib/pkgconfig;
+- $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)$(exec_prefix)/lib/pkgconfig;
++ $(INSTALL) -d $(DESTDIR)@libdir@/pkgconfig;
++ $(INSTALL) -m 0644 sqlite.pc $(DESTDIR)@libdir@/pkgconfig;
+
+ clean:
+ rm -f *.lo *.la *.o sqlite@TARGET_EXEEXT@ libsqlite.la sqlite.h opcodes.*
+diff -Naurp sqlite-2.8.16.orig/Makefile.linux-gcc sqlite-2.8.16/Makefile.linux-gcc
+--- sqlite-2.8.16.orig/Makefile.linux-gcc 2005-02-14 00:22:04.000000000 +0000
++++ sqlite-2.8.16/Makefile.linux-gcc 2005-02-17 18:21:47.654969648 +0000
+@@ -14,7 +14,7 @@
+ #### The toplevel directory of the source tree. This is the directory
+ # that contains this "Makefile.in" and the "configure.in" script.
+ #
+-TOP = ../sqlite
++TOP = @@S@@
+
+ #### C Compiler and options for use in building executables that
+ # will run on the platform that is doing the build.
+@@ -38,8 +38,8 @@ THREADSAFE = -DTHREADSAFE=0
+ #### Specify any extra linker options needed to make the library
+ # thread safe
+ #
+-#THREADLIB = -lpthread
+-THREADLIB =
++THREADLIB = -lpthread
++#THREADLIB =
+
+ #### Leave MEMORY_DEBUG undefined for maximum speed. Use MEMORY_DEBUG=1
+ # to check for memory leaks. Use MEMORY_DEBUG=2 to print a log of all
+@@ -64,7 +64,7 @@ EXE =
+ # will run on the target platform. This is usually the same
+ # as BCC, unless you are cross-compiling.
+ #
+-TCC = gcc -O6
++TCC = @@CC@@ @@CFLAGS@@
+ #TCC = gcc -g -O0 -Wall
+ #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
+ #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
+@@ -72,23 +72,23 @@ TCC = gcc -O6
+
+ #### Tools used to build a static library.
+ #
+-AR = ar cr
++AR = @@AR@@ cr
+ #AR = /opt/mingw/bin/i386-mingw32-ar cr
+-RANLIB = ranlib
++RANLIB = @@RANLIB@@
+ #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
+
+ #### Extra compiler options needed for programs that use the TCL library.
+ #
+-#TCL_FLAGS =
++#TCL_FLAGS = @@TCL_FLAGS@@
+ #TCL_FLAGS = -DSTATIC_BUILD=1
+-TCL_FLAGS = -I/home/drh/tcltk/8.4linux
++#TCL_FLAGS = -I/home/drh/tcltk/8.4linux
+ #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1
+ #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
+
+ #### Linker options needed to link against the TCL library.
+ #
+-#LIBTCL = -ltcl -lm -ldl
+-LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
++LIBTCL = -ltcl -lm -ldl
++#LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
+ #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt
+ #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
+
+@@ -100,7 +100,7 @@ READLINE_FLAGS = -DHAVE_READLINE=1 -I/us
+ #### Linker options needed by programs using readline() must link against.
+ #
+ #LIBREADLINE =
+-LIBREADLINE = -static -lreadline -ltermcap
++LIBREADLINE = -static -lreadline -lncurses
+
+ #### Should the database engine assume text is coded as UTF-8 or iso8859?
+ #
diff --git a/apps/dev-db/sqlite/files/sqlite-3-test-fix-3.3.4.patch b/apps/dev-db/sqlite/files/sqlite-3-test-fix-3.3.4.patch
new file mode 100644
index 0000000..5429fbb
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sqlite-3-test-fix-3.3.4.patch
@@ -0,0 +1,20 @@
+--- Makefile.in.old 2006-02-13 15:20:42.000000000 +0100
++++ Makefile.in 2006-02-13 15:21:02.000000000 +0100
+@@ -242,7 +242,7 @@
+ # of the most recently modified source code file
+ #
+ last_change: $(SRC)
+- cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \
++ cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
+ | $(NAWK) '{print $$5,$$6}' >last_change
+
+ libsqlite3.la: $(LIBOBJ)
+@@ -338,7 +338,7 @@
+ $(LTCOMPILE) -c opcodes.c
+
+ opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
+- sort -n -b +2 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
++ sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
+
+ opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
+ cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
diff --git a/apps/dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch b/apps/dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch
new file mode 100644
index 0000000..2d4356d
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch
@@ -0,0 +1,22 @@
+--- tclinstaller.tcl.old 2006-02-05 21:44:20.000000000 +0100
++++ tclinstaller.tcl 2006-02-05 21:49:50.000000000 +0100
+@@ -7,14 +7,17 @@
+ set VERSION [lindex $argv 0]
+ set LIBFILE .libs/libtclsqlite3[info sharedlibextension]
+ if { ![info exists env(DESTDIR)] } { set env(DESTDIR) "" }
+-set LIBDIR $env(DESTDIR)[lindex $auto_path 0]
++if { ![info exists env(TCLLIBDIR)] } { set env(TCLLIBDIR) [lindex $auto_path 0] }
++set LIBDIR $env(DESTDIR)$env(TCLLIBDIR)
++set LIBDIR_INSTALL $env(TCLLIBDIR)
+ set LIBNAME [file tail $LIBFILE]
+ set LIB $LIBDIR/sqlite3/$LIBNAME
++set LIB_INSTALL $LIBDIR_INSTALL/sqlite3/$LIBNAME
+
+ file delete -force $LIBDIR/sqlite3
+ file mkdir $LIBDIR/sqlite3
+ set fd [open $LIBDIR/sqlite3/pkgIndex.tcl w]
+-puts $fd "package ifneeded sqlite3 $VERSION \[list load $LIB sqlite3\]"
++puts $fd "package ifneeded sqlite3 $VERSION \[list load $LIB_INSTALL sqlite3\]"
+ close $fd
+
+ # We cannot use [file copy] because that will just make a copy of
diff --git a/apps/dev-db/sqlite/files/sqlite-64bit-test-fix.patch b/apps/dev-db/sqlite/files/sqlite-64bit-test-fix.patch
new file mode 100644
index 0000000..f121e52
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sqlite-64bit-test-fix.patch
@@ -0,0 +1,15 @@
+--- test/printf.test~ 2005-12-19 18:31:01.000000000 +0100
++++ test/printf.test 2006-02-05 18:12:33.000000000 +0100
+@@ -130,12 +130,6 @@
+ sqlite3_mprintf_scaled {A double: %g} 1.0e307 100.0
+ } {A double: NaN}
+
+-do_test printf-8.1 {
+- sqlite3_mprintf_int {%u %u %u} 0x7fffffff 0x80000000 0xffffffff
+-} {2147483647 2147483648 4294967295}
+-do_test printf-8.2 {
+- sqlite3_mprintf_int {%lu %lu %lu} 0x7fffffff 0x80000000 0xffffffff
+-} {2147483647 2147483648 4294967295}
+ do_test printf-8.3 {
+ sqlite3_mprintf_int64 {%llu %llu %llu} 2147483647 2147483648 4294967296
+ } {2147483647 2147483648 4294967296}
diff --git a/apps/dev-db/sqlite/files/sqlite-64bit-test-fix2.patch b/apps/dev-db/sqlite/files/sqlite-64bit-test-fix2.patch
new file mode 100644
index 0000000..08d93f0
--- /dev/null
+++ b/apps/dev-db/sqlite/files/sqlite-64bit-test-fix2.patch
@@ -0,0 +1,13 @@
+--- test/types3.test~ 2006-01-21 15:32:32.000000000 +0100
++++ test/types3.test 2006-02-05 18:14:04.000000000 +0100
+@@ -30,10 +30,6 @@
+ set V [expr {1+2}]
+ concat [tcl_variable_type V] [execsql {SELECT typeof(:V)}]
+ } {int integer}
+-do_test types3-1.3 {
+- set V [expr {1+123456789012345}]
+- concat [tcl_variable_type V] [execsql {SELECT typeof(:V)}]
+-} {wideInt integer}
+
+ # A double variable comes in as REAL
+ do_test types3-1.4 {