[Debian-ha-maintainers] Bug#815306: corosync: FTBFS on kfreebsd: configure: error: watchdog requires linux/watchdog.h

Steven Chamberlain steven at pyro.eu.org
Sun Feb 21 04:01:38 UTC 2016


tags 815306 + patch
user debian-bsd at lists.debian.org
usertags 815306 + kfreebsd
thanks

Hi,

Andreas Beckmann wrote:
> corosync FTBFS on kfreebsd-i386, kfreebsd-amd64:
> https://buildd.debian.org/status/fetch.php?pkg=corosync&arch=kfreebsd-amd64&ver=2.3.5-3&stamp=1445527755
> https://buildd.debian.org/status/fetch.php?pkg=corosync&arch=kfreebsd-i386&ver=2.3.5-3&stamp=1445522632
> 
> checking linux/watchdog.h usability... no
> checking linux/watchdog.h presence... no
> checking for linux/watchdog.h... no
> configure: error: watchdog requires linux/watchdog.h

watchdog and systemd, should be enabled only when building on Linux.
That's quite easily to do.

But then I found that systemd unit files are not created(?) any more so
dh_install failed.  So I added an exclusion on non-Linux, but maybe
dh_install should not have been installing those files itself?

Then "rm debian/tmp/usr/share/corosync/corosync" and "-notifyd"
complained that those files did not exist, but they did exist in
"tmp/etc/init.d/" where dh_install complained they were not being
installed anywhere...  so I changed it to just "rm -f" all of those.

I didn't test to see if it caused regressions on linux, but the attached
patch has fixed the package build for me on kfreebsd-amd64, at least.
It probably could be better.

Thanks,
Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corosync.patch
Type: text/x-diff
Size: 1860 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20160221/918ed234/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-ha-maintainers/attachments/20160221/918ed234/attachment.sig>


More information about the Debian-ha-maintainers mailing list