> You probably need to tighten your libsqlite3-dev dependency. Maybe it
> requires 3.7.5.

Fossil ships with its own copy of sqlite, which I remove in favour of
the debian package.  For a while I used an aggressive version
dependency, but I recently switched to guarding the snippets of code
in the fossil sources that use advanced sqlite functionality.  (Which
is used in all cases for extra safety or metering, and not essential
functionality.)

This includes in particular these added #if guards:

    $ grep -n -B1 -A4 stmt_readonly src/*.c
    src/report.c-247-#if SQLITE_VERSION_NUMBER >= 3007004
    src/report.c:248:  if( !sqlite3_stmt_readonly(pStmt) ){
    src/report.c-249-    zErr = mprintf("SQL must not modify the database");
    src/report.c-250-  }
    src/report.c-251-#endif
    src/report.c-252-  if( pStmt ){
    --
    src/report.c-857-#if SQLITE_VERSION_NUMBER >= 3007004
    src/report.c:858:  if( !sqlite3_stmt_readonly(pStmt) ){
    src/report.c-859-    sqlite3_finalize(pStmt);
    src/report.c-860-    return SQLITE_ERROR;
    src/report.c-861-  }
    src/report.c-862-#endif

So apparently either the version there, taken from the sqlite
changelog, is wrong, or I wrote the guard incorrectly.  Could I ask
what version of libsqlite3-dev you had installed?  I ask because this
works for me using libsqlite3-dev 3.7.3-1.

                                        --Barak.
--
Barak A. Pearlmutter
 Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
 http://www.bcl.hamilton.ie/~barak/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to