New suppress_gnutls_version_check patch.
authorAaron M. Ucko <ucko@debian.org>
Thu, 8 Dec 2016 02:34:44 +0000 (21:34 -0500)
committerAaron M. Ucko <ucko@debian.org>
Thu, 8 Dec 2016 02:46:20 +0000 (21:46 -0500)
Prevent bailing when the exact compile-time and runtime GNU TLS versions
differ; trust dpkg to disallow combinations that are actually incompatible.

debian/changelog
debian/patches/series
debian/patches/suppress_gnutls_version_check [new file with mode: 0644]

index 0ebec595fa3ae627661728e3e4e5e878faf48e04..4fc1253e42bd65f74798fdf30950e3e87fb0eb66 100644 (file)
@@ -1,8 +1,11 @@
 ncbi-blast+ (2.5.0-3) UNRELEASED; urgency=medium
 
   * NOT YET RELEASED.
+  * New suppress_gnutls_version_check patch to prevent bailing when the
+    exact compile-time and runtime GNU TLS versions differ; trust dpkg to
+    disallow combinations that are actually incompatible.
 
- -- Aaron M. Ucko <ucko@debian.org>  Wed, 07 Dec 2016 21:30:25 -0500
+ -- Aaron M. Ucko <ucko@debian.org>  Wed, 07 Dec 2016 21:34:43 -0500
 
 ncbi-blast+ (2.5.0-2) unstable; urgency=medium
 
index 37dc5489839611b6382af48364e39aa8733dfc89..df091ea29207e3f39dcd0b5007ebbb6071f7f7de 100644 (file)
@@ -9,3 +9,4 @@ fix_configure
 #fix_version_extraction
 #support_recent_boost
 support_x32
+suppress_gnutls_version_check
diff --git a/debian/patches/suppress_gnutls_version_check b/debian/patches/suppress_gnutls_version_check
new file mode 100644 (file)
index 0000000..7dca5fc
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/c++/src/connect/ncbi_gnutls.c
++++ b/c++/src/connect/ncbi_gnutls.c
+@@ -585,6 +585,7 @@ static EIO_Status s_GnuTlsInit(FSSLPull
+     assert(!s_GnuTlsCredAnon);
++#if 0
+     version = gnutls_check_version(0);
+     if (strcasecmp(GNUTLS_VERSION, version) != 0) {
+         CORE_LOGF(eLOG_Critical,
+@@ -592,6 +593,7 @@ static EIO_Status s_GnuTlsInit(FSSLPull
+                    GNUTLS_VERSION, version));
+         assert(0);
+     }
++#endif
+     val = ConnNetInfo_GetValue(0, "GNUTLS_LOGLEVEL", buf, sizeof(buf), 0);
+     CORE_LOCK_READ;