sage: add patch to debug transient issue

+24 -1
+19
pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch
··· 1 + diff --git a/src/sage/repl/configuration.py b/src/sage/repl/configuration.py 2 + index 67d7d2accf..18279581e2 100644 3 + --- a/src/sage/repl/configuration.py 4 + +++ b/src/sage/repl/configuration.py 5 + @@ -9,10 +9,11 @@ the IPython simple prompt is being used:: 6 + sage: cmd = 'print([sys.stdin.isatty(), sys.stdout.isatty()])' 7 + sage: import pexpect 8 + sage: output = pexpect.run( 9 + - ....: 'bash -c \'echo "{0}" | sage\''.format(cmd), 10 + + ....: 'bash -c \'export SAGE_BANNER=no; echo "{0}" | sage\''.format(cmd), 11 + ....: ).decode('utf-8', 'surrogateescape') 12 + - sage: 'sage: [False, True]' in output 13 + - True 14 + + sage: print(output) 15 + + sage...[False, True] 16 + + sage...Exiting Sage ... 17 + """ 18 + 19 + #*****************************************************************************
+5 -1
pkgs/applications/science/math/sage/sage-src.nix
··· 61 61 # Since sage unfortunately does not release bugfix releases, packagers must 62 62 # fix those bugs themselves. This is for critical bugfixes, where "critical" 63 63 # == "causes (transient) doctest failures / somebody complained". 64 - bugfixPatches = [ ]; 64 + bugfixPatches = [ 65 + # To help debug the transient error in 66 + # https://trac.sagemath.org/ticket/23087 when it next occurs. 67 + ./patches/configurationpy-error-verbose.patch 68 + ]; 65 69 66 70 # Patches needed because of package updates. We could just pin the versions of 67 71 # dependencies, but that would lead to rebuilds, confusion and the burdons of