[Debian-med-packaging] Bug#977992: hyphy: FTBFS on hurd-i386: wrong reference to the build directory

Pino Toscano pino at debian.org
Wed Dec 23 23:13:34 GMT 2020


Source: hyphy
Version: 2.5.18+dfsg-1
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd

Hi,

currently hyphy fails to build on hurd-i386 [1].

The problem is that, in the dh_auto_test override, the "obj-*-*-*" glob
pattern is used to refer to the build directory. The default build
directory for cmake is "obj-$DEB_HOST_GNU_TYPE", and considering that
DEB_HOST_GNU_TYPE for hurd-i386 is "i686-gnu", then the pattern does not
match the build directory.

The fix is simple: use the right variable to refer directly to the build
directory, with no need to use globbing at all. Patch attached for this.

[1] https://buildd.debian.org/status/fetch.php?pkg=hyphy&arch=hurd-i386&ver=2.5.24%2Bdfsg-1&stamp=1608548780&raw=0

Thanks,
-- 
Pino
-------------- next part --------------
--- a/debian/rules
+++ b/debian/rules
@@ -33,7 +33,7 @@ override_dh_auto_build:
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	find "$$(echo obj-*-*-*/)" \
+	find "obj-$(DEB_HOST_GNU_TYPE)/" \
 		-not -path "*/CMakeFiles/*" \
 		-type f,l \
 		-executable \


More information about the Debian-med-packaging mailing list