Fossil SCM

Since fossil now uses sqlite3_trace_v2(), it needs at least the 'pi' release of SQLite.

jan.nijtmans 2016-08-09 14:42 trunk
Commit 0dc21b70c6337e39328afb11a6b9f461c4868896
2 files changed +4 -4 +2 -2
+4 -4
--- auto.def
+++ auto.def
@@ -88,17 +88,17 @@
8888
# the code below will append -ldl to LIBS.
8989
#
9090
foreach extralibs {{} {-ldl}} {
9191
9292
# Locate the system SQLite by searching for sqlite3_open(). Then check
93
- # if sqlite3_strlike() can be found as well. If we can find open() but
94
- # not strlike(), then the system SQLite is too old to link against
93
+ # if sqlite3_trace_v2() can be found as well. If we can find open() but
94
+ # not trace_v2(), then the system SQLite is too old to link against
9595
# fossil.
9696
#
9797
if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
98
- if {![check-function-in-lib sqlite3_strlike sqlite3 $extralibs]} {
99
- user-error "system sqlite3 too old (require >= 3.10.0)"
98
+ if {![check-function-in-lib sqlite3_trace_v2 sqlite3 $extralibs]} {
99
+ user-error "system sqlite3 too old (require >= 3.14.0)"
100100
}
101101
102102
# Success. Update symbols and return.
103103
#
104104
define USE_SYSTEM_SQLITE 1
105105
--- auto.def
+++ auto.def
@@ -88,17 +88,17 @@
88 # the code below will append -ldl to LIBS.
89 #
90 foreach extralibs {{} {-ldl}} {
91
92 # Locate the system SQLite by searching for sqlite3_open(). Then check
93 # if sqlite3_strlike() can be found as well. If we can find open() but
94 # not strlike(), then the system SQLite is too old to link against
95 # fossil.
96 #
97 if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
98 if {![check-function-in-lib sqlite3_strlike sqlite3 $extralibs]} {
99 user-error "system sqlite3 too old (require >= 3.10.0)"
100 }
101
102 # Success. Update symbols and return.
103 #
104 define USE_SYSTEM_SQLITE 1
105
--- auto.def
+++ auto.def
@@ -88,17 +88,17 @@
88 # the code below will append -ldl to LIBS.
89 #
90 foreach extralibs {{} {-ldl}} {
91
92 # Locate the system SQLite by searching for sqlite3_open(). Then check
93 # if sqlite3_trace_v2() can be found as well. If we can find open() but
94 # not trace_v2(), then the system SQLite is too old to link against
95 # fossil.
96 #
97 if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
98 if {![check-function-in-lib sqlite3_trace_v2 sqlite3 $extralibs]} {
99 user-error "system sqlite3 too old (require >= 3.14.0)"
100 }
101
102 # Success. Update symbols and return.
103 #
104 define USE_SYSTEM_SQLITE 1
105
+2 -2
--- src/main.c
+++ src/main.c
@@ -592,12 +592,12 @@
592592
#endif
593593
{
594594
const char *zCmdName = "unknown";
595595
int idx;
596596
int rc;
597
- if( sqlite3_libversion_number()<3010000 ){
598
- fossil_fatal("Unsuitable SQLite version %s, must be at least 3.10.0",
597
+ if( sqlite3_libversion_number()<3014000 ){
598
+ fossil_fatal("Unsuitable SQLite version %s, must be at least 3.14.0",
599599
sqlite3_libversion());
600600
}
601601
sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
602602
sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0);
603603
memset(&g, 0, sizeof(g));
604604
--- src/main.c
+++ src/main.c
@@ -592,12 +592,12 @@
592 #endif
593 {
594 const char *zCmdName = "unknown";
595 int idx;
596 int rc;
597 if( sqlite3_libversion_number()<3010000 ){
598 fossil_fatal("Unsuitable SQLite version %s, must be at least 3.10.0",
599 sqlite3_libversion());
600 }
601 sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
602 sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0);
603 memset(&g, 0, sizeof(g));
604
--- src/main.c
+++ src/main.c
@@ -592,12 +592,12 @@
592 #endif
593 {
594 const char *zCmdName = "unknown";
595 int idx;
596 int rc;
597 if( sqlite3_libversion_number()<3014000 ){
598 fossil_fatal("Unsuitable SQLite version %s, must be at least 3.14.0",
599 sqlite3_libversion());
600 }
601 sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
602 sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0);
603 memset(&g, 0, sizeof(g));
604

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button