* Bash on dietlibc.

* Pass -D_BSD_SOURCE=1 by default in the dietlibc stdenv.

svn path=/nixpkgs/trunk/; revision=6768
This commit is contained in:
Eelco Dolstra
2006-10-18 16:16:07 +00:00
parent f3619824a9
commit ce22859f8a
6 changed files with 27 additions and 30 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
{stdenv, fetchurl}:
stdenv.mkDerivation {
stdenv.mkDerivation ({
name = "bash-3.1";
builder = ./builder.sh;
src = fetchurl {
@@ -12,3 +12,11 @@ stdenv.mkDerivation {
description = "GNU Bourne-Again Shell, the de facto standard shell on Linux";
};
}
# libcompat.a is needed on dietlibc for stpcpy().
// (if stdenv ? isDietLibC then {
NIX_LDFLAGS = "-lcompat";
patches = [./winsize.patch];
} else {})
)
+14
View File
@@ -0,0 +1,14 @@
diff -rc bash-3.1-orig/lib/sh/winsize.c bash-3.1/lib/sh/winsize.c
*** bash-3.1-orig/lib/sh/winsize.c 2006-10-18 18:08:25.000000000 +0200
--- bash-3.1/lib/sh/winsize.c 2006-10-18 18:10:00.000000000 +0200
***************
*** 30,35 ****
--- 30,37 ----
#include <sys/ioctl.h>
+ #include <termios.h>
+
#if !defined (STRUCT_WINSIZE_IN_SYS_IOCTL)
/* For struct winsize on SCO */
/* sys/ptem.h has winsize but needs mblk_t from sys/stream.h */