File: ignore_patchlevel_check

package info (click to toggle)
libberkeleydb-perl 0.42-1~squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,324 kB
  • ctags: 314
  • sloc: perl: 10,257; ansic: 5,247; makefile: 50
file content (17 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: accept as valid different patchlevels
 Without this change the compiled BerkeleyDB.xs will depend on the exact
 patchlevel version of the libdb it was built with.
Bug-Debian: http://bugs.debian.org/290988
Forwarded: no

--- libberkeleydb-perl-0.42.orig/BerkeleyDB.xs
+++ libberkeleydb-perl-0.42/BerkeleyDB.xs
@@ -5476,7 +5476,7 @@ BOOT:
     (void)db_version(&Major, &Minor, &Patch) ;
     /* Check that the versions of db.h and libdb.a are the same */
     if (Major != DB_VERSION_MAJOR || Minor != DB_VERSION_MINOR
-		|| Patch != DB_VERSION_PATCH)
+		)
         croak("\nBerkeleyDB needs compatible versions of libdb & db.h\n\tyou have db.h version %d.%d.%d and libdb version %d.%d.%d\n",
                 DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
                 Major, Minor, Patch) ;