File: do_not_check_strict_versioning.patch

package info (click to toggle)
r-cran-rsqlite 1.1-2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,240 kB
  • ctags: 11,892
  • sloc: ansic: 118,836; cpp: 786; sh: 10; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 1,050 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Author: Don Armstrong <don@debian.org>
Last-Update: Fri, 25 Sep 2015 19:51:02 UTC
Bug-Debian: http://bugs.debian.org/800042
Forwarded: no-needed
Comment: We suppose that Upstream tightened dependency on purpose to reduce bug
 reports.
 ****************
 This patch was deactivated in RSQLite 1.1 since version checking is done differently now ... hopefully in the relaxed manner as needed
Description: Do not check unecessarily for strict version equivalence between
 compiled version and runtime version

--- a/src/driver.c
+++ b/src/driver.c
@@ -32,13 +32,6 @@ SQLiteDriver* rsqlite_driver() {
 void rsqlite_driver_init(SEXP records_, SEXP cache_) {
   if (dbManager) return; // Already allocated
 
-  const char* clientVersion = sqlite3_libversion();
-  if (strcmp(clientVersion, compiledVersion)) {
-    error("SQLite mismatch between compiled version %s and runtime version %s",
-        compiledVersion, clientVersion
-    );
-  }
-
   dbManager = malloc(sizeof(SQLiteDriver));
   if (!dbManager) {
     error("could not malloc the dbManger");