Bug#754792: libbfio: FTBFS on hurd-386

Svante Signell svante.signell at gmail.com
Mon Jul 14 11:15:26 UTC 2014


Source: libbfio
Version: 20130507-1
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd

Hello,

libbfio fails to build from source due to usage of PATH_MAX,which is not
defined on GNU/Hurd. The attached patch fixes usage of PATH_MAX as
second argument to getcwd() by using calls to getcwd (NULL, 0) instead.
Supporting (NULL, 0) as arguments is an extension to POSIX.1-2001 for
libc4, libc5 and glibc, so most modern systems have it. In order to
simplify the patch, only this version is implemented.

In case there is a need for a dual code path this can be fixed to, at
the cost of additional #ifdef's in the code and a configure.ac check for
the getcwd (NULL, 0) functionality.

Note also that with the patch applied, the package needs to build-depend
on quilt.

The failure of this package to build blocks the build of e.g. libewf,
libpff and dff, and libewf is flagged as out-of-date since a long time
by now for Hurd.

Thanks! 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: path_max.patch
Type: text/x-patch
Size: 2343 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/forensics-devel/attachments/20140714/c10de4fa/attachment.bin>


More information about the forensics-devel mailing list