[DRE-maint] Bug#896509: ruby2.5: FTBFS on hurd-i386: 'IOV_MAX' undeclared
Samuel Thibault
samuel.thibault at ens-lyon.org
Sat Apr 21 11:22:28 BST 2018
Source: ruby2.5
Version: 2.5.1-1
Severity: important
Tags: patch
Hello,
ruby2.5 currently FTBFS on hurd-i386 just because the Hurd does not have
an IOV_MAX limitation, the attached patch fixes it by simply taking into
the account the limitation when it exists.
Samuel
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.8+git20180218-486-dbg/Hurd-0.9
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
--
Samuel Thibault <samuel.thibault at ens-lyon.org>
-------------- next part --------------
Index: ruby2.5-2.5.1/io.c
===================================================================
--- ruby2.5-2.5.1.orig/io.c
+++ ruby2.5-2.5.1/io.c
@@ -1637,7 +1637,11 @@ io_writev(int argc, VALUE *argv, VALUE i
for (i = 0; i < argc; i += cnt) {
#ifdef HAVE_WRITEV
- if ((fptr->mode & (FMODE_SYNC|FMODE_TTY)) && ((cnt = argc - i) < IOV_MAX)) {
+ if ((fptr->mode & (FMODE_SYNC|FMODE_TTY))
+# ifdef IOV_MAX
+ && ((cnt = argc - i) < IOV_MAX)
+# endif
+ ) {
n = io_fwritev(cnt, &argv[i], fptr);
}
else
More information about the Pkg-ruby-extras-maintainers
mailing list