MantisBT - Buildsystem
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002824||Buildsystem||[All Projects] General||public||2021-06-05 22:39||2021-07-05 16:27|
|Fixed in CI build #|
|Reported in CI build #|
|Summary||0002824: Porting to GNU/Hurd|
|Description||Netsurf 3.10 does not build on GNU/Hurd due to 2 documented issues:|
GNU/Hurd uses the mach kernel but is not Apple and can use function clock_gettime()
The macro PATH_MAX is not defined in POSIX and is not present in GNU/Hurd
The attached patch addresses these two issues. For the latter case, the string size is allocated dynamically using functions of the asprinf() family and realpath() called with the NULL argument. I don't know if these functions are present and work as intended on all platforms that Netsurf builds on. If this patch creates problems for other OS, would you consider using the Gnulib functions?
The patch was created against version 3.10 on Debian.
With this patch, the functions filepath_find() and filepath_sfind() have become pretty much equivalent. I have not suppressed either to keep the patch minimal and to let you decide what you would like to do.
|Tags||No tags attached.|
|Attached Files|| fix_ftbfs_hurd.patch (13,179) 2021-06-05 22:39|
fix_ftbfs_hurd.patch2 (13,346) 2021-07-05 16:27
|2021-06-05 22:39||João||New Issue|
|2021-06-05 22:39||João||File Added: fix_ftbfs_hurd.patch|
|2021-06-29 20:31||John Scott||Note Added: 0002344|
|2021-07-05 16:27||João||File Added: fix_ftbfs_hurd.patch2|
|2021-07-05 16:27||João||Note Added: 0002345|