Re: Bug#433716: file: File doesn't compile on Debian GNU/Hurd
Hi,
On Mon, Jul 16, 2007 at 06:09:25AM -0400, Michael Casadevall wrote:
> Package: file
> Version: 4.21-1
> Severity: serious
Hurd bugs are always at most Severity: important, as hurd-i386 is no
release architecture and thus bugs in it cannot be release critical.
> File doesn't compile on Hurd due to a dependence on PIPE_BUF.
It's best practise to quote the build error here, you can just
copy&paste from http://experimental.ftbfs.de if you want.
> The patch uses pathconf to get _PC_PIPE_BUF which is unlimited
> (-1) on Hurd.
> Michael
> *** file-4.21/src/magic.c 2007/07/16 09:10:24 1.1
> --- file-4.21/src/magic.c 2007/07/16 09:41:40
> ***************
> *** 58,63 ****
> --- 58,68 ----
> #include <locale.h>
> #endif
>
> + #ifndef PIPE_BUF
> + // Get the PIPE_BUF from pathconf
> + #define PIPE_BUF pathconf(".", _PC_PIPE_BUF)
> + #endif
> +
> #include <netinet/in.h> /* for byte swapping */
>
> #include "patchlevel.h"
If you want, you can post patches to the alioth patch tracker for review
first: https://alioth.debian.org/tracker/?group_id=30628&atid=410472
You best need an alioth account for that though, I can add you to the
debian-hurd project then.
cheers,
Michael
Reply to: