[Pkg-kde-extras] Bug#762581: libktorrent: FTBFS on hurd-i386

Svante Signell svante.signell at gmail.com
Tue Sep 23 11:05:58 UTC 2014


Source: libktorrent
Version: 1.3.1-3
Severity: important
User: debian-hurd at lists.debian.org
Usertags: hurd
Tags: patch

Hi,

libktorrent fails to build from source on GNU/Hurd due to PATH_MAX
usage in the file src/util/fileops.cpp, which is not defined. The
function getmntent_r() is used, and the third and fourth arguments are a
buffer, and it's length, respectively. Since dynamic allocation of that
buffer is non-trivial, define that buffer length with a constant length,
for this case 4096. This is the same length of the PATH_MAX constant for
other OSes. The patch is attached.

Thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: path_max.patch
Type: text/x-patch
Size: 308 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-kde-extras/attachments/20140923/87c20faa/attachment.bin>


More information about the pkg-kde-extras mailing list