Bug#914588: normaliz FTCBFS: AC_RUN_IFELSE

Helmut Grohne helmut at subdivi.de
Sun Nov 25 12:34:45 GMT 2018


Source: normaliz
Version: 3.6.3+ds-1
Tags: patch upstream
User: helmutg at debian.org
Usertags: rebootstrap

normaliz fails to cross build from source, because it uses AC_RUN_IFELSE
to find a library. Normally, I'd just switch that to AC_LINK_IFELSE, but
the comments kindly explain thet AC_RUN_IFELSE is needed for Mac OS X.
Bummer. So let me propose a compromise: Use AC_RUN_IFELSE with a cross
branch that uses AC_LINK_IFELSE. So the native case continues working as
is and the cross case works everywhere but Mac OS X.

The patch doesn't completely fix the build. Running help2man still
breaks cross compilation. This one is difficult and there is no silver
bullet. The options essentially are:
 * Don't use help2man.
 * Move the manual page to an arch:all package.
 * Perform the build twice (native and cross).
 * Ship a precompiled manual page in the source.
 * Skip building a manual page with the nodoc profile.

Still applying my patch makes that problem visible, so please consider
applying it and close this bug when doing so.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 584 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20181125/f521ffff/attachment.patch>


More information about the debian-science-maintainers mailing list