[Debian-med-packaging] Bug#902433: phyml FTCBFS: uses mpicc

Helmut Grohne helmut at subdivi.de
Tue Jun 26 16:32:08 BST 2018


Source: phyml
Version: 3:3.3.20180214+dfsg-1
Tags: patch upstream
User: helmutg at debian.org
Usertags: rebootstrap

phyml fails to cross build from source, because it uses mpicc. mpicc
replaces the compiler, but we need the compiler variable to select the
host architecture. Using mpicc fundamentally breaks cross compilation
(and other things). The actual use of mpicc is wrapping the compiler to
pass extra flags for compilation and linking. This task is commonly
solved by pkg-config and the major mpi implementations provide a
mpi-c.pc via an alternative. Using pkg-config avoids replacing the
compiler and is actually rather simple as the attached patch
demonstrates. Please consider applying it as it makes phyml cross
buildable. If backwards compatibility with mpicc must be retained, that
is achievable by adding more arguments to PKG_CHECK_MODULES.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 817 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20180626/cc219b38/attachment.patch>


More information about the Debian-med-packaging mailing list