From 95db99688d3b2d87cd35eba1d81802d476ac2f55 Mon Sep 17 00:00:00 2001 From: "Aaron M. Ucko" Date: Sat, 3 May 2025 22:20:25 -0400 Subject: [PATCH] Build against VDB where available (amd64/arm64/x32) (#1100037). * debian/control: Build-depend on libncbi-vdb-dev where available. * debian/rules: Build against (packaged!) VDB where available, using logic cribbed from ncbi-igblast. --- debian/changelog | 6 +++++- debian/control | 1 + debian/rules | 12 +++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index cf89c7de..16a99793 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,15 @@ ncbi-blast+ (2.16.0+ds-7) UNRELEASED; urgency=medium * NOT RELEASED YET. + * debian/control: Build-depend on libncbi-vdb-dev where available + (amd64, arm64, and x32). * debian/patches/fix_bm_for_gcc15 (new): Cherry-pick a BitMagic fix needed for modern compilers, adjusting the path appropriately.' (Closes: #1097434.) + * debian/rules: Build against (packaged!) VDB where available, using + logic cribbed from ncbi-igblast. (Closes: #1100037.) - -- Aaron M. Ucko Sat, 03 May 2025 22:16:44 -0400 + -- Aaron M. Ucko Sat, 03 May 2025 22:20:24 -0400 ncbi-blast+ (2.16.0+ds-6) unstable; urgency=medium diff --git a/debian/control b/debian/control index 08ae5581..377a1be2 100644 --- a/debian/control +++ b/debian/control @@ -13,6 +13,7 @@ Build-Depends-Arch: libboost-test-dev, libgnutls28-dev, liblmdb-dev, libmbedtls-dev, + libncbi-vdb-dev [amd64 arm64 x32], libnghttp2-dev, libpcre2-dev, libsqlite3-dev, diff --git a/debian/rules b/debian/rules index 8455890a..e5203511 100755 --- a/debian/rules +++ b/debian/rules @@ -17,11 +17,21 @@ endif DEB_CONFIGURE_COMMON_FLAGS=--without-autodep --without-makefile-auto-update \ --with-flat-makefile --without-caution --without-dbapi --without-lzo \ - --without-debug --without-downloaded-vdb --without-sse42 + --without-debug --without-sse42 DEB_CONFIGURE_EXTRA_FLAGS=$(DEB_CONFIGURE_COMMON_FLAGS) --with-dll --with-mt \ --with-runpath=/usr/lib/ncbi-blast+ --with-build-root=BUILD \ --with-mbedtls --with-pcre2 +ifneq (,$(filter amd64 arm64 x32,$(DEB_HOST_ARCH))) + VDB_SUBTREES=os/$(DEB_HOST_ARCH_OS) os/unix cc/gcc/$(DEB_HOST_GNU_CPU) cc/gcc + VDB_INC=-I/usr/include/ncbi-vdb + VDB_INCLUDE=$(VDB_INC) $(VDB_SUBTREES:%=$(VDB_INC)/%) + DEB_CONFIGURE_COMMON_FLAGS += --with-vdb=/usr VDB_INCLUDE="$(VDB_INCLUDE)" +else + DEB_CONFIGURE_COMMON_FLAGS += --without-downloaded-vdb +endif + + proj=algo/blast/ app/ objmgr/ objtools/align_format/ objtools/blast/ #ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) -- 2.30.2