diff options
Diffstat (limited to 'recipes-support/openldap/openldap-2.4.39/no-bdb-ABI-second-guessing.patch')
| -rw-r--r-- | recipes-support/openldap/openldap-2.4.39/no-bdb-ABI-second-guessing.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-support/openldap/openldap-2.4.39/no-bdb-ABI-second-guessing.patch b/recipes-support/openldap/openldap-2.4.39/no-bdb-ABI-second-guessing.patch new file mode 100644 index 0000000..db76aa7 --- /dev/null +++ b/recipes-support/openldap/openldap-2.4.39/no-bdb-ABI-second-guessing.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | Author: Steve Langasek <vorlon@debian.org> | ||
| 2 | Description: don't second-guess BDB ABI | ||
| 3 | OpenLDAP upstream conservatively assumes that any change to the version | ||
| 4 | number of libdb can result in an API-breaking change that could impact | ||
| 5 | the database. In Debian, we know that such changes require bumping the | ||
| 6 | library soname and changing the package name, and demand such rigor from | ||
| 7 | our package maintainers even when upstreams don't deliver; so any such | ||
| 8 | check in the source code works against the packaging system by forcing | ||
| 9 | database upgrades when we know none are required. Disable this check | ||
| 10 | so we rely on the packaging system to do its job. | ||
| 11 | Bug-Debian: http://bugs.debian.org/651333 | ||
| 12 | Forwarded: not-needed | ||
| 13 | |||
| 14 | --- a/servers/slapd/back-bdb/init.c | ||
| 15 | +++ b/servers/slapd/back-bdb/init.c | ||
| 16 | @@ -762,7 +762,7 @@ bdb_back_initialize( | ||
| 17 | bi->bi_controls = controls; | ||
| 18 | |||
| 19 | { /* version check */ | ||
| 20 | - int major, minor, patch, ver; | ||
| 21 | + int major, minor, patch; | ||
| 22 | char *version = db_version( &major, &minor, &patch ); | ||
| 23 | #ifdef HAVE_EBCDIC | ||
| 24 | char v2[1024]; | ||
| 25 | @@ -776,17 +776,6 @@ bdb_back_initialize( | ||
| 26 | version = v2; | ||
| 27 | #endif | ||
| 28 | |||
| 29 | - ver = (major << 24) | (minor << 16) | patch; | ||
| 30 | - if( ver != DB_VERSION_FULL ) { | ||
| 31 | - /* fail if a versions don't match */ | ||
| 32 | - Debug( LDAP_DEBUG_ANY, | ||
| 33 | - LDAP_XSTRING(bdb_back_initialize) ": " | ||
| 34 | - "BDB library version mismatch:" | ||
| 35 | - " expected " DB_VERSION_STRING "," | ||
| 36 | - " got %s\n", version, 0, 0 ); | ||
| 37 | - return -1; | ||
| 38 | - } | ||
| 39 | - | ||
| 40 | Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_back_initialize) | ||
| 41 | ": %s\n", version, 0, 0 ); | ||
| 42 | } | ||
