mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
uudeview: fix build
This commit is contained in:
parent
f0dba3f598
commit
14fc982e0c
|
@ -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"
|
||||
'';
|
||||
|
|
19
pkgs/tools/misc/uudeview/matherr.patch
Normal file
19
pkgs/tools/misc/uudeview/matherr.patch
Normal file
|
@ -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…
Reference in a new issue