Fossil SCM

Since fossil now uses the function sqlite_strlike(), don't allow it to build/run with SQLite versions < 3.10.0 any more.

jan.nijtmans 2016-02-23 10:47 trunk
Commit 8ed01e8021d4154f57ba014e8cc6e6188df91a43
2 files changed +4 -4 +2 -2
+4 -4
--- auto.def
+++ auto.def
@@ -86,17 +86,17 @@
8686
# the code below will append -ldl to LIBS.
8787
#
8888
foreach extralibs {{} {-ldl}} {
8989
9090
# Locate the system SQLite by searching for sqlite3_open(). Then check
91
- # if sqlite3_strglob() can be found as well. If we can find open() but
92
- # not strglob(), then the system SQLite is too old to link against
91
+ # if sqlite3_strlike() can be found as well. If we can find open() but
92
+ # not strlike(), then the system SQLite is too old to link against
9393
# fossil.
9494
#
9595
if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
96
- if {![check-function-in-lib sqlite3_malloc64 sqlite3 $extralibs]} {
97
- user-error "system sqlite3 too old (require >= 3.8.7)"
96
+ if {![check-function-in-lib sqlite3_strlike sqlite3 $extralibs]} {
97
+ user-error "system sqlite3 too old (require >= 3.10.0)"
9898
}
9999
100100
# Success. Update symbols and return.
101101
#
102102
define USE_SYSTEM_SQLITE 1
103103
--- auto.def
+++ auto.def
@@ -86,17 +86,17 @@
86 # the code below will append -ldl to LIBS.
87 #
88 foreach extralibs {{} {-ldl}} {
89
90 # Locate the system SQLite by searching for sqlite3_open(). Then check
91 # if sqlite3_strglob() can be found as well. If we can find open() but
92 # not strglob(), then the system SQLite is too old to link against
93 # fossil.
94 #
95 if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
96 if {![check-function-in-lib sqlite3_malloc64 sqlite3 $extralibs]} {
97 user-error "system sqlite3 too old (require >= 3.8.7)"
98 }
99
100 # Success. Update symbols and return.
101 #
102 define USE_SYSTEM_SQLITE 1
103
--- auto.def
+++ auto.def
@@ -86,17 +86,17 @@
86 # the code below will append -ldl to LIBS.
87 #
88 foreach extralibs {{} {-ldl}} {
89
90 # Locate the system SQLite by searching for sqlite3_open(). Then check
91 # if sqlite3_strlike() can be found as well. If we can find open() but
92 # not strlike(), then the system SQLite is too old to link against
93 # fossil.
94 #
95 if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
96 if {![check-function-in-lib sqlite3_strlike sqlite3 $extralibs]} {
97 user-error "system sqlite3 too old (require >= 3.10.0)"
98 }
99
100 # Success. Update symbols and return.
101 #
102 define USE_SYSTEM_SQLITE 1
103
+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()<3008007 ){
598
- fossil_fatal("Unsuitable SQLite version %s, must be at least 3.8.7",
597
+ if( sqlite3_libversion_number()<3010000 ){
598
+ fossil_fatal("Unsuitable SQLite version %s, must be at least 3.10.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()<3008007 ){
598 fossil_fatal("Unsuitable SQLite version %s, must be at least 3.8.7",
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()<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

Keyboard Shortcuts

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