jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / uwimap / patches / 2011_disable_version_check.patch
blob4b148593ce335a8831ba4735bb0ae49a159592d4
1 Description: Disable version check
2 The version check in mail_versioncheck(), called via #include "linkage.c",
3 Prevents new versions of the shared library to be used without rebuilding
4 all applications, even if there wouldn't be any other problems doing so.
5 Package dependencies, SONAME, and Debian's build system make sure that
6 a compatible version will be loaded; therefore we remove this check.
7 Author: Magnus Holmgren <holmgren@debian.org>
8 Bug-Debian: http://bugs.debian.org/682256
10 --- a/src/c-client/mail.c
11 +++ b/src/c-client/mail.c
12 @@ -293,13 +293,8 @@ static void mail_string_setpos (STRING *
14 void mail_versioncheck (char *version)
16 - /* attempt to protect again wrong .h */
17 - if (strcmp (version,mailcclientversion)) {
18 - char tmp[MAILTMPLEN];
19 - sprintf (tmp,"c-client library version skew, app=%.100s library=%.100s",
20 - version,mailcclientversion);
21 - fatal (tmp);
22 - }
23 + /* Skip unnecessarily strict version check. */
24 + ;