about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/tex
diff options
context:
space:
mode:
authorJoel Taylor <me@joelt.io>2014-08-17 13:17:13 -0700
committerJoel Taylor <me@joelt.io>2014-09-09 13:54:24 -0700
commit3e8344d334d42824ac3061a919ac15b19a1bf21d (patch)
tree5ecad4218357caec8ddc27d5df150a5734db0281 /pkgs/tools/typesetting/tex
parente3fd4499ef296f4769cf4e9e91f1ccfd16325b0f (diff)
downloadnixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar
nixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.gz
nixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.bz2
nixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.lz
nixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.xz
nixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.tar.zst
nixlib-3e8344d334d42824ac3061a919ac15b19a1bf21d.zip
suitable clang stdenv
Diffstat (limited to 'pkgs/tools/typesetting/tex')
-rw-r--r--pkgs/tools/typesetting/tex/tetex/clang.patch13
-rw-r--r--pkgs/tools/typesetting/tex/tetex/default.nix2
2 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/tools/typesetting/tex/tetex/clang.patch b/pkgs/tools/typesetting/tex/tetex/clang.patch
new file mode 100644
index 000000000000..50d83f624437
--- /dev/null
+++ b/pkgs/tools/typesetting/tex/tetex/clang.patch
@@ -0,0 +1,13 @@
+diff --git a/texk/ps2pkm/type1.c b/texk/ps2pkm/type1.c
+index 027bf1f..4dcbad0 100644
+--- a/texk/ps2pkm/type1.c
++++ b/texk/ps2pkm/type1.c
+@@ -800,7 +800,7 @@ static void PSFakePush(Num)
+ static DOUBLE PSFakePop ()
+ {
+   if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
+-  else Error0("PSFakePop : Stack empty\n");
++  else { CC; IfTrace0(TRUE, "PSFakePop : Stack empty\n"); errflag = TRUE; return 0; }
+   /*NOTREACHED*/
+ }
+  
diff --git a/pkgs/tools/typesetting/tex/tetex/default.nix b/pkgs/tools/typesetting/tex/tetex/default.nix
index 5cd3228aced3..173571eda23c 100644
--- a/pkgs/tools/typesetting/tex/tetex/default.nix
+++ b/pkgs/tools/typesetting/tex/tetex/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
     sed -i 57d texk/kpathsea/c-std.h
   '';
 
-  patches = [ ./environment.patch ./getline.patch ];
+  patches = [ ./environment.patch ./getline.patch ./clang.patch ];
 
   setupHook = ./setup-hook.sh;