commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/02: patches/term-for-tcl.patch: Add workaround


From: Samuel Thibault
Subject: [hurd] 01/02: patches/term-for-tcl.patch: Add workaround
Date: Sun, 08 Feb 2015 23:51:11 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch master
in repository hurd.

commit 058e16eee17d3c49954123bf12fbd6ae9195de3e
Author: Samuel Thibault <address@hidden>
Date:   Mon Feb 2 11:42:54 2015 +0100

    patches/term-for-tcl.patch: Add workaround
    
    against TCL's missing buffering support for PTYs used by expect, see Bug
---
 debian/changelog                  |  7 +++++++
 debian/patches/series             |  1 +
 debian/patches/term-for-tcl.patch | 21 +++++++++++++++++++++
 3 files changed, 29 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index f2123ed..12b7d3c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+hurd (1:0.5.git20141210-7) UNRELEASED; urgency=medium
+
+  * patches/term-for-tcl.patch: Add workaround against TCL's missing buffering
+    support for PTYs used by expect, see Bug #755295.
+
+ -- Samuel Thibault <address@hidden>  Mon, 02 Feb 2015 11:39:38 +0100
+
 hurd (1:0.5.git20141210-6) unstable; urgency=medium
 
   * patches/git-socket-EOF.patch: Cherry-pick patch to fix EOF on sockets.
diff --git a/debian/patches/series b/debian/patches/series
index a3c1b0f..5912cec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -45,3 +45,4 @@ libmachdev-link.patch
 ports_h_loop.patch
 git-mtab-paths.patch
 git-socket-EOF.patch
+term-for-tcl.patch
diff --git a/debian/patches/term-for-tcl.patch 
b/debian/patches/term-for-tcl.patch
new file mode 100644
index 0000000..3cdc4ec
--- /dev/null
+++ b/debian/patches/term-for-tcl.patch
@@ -0,0 +1,21 @@
+See discussion in http://bugs.debian.org/755295
+
+--- a/term/ptyio.c
++++ b/term/ptyio.c
+@@ -350,6 +350,16 @@ pty_io_read (struct trivfs_protid *cred,
+       size++;
+     }
+ 
++  /*
++   * Linux never returns more than this, and at least TCL happens to depend on
++   * this behavior. This was discussed in http://bugs.debian.org/755295 and
++   * raised to TCL, with no answer so far.
++   */
++#define LINUXISH_READ_MAX 4095
++  if (cred->po->openmodes & O_NONBLOCK)
++    if (amount > LINUXISH_READ_MAX)
++      amount = LINUXISH_READ_MAX;
++
+   if (size > amount)
+     size = amount;
+   if (size > *datalen)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]