uudeview: fix build

wip/yesman
Silvan Mosberger 6 years ago
parent f0dba3f598
commit 14fc982e0c
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7
  1. 3
      pkgs/tools/misc/uudeview/default.nix
  2. 19
      pkgs/tools/misc/uudeview/matherr.patch

@ -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"
'';

@ -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>
Loading…
Cancel
Save