[sagemath] 01/01: Silence "gzip: stdout: Broken pipe" error messages, but this is unrelated to #844789

Ximin Luo infinity0 at debian.org
Sun Dec 11 19:09:10 UTC 2016


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

infinity0 pushed a commit to branch master
in repository sagemath.

commit d823a538f776f2c5c3a02bc38dfa9309170fce3c
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sun Dec 11 20:08:21 2016 +0100

    Silence "gzip: stdout: Broken pipe" error messages, but this is unrelated to #844789
---
 debian/patches/fixsage-preexec-fn.patch | 25 +++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 26 insertions(+)

diff --git a/debian/patches/fixsage-preexec-fn.patch b/debian/patches/fixsage-preexec-fn.patch
new file mode 100644
index 0000000..34e4a04
--- /dev/null
+++ b/debian/patches/fixsage-preexec-fn.patch
@@ -0,0 +1,25 @@
+Description: Work around python bug #1652
+ This avoids GAP printing extraneous "gzip: stdout: Broken pipe" errors
+ However it is NOT related to Debian bug #844789
+Author: Ximin Luo <infinity0 at debian.org>
+Bug: https://bugs.python.org/issue1652
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/sage/src/sage/interfaces/expect.py
++++ b/sage/src/sage/interfaces/expect.py
+@@ -42,6 +42,7 @@
+ from __future__ import absolute_import
+ 
+ import os
++import signal
+ import sys
+ import weakref
+ import time
+@@ -479,6 +480,7 @@
+                         timeout=None,  # no timeout
+                         env=pexpect_env,
+                         name=self._repr_(),
++                        preexec_fn=lambda: signal.signal(signal.SIGPIPE, signal.SIG_DFL),
+                         quit_string=self._quit_string())
+             except (ExceptionPexpect, pexpect.EOF) as e:
+                 # Change pexpect errors to RuntimeError
diff --git a/debian/patches/series b/debian/patches/series
index 6823b75..fd2f235 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -58,3 +58,4 @@ version-temp-singular-4-extra-fixes.patch
 version-temp-glpk-4.60-extra-hacky-fixes.patch
 debian-temp-r-no-readline.patch
 trac_21749.patch
+fixsage-preexec-fn.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list