[Debian-ha-maintainers] Bug#877562: libqb FTCBFS: uses uncached AC_RUN_IFELSE

Helmut Grohne helmut at subdivi.de
Mon Oct 2 20:09:47 UTC 2017


Source: libqb
Version: 1.0.1-1
Tags: patch upstream
User: helmutg at debian.org
Usertags: rebootstrap

libqb fails to cross build from source, because it uses an uncached
AC_RUN_IFELSE for determining whether CLOCK_MONOTONIC works. That check
is flawed in that availability of CLOCK_MONOTONIC is a runtime property
and may change from system to system.

The attached patch makes it check whether CLOCK_MONOTONIC is declared
and only then try whether it works. In case of cross compilation,
CLOCK_MONOTONIC is assumed to work if available, which seems like a
reasonable guess to me.

After applying the patch, libqb cross builds successfully. Can you take
it?

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 883 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20171002/4f6ec724/attachment.patch>


More information about the Debian-ha-maintainers mailing list