[Debian-med-packaging] Bug#929275: minimap2 FTBFS on armhf and arm64

Helmut Grohne helmut at subdivi.de
Mon May 20 16:35:34 BST 2019


Source: minimap2
Version: 2.15+dfsg-1
Severity: important
Tags: ftbfs patch
User: helmutg at debian.org
Usertags: rebootstrap

minimap2 fails to build from source on armhf and arm64 due to supplying
-msse2. Unlike many other architectures, this is easily fixable for
armhf and arm64 using the attached patch. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru minimap2-2.15+dfsg/debian/changelog minimap2-2.15+dfsg/debian/changelog
--- minimap2-2.15+dfsg/debian/changelog	2019-01-11 22:40:39.000000000 +0100
+++ minimap2-2.15+dfsg/debian/changelog	2019-05-20 17:26:01.000000000 +0200
@@ -1,3 +1,10 @@
+minimap2 (2.15+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS on armhf and arm64: pass relevant variable to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 20 May 2019 17:26:01 +0200
+
 minimap2 (2.15+dfsg-1) unstable; urgency=medium
 
   * New upstream version
diff --minimal -Nru minimap2-2.15+dfsg/debian/rules minimap2-2.15+dfsg/debian/rules
--- minimap2-2.15+dfsg/debian/rules	2019-01-11 22:40:39.000000000 +0100
+++ minimap2-2.15+dfsg/debian/rules	2019-05-20 17:26:01.000000000 +0200
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+include /usr/share/dpkg/architecture.mk
 
 %:
 	dh $@
@@ -9,8 +10,15 @@
 	dh_auto_clean
 	cd tex && make clean
 
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU)-$(DEB_HOST_ARCH_ABI),arm-eabihf arm64-base))
+build_vars += arm_neon=1
+ifneq (,$(filter $(DEB_HOST_ARCH_CPU),arm64))
+build_vars += aarch64=1
+endif
+endif
+
 override_dh_auto_build:
-	dh_auto_build
+	dh_auto_build -- $(build_vars)
 	cd tex && make
 
 override_dh_auto_test:


More information about the Debian-med-packaging mailing list