2006-10-23 17:43:55 +00:00
|
|
|
{stdenv, fetchurl, glibc}:
|
2005-08-27 23:05:50 +00:00
|
|
|
|
2006-10-23 17:43:55 +00:00
|
|
|
assert stdenv.isLinux;
|
2005-08-27 23:05:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-12-03 12:14:40 +00:00
|
|
|
name = "dietlibc-0.30";
|
2005-08-27 23:05:50 +00:00
|
|
|
src = fetchurl {
|
2007-12-03 12:14:40 +00:00
|
|
|
url = mirror://kernel/linux/libs/dietlibc/dietlibc-0.30.tar.bz2;
|
|
|
|
md5 = "2465d652fff6f1fad3da3b98e60e83c9";
|
2005-08-27 23:05:50 +00:00
|
|
|
};
|
2006-10-18 11:25:10 +00:00
|
|
|
builder = ./builder.sh;
|
2006-11-03 11:09:06 +00:00
|
|
|
|
2006-10-23 17:43:55 +00:00
|
|
|
inherit glibc;
|
2006-11-03 11:09:06 +00:00
|
|
|
kernelHeaders = glibc.kernelHeaders;
|
2006-10-19 10:54:40 +00:00
|
|
|
|
2006-10-20 16:01:11 +00:00
|
|
|
patches = [
|
|
|
|
|
|
|
|
# dietlibc's sigcontext.h provides a macro called PC(), which is
|
|
|
|
# rather intrusive (e.g., binutils fails to compile because of
|
|
|
|
# it). Rename it.
|
|
|
|
./pc.patch
|
|
|
|
|
|
|
|
# wchar.h declares lots of functions that don't actually exist.
|
|
|
|
# Remove them.
|
2007-01-22 14:38:18 +00:00
|
|
|
./no-wchar.patch
|
|
|
|
|
2007-12-03 12:14:40 +00:00
|
|
|
# Fix to get DNS resolution to work on 64-bit platforms. Taken
|
|
|
|
# from 0.31 CVS.
|
|
|
|
./dns64.patch
|
|
|
|
|
2007-01-22 22:10:14 +00:00
|
|
|
# Get lseek64 working on x86_64. From
|
|
|
|
# http://svn.annvix.org/cgi-bin/viewvc.cgi/packages/releases/2.0-CURRENT/dietlibc/SOURCES
|
|
|
|
./x86_64-lseek64.patch
|
|
|
|
#./x86_64-stat64.patch
|
|
|
|
|
2006-10-20 16:01:11 +00:00
|
|
|
];
|
2007-11-21 15:32:20 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.fefe.de/dietlibc/;
|
|
|
|
description = "A small implementation of the C library";
|
|
|
|
license = "GPL";
|
|
|
|
};
|
2005-08-27 23:05:50 +00:00
|
|
|
}
|