[Debian-med-packaging] Bug#983631: blasr FTCBFS: multiple reasons

Helmut Grohne helmut at subdivi.de
Sat Feb 27 14:10:41 GMT 2021


Source: blasr
Version: 5.3.3+dfsg-5
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability ftcbfs

blasr fails to cross build from source. The immediate issue is failing
to install python3 for the host architecture. Indeed, blasr does not
need a host architecture python, it merely wants a runnable (i.e. build
architecture) python for ./tools/git-clang-format. That can be requested
using python3:any or python3:native. Beyond this, it fails to pass a
suitable crossfile to meson. The easiest way of doing so is using
dh_auto_configure. Please consider applying the attached patch to make
blasr cross buildable.

Helmut
-------------- next part --------------
diff --minimal -Nru blasr-5.3.3+dfsg/debian/changelog blasr-5.3.3+dfsg/debian/changelog
--- blasr-5.3.3+dfsg/debian/changelog	2020-11-16 13:51:01.000000000 +0100
+++ blasr-5.3.3+dfsg/debian/changelog	2021-02-27 15:03:05.000000000 +0100
@@ -1,3 +1,12 @@
+blasr (5.3.3+dfsg-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Annotate python3 dependency with :any.
+    + Let dh_auto_configure pass a crossfile to meson.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 27 Feb 2021 15:03:05 +0100
+
 blasr (5.3.3+dfsg-5) unstable; urgency=medium
 
   * debhelper-compat 13 (routine-update)
diff --minimal -Nru blasr-5.3.3+dfsg/debian/control blasr-5.3.3+dfsg/debian/control
--- blasr-5.3.3+dfsg/debian/control	2020-11-16 13:51:01.000000000 +0100
+++ blasr-5.3.3+dfsg/debian/control	2021-02-27 15:02:52.000000000 +0100
@@ -4,7 +4,7 @@
 Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
-               python3,
+               python3:any,
                meson,
                cmake,
                pkg-config,
diff --minimal -Nru blasr-5.3.3+dfsg/debian/rules blasr-5.3.3+dfsg/debian/rules
--- blasr-5.3.3+dfsg/debian/rules	2020-11-16 13:51:01.000000000 +0100
+++ blasr-5.3.3+dfsg/debian/rules	2021-02-27 15:03:05.000000000 +0100
@@ -33,7 +33,7 @@
 	dh $@ --buildsystem=meson
 
 override_dh_auto_configure:
-	LDFLAGS="-L$(HTSLIB_LIB) -L$(HDF5_LIB) -lhdf5_cpp -lhdf5" CPPFLAGS="-isystem $(HDF5_INC)" meson -Dtests=false -Dprefix=/usr build .
+	LDFLAGS="-L$(HTSLIB_LIB) -L$(HDF5_LIB) -lhdf5_cpp -lhdf5" CPPFLAGS="-isystem $(HDF5_INC)" dh_auto_configure -- -Dtests=false
 
 bax2bam: utils/bax2bax/bin/bax2bam
 utils/bax2bax/bin/bax2bam:
@@ -47,7 +47,3 @@
 override_dh_auto_test:
 	echo Tests require data not available in the source distribution
 endif
-
-override_dh_auto_build:
-	ln -s build obj-$(DEB_BUILD_GNU_TYPE)
-	dh_auto_build


More information about the Debian-med-packaging mailing list