[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Make SQLite compatibility check less picky

From: Jonathan Nieder <jrnieder_at_gmail.com>
Date: Sat, 29 Oct 2011 07:28:07 -0500

Daniel Shahaf wrote:
> On Saturday, October 29, 2011 6:45 AM, "Jonathan Nieder" <jrnieder_at_gmail.com> wrote:

>> The actual ABI compatibility of sqlite3 doesn't depend on the patchlevel
>> (the x in 3.7.x),
>
> [citation needed]
>
> (I already searched sqlite.org for "ABI" and "binary compatibility" and so on; zero matches)

Sloppy me. In fact, if I had only looked at the changelog, I would
have found many cases of introduction of new ABI in 3.7.x versions.

In Debian, that is already handled by checking at build time which
version introduced each function that is used and setting appropriate
dependencies through the package manager, fortunately, so as a
distro-specific patch it was not doing much harm. A more useful and
less misleading patch would involve doing something like the
following. Sorry for the nonsense, and thanks very much for catching
it quickly.

Index: subversion/libsvn_subr/sqlite.c
===================================================================
--- subversion/libsvn_subr/sqlite.c (revision 1194866)
+++ subversion/libsvn_subr/sqlite.c (working copy)
@@ -606,6 +606,7 @@
 static svn_error_t *
 init_sqlite(void *baton, apr_pool_t *pool)
 {
+#if !defined(PACKAGE_MANAGER_CHECKED_THE_VERSION_NUMBER_ALREADY)
   if (sqlite3_libversion_number() < SQLITE_VERSION_NUMBER)
     {
       return svn_error_createf(
@@ -613,6 +614,7 @@
                     _("SQLite compiled for %s, but running with %s"),
                     SQLITE_VERSION, sqlite3_libversion());
     }
+#endif
 
 #if APR_HAS_THREADS
 
Received on 2011-10-29 14:28:43 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.