Package: samba Version: 2:4.1.11+dfsg-1 Severity: important Tags: patch Hello,
samba FTBFS on hurd-i386 because lib/tevent/testsuite.c uses PIPE_BUF unconditionally, which is not defined on GNU/Hurd. Attached is a simple patch that use sysconf() if PIPE_BUF is not defined. With this patch and those in #759008 and #749095 applied, samba builds and seems to be working fine on GNU/Hurd. Thanks, Manuel Menal -- System Information: Debian Release: jessie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: hurd-i386 (i686-AT386) Kernel: GNU-Mach 1.4-486/Hurd-0.5 Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages samba depends on: ii adduser 3.113+nmu3 ii dpkg 1.17.13 ii libasn1-8-heimdal 1.6~rc2+dfsg-2 ii libbsd0 0.7.0-1 ii libc0.3 2.19-9 ii libcomerr2 1.42.11-2 ii libhdb9-heimdal [heimdal-hdb-api-8] 1.6~rc2+dfsg-2 ii libkdc2-heimdal 1.6~rc2+dfsg-2 ii libkrb5-26-heimdal 1.6~rc2+dfsg-2 ii libldb1 1:1.1.17-1 ii libpam-modules 1.1.8-3 ii libpam-runtime 1.1.8-3 ii libpopt0 1.16-8 ii libpython2.7 2.7.8-5 ii libroken18-heimdal 1.6~rc2+dfsg-2 ii libtalloc2 2.1.1-2 ii libtdb1 1.3.0-1.1 ii libtevent0 0.9.21-1 ii lsb-base 4.1+Debian13 ii multiarch-support 2.19-9 ii procps 1:3.3.9-7 ii python 2.7.8-1 ii python-dnspython 1.11.1-1 ii python-ntdb 1.0-3 ii python-samba 2:4.1.11+dfsg-1 pn python2.7:any <none> ii samba-common 2:4.1.11+dfsg-1 ii samba-common-bin 2:4.1.11+dfsg-1 ii samba-dsdb-modules 2:4.1.11+dfsg-1 ii samba-libs 2:4.1.11+dfsg-1 ii tdb-tools 1.3.0-1.1 ii update-inetd 4.43 Versions of packages samba recommends: pn attr <none> ii logrotate 3.8.7-1 pn samba-vfs-modules <none> Versions of packages samba suggests: pn bind9 <none> pn bind9utils <none> ii ctdb 2.5.3+debian0-1 pn ldb-tools <none> pn ntp <none> pn smbldap-tools <none> pn winbind <none> -- no debconf information
diff -Nurp samba-4.1.11+dfsg.old/lib/tevent/testsuite.c samba-4.1.11+dfsg/lib/tevent/testsuite.c --- samba-4.1.11+dfsg.old/lib/tevent/testsuite.c 2014-08-22 07:20:18.000000000 -0400 +++ samba-4.1.11+dfsg/lib/tevent/testsuite.c 2014-08-22 09:45:27.000000000 -0400 @@ -35,6 +35,11 @@ #include <assert.h> #endif +#ifndef PIPE_BUF +#include <unistd.h> +#define PIPE_BUF sysconf(_PC_PIPE_BUF) +#endif + static int fde_count; static void fde_handler_read(struct tevent_context *ev_ctx, struct tevent_fd *f,