From: Aaron M. Ucko Date: Tue, 23 Jul 2024 03:22:25 +0000 (-0400) Subject: Move debian/patches/system_mbedtls_only up and extend it. X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~1^2~55 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=135c5cbd077bdb2ff35e87b2b502dc6305bfd1f1;p=ncbi-blast%2B.git Move debian/patches/system_mbedtls_only up and extend it. * debian/patches/series: Move system_mbedtls_only up in conjunction with incorporating part of an upstream patch needed by support_mbedtls3. * debian/patches/system_mbedtls: Extend to cover ncbi_mbedtls.c (as in https://github.com/ncbi/ncbi-cxx-toolkit-public/commit/f9c7297dd1) and Makefile.xxconnect2.lib. --- diff --git a/debian/changelog b/debian/changelog index 068baf86..e5cb7a79 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,17 @@ ncbi-blast+ (2.15.0+ds-1) UNRELEASED; urgency=medium * debian/control: Build against libnghttp2-dev, libsqlite3-dev, and libuv1-dev, newly needed. * debian/patches: Update for new release, mostly formally. + * debian/patches/series: Move system_mbedtls_only up in conjunction with + incorporating part of an upstream patch needed by support_mbedtls3. + * debian/patches/system_mbedtls: Extend to cover ncbi_mbedtls.c (as in + https://github.com/ncbi/ncbi-cxx-toolkit-public/commit/f9c7297dd1) + and Makefile.xxconnect2.lib. + * debian/rules: + - Extend generated-sources cleanup to objtools/eutils (not entirely + straightforward due to input format variation). + - Tune flags: Add --without-strip to make --with-symbols effective; + switch off warnings from __DATE__/__TIME__ usage, since + dpkg-buildpackage's SOURCE_DATE_EPOCH injection should suffice. -- Aaron M. Ucko Wed, 17 Jul 2024 21:39:28 -0400 diff --git a/debian/patches/series b/debian/patches/series index e618e55d..8c7d9488 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +system_mbedtls_only optin_usage_report enable_clean_after_failed_compile hurd_fixes @@ -11,7 +12,6 @@ support_x32 suppress_tls_version_checks optionally_keep_sequence fix_unit_tests -system_mbedtls_only reprobuild spelling support_gcc10 diff --git a/debian/patches/system_mbedtls_only b/debian/patches/system_mbedtls_only index b4617dc2..2f381dd5 100644 --- a/debian/patches/system_mbedtls_only +++ b/debian/patches/system_mbedtls_only @@ -34,3 +34,43 @@ Subject: Omit convenience mbed TLS copy #include +--- a/c++/src/connect/ncbi_mbedtls.c ++++ b/c++/src/connect/ncbi_mbedtls.c +@@ -43,7 +43,6 @@ + + #if defined(HAVE_LIBMBEDTLS) || defined(NCBI_CXX_TOOLKIT) + +-# ifdef HAVE_LIBMBEDTLS /* external */ + # include + # include + # include +@@ -53,17 +52,6 @@ + # include + # include + # include +-# else /* embedded */ +-# include "mbedtls/mbedtls/ctr_drbg.h" +-# include "mbedtls/mbedtls/debug.h" +-# include "mbedtls/mbedtls/entropy.h" +-# include "mbedtls/mbedtls/error.h" +-# include "mbedtls/mbedtls/pk.h" +-# include "mbedtls/mbedtls/net_sockets.h" +-# include "mbedtls/mbedtls/ssl.h" +-# include "mbedtls/mbedtls/threading.h" +-# include "mbedtls/mbedtls/version.h" +-# endif /*HAVE_LIBMBEDTLS*/ + + # if defined(ENOTSUP) + # define NCBI_NOTSUPPORTED ENOTSUP +--- a/c++/src/connect/Makefile.xxconnect2.lib ++++ b/c++/src/connect/Makefile.xxconnect2.lib +@@ -9,8 +9,7 @@ REQUIRES = LIBUV NGHTTP2 + LIB_OR_DLL = both + DLL_LIB = xconnect + +-CPPFLAGS = $(LIBUV_INCLUDE) $(NGHTTP2_INCLUDE) $(TLS_INCLUDE) \ +- -I$(srcdir)/mbedtls $(ORIG_CPPFLAGS) ++CPPFLAGS = $(LIBUV_INCLUDE) $(NGHTTP2_INCLUDE) $(TLS_INCLUDE) $(ORIG_CPPFLAGS) + + LIBS = $(XXCONNECT2_LIBS) $(ORIG_LIBS) +