diff options
author | Anders Rune Jensen <arj@gentoo.org> | 2006-02-05 22:05:04 +0000 |
---|---|---|
committer | Anders Rune Jensen <arj@gentoo.org> | 2006-02-05 22:05:04 +0000 |
commit | 333dad4a265f831bea7742a3c2c49420afc12d42 (patch) | |
tree | b21cbe21b8206f71081b67fe91c735f19cc87c87 /dev-db/sqlite/files | |
parent | mozpango and mozfreetype cleanup (diff) | |
download | historical-333dad4a265f831bea7742a3c2c49420afc12d42.tar.gz historical-333dad4a265f831bea7742a3c2c49420afc12d42.tar.bz2 historical-333dad4a265f831bea7742a3c2c49420afc12d42.zip |
make test work
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'dev-db/sqlite/files')
-rw-r--r-- | dev-db/sqlite/files/digest-sqlite-2.8.16-r3 | 1 | ||||
-rw-r--r-- | dev-db/sqlite/files/digest-sqlite-3.3.3-r1 | 1 | ||||
-rw-r--r-- | dev-db/sqlite/files/sandbox-fix1.patch | 40 | ||||
-rw-r--r-- | dev-db/sqlite/files/sandbox-fix2.patch | 14 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-3-test-fix.patch | 30 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch | 22 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-64bit-test-fix.patch | 15 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite-64bit-test-fix2.patch | 13 | ||||
-rw-r--r-- | dev-db/sqlite/files/sqlite3-configure-debug.patch | 11 |
9 files changed, 147 insertions, 0 deletions
diff --git a/dev-db/sqlite/files/digest-sqlite-2.8.16-r3 b/dev-db/sqlite/files/digest-sqlite-2.8.16-r3 new file mode 100644 index 000000000000..f63e1aac46f1 --- /dev/null +++ b/dev-db/sqlite/files/digest-sqlite-2.8.16-r3 @@ -0,0 +1 @@ +MD5 9c79b461ff30240a6f9d70dd67f8faea sqlite-2.8.16.tar.gz 981834 diff --git a/dev-db/sqlite/files/digest-sqlite-3.3.3-r1 b/dev-db/sqlite/files/digest-sqlite-3.3.3-r1 new file mode 100644 index 000000000000..0db440ade028 --- /dev/null +++ b/dev-db/sqlite/files/digest-sqlite-3.3.3-r1 @@ -0,0 +1 @@ +MD5 eb5d9d7e7853b3af78e767d709b7fced sqlite-3.3.3.tar.gz 1642834 diff --git a/dev-db/sqlite/files/sandbox-fix1.patch b/dev-db/sqlite/files/sandbox-fix1.patch new file mode 100644 index 000000000000..38e4256f8012 --- /dev/null +++ b/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/dev-db/sqlite/files/sandbox-fix2.patch b/dev-db/sqlite/files/sandbox-fix2.patch new file mode 100644 index 000000000000..cf051c427d1f --- /dev/null +++ b/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/dev-db/sqlite/files/sqlite-3-test-fix.patch b/dev-db/sqlite/files/sqlite-3-test-fix.patch new file mode 100644 index 000000000000..2f07b2ab8bb5 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3-test-fix.patch @@ -0,0 +1,30 @@ +=== modified file 'Makefile.in' +--- Makefile.in ++++ Makefile.in +@@ -186,6 +186,7 @@ + $(TOP)/src/btree.c \ + $(TOP)/src/date.c \ + $(TOP)/src/func.c \ ++ $(TOP)/src/os.c \ + $(TOP)/src/os_unix.c \ + $(TOP)/src/os_win.c \ + $(TOP)/src/pager.c \ +@@ -237,7 +238,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) +@@ -333,7 +334,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/dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch b/dev-db/sqlite/files/sqlite-3.3.3-tcl-fix.patch new file mode 100644 index 000000000000..2d4356db741b --- /dev/null +++ b/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/dev-db/sqlite/files/sqlite-64bit-test-fix.patch b/dev-db/sqlite/files/sqlite-64bit-test-fix.patch new file mode 100644 index 000000000000..f121e5293849 --- /dev/null +++ b/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/dev-db/sqlite/files/sqlite-64bit-test-fix2.patch b/dev-db/sqlite/files/sqlite-64bit-test-fix2.patch new file mode 100644 index 000000000000..08d93f0bc7d0 --- /dev/null +++ b/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 { diff --git a/dev-db/sqlite/files/sqlite3-configure-debug.patch b/dev-db/sqlite/files/sqlite3-configure-debug.patch new file mode 100644 index 000000000000..3cbeca0691bb --- /dev/null +++ b/dev-db/sqlite/files/sqlite3-configure-debug.patch @@ -0,0 +1,11 @@ +--- configure~ 2006-01-23 19:06:53.000000000 +0100 ++++ configure 2006-02-05 20:51:01.000000000 +0100 +@@ -20440,7 +20440,7 @@ + use_debug=no + fi; + if test "${use_debug}" = "yes" ; then +- TARGET_DEBUG="" ++ TARGET_DEBUG="-DSQLITE_DEBUG" + else + TARGET_DEBUG="-DNDEBUG" + fi |