Bug#433716: file: File doesn't compile on Debian GNU/Hurd
Package: file
Version: 4.21-1
Severity: serious
Tags: patch
Justification: no longer builds from source
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
File doesn't compile on Hurd due to a dependence on PIPE_BUF.
The patch uses pathconf to get _PC_PIPE_BUF which is unlimited
(-1) on Hurd.
Michael
- -- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages file depends on:
ii libc0.3 2.5-11+hurd.1 GNU C Library: Shared libraries
ii libmagic1 4.21-1 File type determination library us
ii zlib1g 1:1.2.3.3.dfsg-5 compression library - runtime
file recommends no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU)
iD8DBQFGm0PVV/FBeJ6jsZQRAtR0AJ94myWQM4de0R+uegXqiGn4BmLV4gCeM/BH
n5uqDxLXfG4lkoZZHUBzioc=
=emZJ
-----END PGP SIGNATURE-----
*** 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"
Reply to: