summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/sage-src.nix
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2019-03-10 21:42:54 +0000
committerGitHub <noreply@github.com>2019-03-10 21:42:54 +0000
commitce9699403293eae7379a3f18653b30378f586e0a (patch)
treee6882409b77ed9134e96fed53ceed39861e9c746 /pkgs/applications/science/math/sage/sage-src.nix
parentce51fbab82afb62a7d1aff766a7e5a9b969b133f (diff)
downloadnixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.tar
nixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.tar.gz
nixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.tar.bz2
nixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.tar.lz
nixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.tar.xz
nixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.tar.zst
nixpkgs-ce9699403293eae7379a3f18653b30378f586e0a.zip
sage: fix docbuild (#57294)
The docbuild (or rather its tests) failed because sphinx built some
English parts of the documentation in Russian. The added debian patch
fixes that by isolating docbuilding threads in sphinx using
proper subprocesses.
Diffstat (limited to 'pkgs/applications/science/math/sage/sage-src.nix')
-rw-r--r--pkgs/applications/science/math/sage/sage-src.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix
index 83459021687..51a83d70415 100644
--- a/pkgs/applications/science/math/sage/sage-src.nix
+++ b/pkgs/applications/science/math/sage/sage-src.nix
@@ -50,6 +50,15 @@ stdenv.mkDerivation rec {
 
     # Fixes a potential race condition which can lead to transient doctest failures.
     ./patches/fix-ecl-race.patch
+
+    # Parallelize docubuild using subprocesses, fixing an isolation issue. See
+    # https://groups.google.com/forum/#!topic/sage-packaging/YGOm8tkADrE
+    (fetchpatch {
+      name = "sphinx-docbuild-subprocesses.patch";
+      url = "https://salsa.debian.org/science-team/sagemath/raw/8a215b17e6f791ddfae6df8ce6d01dfb89acb434/debian/patches/df-subprocess-sphinx.patch";
+      sha256 = "07p9i0fwjgapmfvmi436yn6v60p8pvmxqjc93wsssqgh5kd8qw3n";
+      stripLen = 1;
+    })
   ];
 
   # Patches needed because of package updates. We could just pin the versions of