tcsh: take patch from Debian and edit it to fix handling of glibc-2.24 union wait removal
This commit is contained in:
parent
6715afca34
commit
693be25cc3
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0jaw51382pqyb6d1kgfg8ir0wd3p5qr2bmg8svcmjhlyp3h73qhj";
|
sha256 = "0jaw51382pqyb6d1kgfg8ir0wd3p5qr2bmg8svcmjhlyp3h73qhj";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./avoid-gcc5-wrong-optimisation.patch ];
|
patches = [ ./avoid-gcc5-wrong-optimisation.patch ./tcsh.glibc-2.24.patch ];
|
||||||
|
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
|
21
pkgs/shells/tcsh/tcsh.glibc-2.24.patch
Normal file
21
pkgs/shells/tcsh/tcsh.glibc-2.24.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
Proposed patch from Debian bug tracker by Aurelien Jarno <aurel32@debian.org>
|
||||||
|
|
||||||
|
diff --git a/sh.proc.c b/sh.proc.c
|
||||||
|
index ad07250..5c68409 100644
|
||||||
|
--- a/sh.proc.c
|
||||||
|
+++ b/sh.proc.c
|
||||||
|
@@ -47,11 +47,11 @@ RCSID("$tcsh$")
|
||||||
|
# define HZ 16
|
||||||
|
#endif /* aiws */
|
||||||
|
|
||||||
|
-#if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)
|
||||||
|
-# if !defined(__ANDROID__)
|
||||||
|
+#if defined(_BSD) || (defined(IRIS4D) && __STDC__) || defined(__lucid) || defined(__linux__) || defined(__GLIBC__)
|
||||||
|
+# if !defined(__ANDROID__) && !defined(__GLIBC__)
|
||||||
|
# define BSDWAIT
|
||||||
|
# endif
|
||||||
|
-#endif /* _BSD || (IRIS4D && __STDC__) || __lucid || glibc */
|
||||||
|
+#endif /* _BSD || (IRIS4D && __STDC__) || __lucid || gnu-linux */
|
||||||
|
#ifndef WTERMSIG
|
||||||
|
# define WTERMSIG(w) (((union wait *) &(w))->w_termsig)
|
||||||
|
# ifndef BSDWAIT
|
Loading…
x
Reference in New Issue
Block a user