Source: raxml Version: 8.2.12+dfsg-2 Tags: patch User: [email protected] Usertags: ftcbfs
raxml fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - fixes this part, but raxml continues to fail, because it also uses help2man. There are no good solutions to help2man. For that reason, this patch leaves the help2man problem as is and only fixes the dh_auto_build part. Here are the options for fixing help2man: * Stop using help2man. * Ship manual pages in an architecture:all package. * Build twice (once for help2man and once for real). * Extract the --help output using a script and run that instead of the built raxml binary. * Only support cross building with a nodoc profile excluing manual pages. Please consider applying the attached patch as an incremental improvement and close this bug when doing so even without fixing the help2man part. Helmut
diff --minimal -Nru raxml-8.2.12+dfsg/debian/changelog raxml-8.2.12+dfsg/debian/changelog --- raxml-8.2.12+dfsg/debian/changelog 2019-12-16 17:54:43.000000000 +0100 +++ raxml-8.2.12+dfsg/debian/changelog 2019-12-22 09:02:16.000000000 +0100 @@ -1,3 +1,11 @@ +raxml (8.2.12+dfsg-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Improve cross building: Let dh_auto_build pass cross tools to make. + (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sun, 22 Dec 2019 09:02:16 +0100 + raxml (8.2.12+dfsg-2) unstable; urgency=medium * Team upload. diff --minimal -Nru raxml-8.2.12+dfsg/debian/rules raxml-8.2.12+dfsg/debian/rules --- raxml-8.2.12+dfsg/debian/rules 2019-12-16 15:03:35.000000000 +0100 +++ raxml-8.2.12+dfsg/debian/rules 2019-12-22 09:02:14.000000000 +0100 @@ -31,7 +31,7 @@ override_dh_auto_build: mkdir -p $(BINDIR) set -e ; for mfile in $(MFILES); do \ - $(MAKE) -f $${mfile} $(MFLAGS); \ + dh_auto_build --buildsystem=makefile -- -f $${mfile} $(MFLAGS); \ curexe=`ls $(exe)* | head -n 1` ; \ if [ -e $(BINDIR)/$${curexe} ] ; then \ echo "**** ERROR: $${curexe} was created before!!" && false ; \

