Fossil SCM
Since fossil now uses sqlite3_trace_v2(), it needs at least the 'pi' release of SQLite.
Commit
0dc21b70c6337e39328afb11a6b9f461c4868896
Parent
60d5fee782d03ae…
2 files changed
+4
-4
+2
-2
M
auto.def
+4
-4
| --- auto.def | ||
| +++ auto.def | ||
| @@ -88,17 +88,17 @@ | ||
| 88 | 88 | # the code below will append -ldl to LIBS. |
| 89 | 89 | # |
| 90 | 90 | foreach extralibs {{} {-ldl}} { |
| 91 | 91 | |
| 92 | 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 | |
| 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 | 95 | # fossil. |
| 96 | 96 | # |
| 97 | 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)" | |
| 98 | + if {![check-function-in-lib sqlite3_trace_v2 sqlite3 $extralibs]} { | |
| 99 | + user-error "system sqlite3 too old (require >= 3.14.0)" | |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | # Success. Update symbols and return. |
| 103 | 103 | # |
| 104 | 104 | define USE_SYSTEM_SQLITE 1 |
| 105 | 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_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 @@ | ||
| 592 | 592 | #endif |
| 593 | 593 | { |
| 594 | 594 | const char *zCmdName = "unknown"; |
| 595 | 595 | int idx; |
| 596 | 596 | 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", | |
| 599 | 599 | sqlite3_libversion()); |
| 600 | 600 | } |
| 601 | 601 | sqlite3_config(SQLITE_CONFIG_MULTITHREAD); |
| 602 | 602 | sqlite3_config(SQLITE_CONFIG_LOG, fossil_sqlite_log, 0); |
| 603 | 603 | memset(&g, 0, sizeof(g)); |
| 604 | 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()<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 |