diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2018-08-09 20:32:30 +0200 |
---|---|---|
committer | Silvan Mosberger <infinisil@icloud.com> | 2018-08-09 20:35:25 +0200 |
commit | 14fc982e0c03e3ef220a95a0f724b02d4c916a8f (patch) | |
tree | c2c8bd81d834a3d2d1db5d809e4f72ff6f382a88 /pkgs/tools/misc/uudeview | |
parent | f0dba3f598ffa6083b18958002c8df91cc6b72c7 (diff) |
uudeview: fix build
Diffstat (limited to 'pkgs/tools/misc/uudeview')
-rw-r--r-- | pkgs/tools/misc/uudeview/default.nix | 3 | ||||
-rw-r--r-- | pkgs/tools/misc/uudeview/matherr.patch | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/tools/misc/uudeview/default.nix b/pkgs/tools/misc/uudeview/default.nix index e66580f25ffb1..3e8b7d494deb5 100644 --- a/pkgs/tools/misc/uudeview/default.nix +++ b/pkgs/tools/misc/uudeview/default.nix @@ -10,6 +10,9 @@ stdenv.mkDerivation rec { buildInputs = [ tcl tk ]; hardeningDisable = [ "format" ]; configureFlags = [ "--enable-tk=${tk.dev}" "--enable-tcl=${tcl}" ]; + + # https://wiki.tcl.tk/3577 + patches = [ ./matherr.patch ]; postPatch = '' substituteInPlace tcl/xdeview --replace "exec uuwish" "exec $out/bin/uuwish" ''; diff --git a/pkgs/tools/misc/uudeview/matherr.patch b/pkgs/tools/misc/uudeview/matherr.patch new file mode 100644 index 0000000000000..a93db7d7858d0 --- /dev/null +++ b/pkgs/tools/misc/uudeview/matherr.patch @@ -0,0 +1,19 @@ +diff --git a/tcl/uutcl.c b/tcl/uutcl.c +index f101f2ce52b..71c24688dc4 100644 +--- a/tcl/uutcl.c ++++ b/tcl/uutcl.c +@@ -48,14 +48,6 @@ + #include <tcl.h> + #endif + +-/* +- * The following variable is a special hack that is needed in order for +- * Sun shared libraries to be used for Tcl. +- */ +- +-extern int matherr(); +-int *tclDummyMathPtr = (int *) matherr; +- + #include <uudeview.h> + #include <uuint.h> + #include <fptools.h> |