Bug#926347: suitesparse: FTBFS on hurd-i386: mach/clock.h non-existent on GNU/Hurd

Paul Sonnenschein paul at sonnenschein.ruhr
Wed Apr 3 21:05:14 BST 2019


Package: suitesparse
Severity: normal
Version: 1:5.4.0+dfsg-1
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd
X-Debbugs-CC: debian-hurd at lists.debian.org

Suitesparse fails to build from source on hurd-i386 because the header
mach/clock.h is not contained in GNU Mach, however it gets included in
GraphBLAS/Demo/Include/simple_timer.h used by
GraphBLAS/Demo/Source/simple_timer.c.

For a detailed log, please see [0].

The patch consists of the following changes:

simple_timer.h
 1. Enable the Linux case (not strictly necessary, due to the existence
    of an OpenMP and a C11 fallback case).
 2. Enable the Mach case only if __APPLE__ is defined

simple_timer.c
 1. Enable the Linux case on Hurd (not necessary, see simple_timer.h)
 2. Disable the Mach case unless __APPLE__ is defined (not strictly
    necessary, because of the OpenMP case)

Using the Linux case is recommended in [1], however [1] does not
mention the C11 clock function.

Thanks,
	Paul Sonnenschein


[0]: 
https://buildd.debian.org/status/fetch.php?pkg=suitesparse&arch=hurd-i386&ver=1%3A5.4.0%2Bdfsg-1&stamp=1545919779&raw=0
[1]: https://www.gnu.org/software/hurd/hurd/porting/guidelines.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: suitesparse_hurd_fix_mach_time_h.patch
Type: text/x-patch
Size: 1504 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20190403/3db4a4ab/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20190403/3db4a4ab/attachment.sig>


More information about the debian-science-maintainers mailing list