* Renamed pkgs-ng to pkgs.
svn path=/nixpkgs/trunk/; revision=502
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#! /bin/sh
|
||||
|
||||
# glibc cannot have itself in its rpath.
|
||||
export NIX_NO_SELF_RPATH=1
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $glibcSrc || exit 1
|
||||
(cd glibc-* && tar xvfj $linuxthreadsSrc) || exit 1
|
||||
|
||||
(cd glibc-* && patch -p1 < $vaargsPatch) || exit 1
|
||||
|
||||
mkdir build || exit 1
|
||||
cd build || exit 1
|
||||
LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile || exit 1
|
||||
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
make localedata/install-locales || exit 1
|
||||
strip -S $out/lib/*.a $out/lib/*.so $out/lib/gconv/*.so
|
||||
strip -s $out/bin/* $out/sbin/* $out/libexec/*
|
||||
|
||||
ln -sf /etc/ld.so.cache $out/etc/ld.so.cache || exit 1
|
||||
|
||||
(cd $out/include && ln -s $kernelHeaders/include/* .) || exit 1
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,21 @@
|
||||
{stdenv, fetchurl, kernelHeaders}: derivation {
|
||||
name = "glibc-2.3.2";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
|
||||
glibcSrc = fetchurl {
|
||||
url = ftp://ftp.nl.net/pub/gnu/glibc/glibc-2.3.2.tar.bz2;
|
||||
md5 = "ede969aad568f48083e413384f20753c";
|
||||
};
|
||||
linuxthreadsSrc = fetchurl {
|
||||
url = ftp://ftp.nl.net/pub/gnu/glibc/glibc-linuxthreads-2.3.2.tar.bz2;
|
||||
md5 = "894b8969cfbdf787c73e139782167607";
|
||||
};
|
||||
|
||||
# This is a patch to make glibc compile under GCC 3.3. Presumably
|
||||
# later releases of glibc won't need this.
|
||||
vaargsPatch = ./glibc-2.3.2-sscanf-1.patch;
|
||||
|
||||
stdenv = stdenv;
|
||||
kernelHeaders = kernelHeaders;
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
Submitted By: David Shust (www.shustring.com)
|
||||
Date: 2003-08-15
|
||||
Initial Package Version: 2.3.2
|
||||
Origin: glibc CVS changes performed by Roland McGrath
|
||||
Description: patches stdio-common/sscanf.c, libio/{swprintf.c, swscanf.c}
|
||||
|
||||
diff -Naur glibc-2.3.2/libio/swprintf.c glibc-2.3.2-new/libio/swprintf.c
|
||||
--- glibc-2.3.2/libio/swprintf.c 2001-07-07 19:21:03.000000000 +0000
|
||||
+++ glibc-2.3.2-new/libio/swprintf.c 2003-08-15 19:36:42.000000000 +0000
|
||||
@@ -1,4 +1,5 @@
|
||||
-/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003
|
||||
+ Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -22,10 +23,7 @@
|
||||
/* Write formatted output into S, according to the format string FORMAT. */
|
||||
/* VARARGS3 */
|
||||
int
|
||||
-swprintf (s, n, format)
|
||||
- wchar_t *s;
|
||||
- size_t n;
|
||||
- const wchar_t *format;
|
||||
+swprintf (wchar_t *s, size_t n, const wchar_t *format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
int done;
|
||||
diff -Naur glibc-2.3.2/libio/swscanf.c glibc-2.3.2-new/libio/swscanf.c
|
||||
--- glibc-2.3.2/libio/swscanf.c 2001-07-07 19:21:03.000000000 +0000
|
||||
+++ glibc-2.3.2-new/libio/swscanf.c 2003-08-15 19:36:42.000000000 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 1991,1995,1996,1998,1999,2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -22,9 +22,7 @@
|
||||
/* Read formatted input from S, according to the format string FORMAT. */
|
||||
/* VARARGS2 */
|
||||
int
|
||||
-swscanf (s, format)
|
||||
- const wchar_t *s;
|
||||
- const wchar_t *format;
|
||||
+swscanf (const wchar_t *s, const wchar_t *format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
int done;
|
||||
diff -Naur glibc-2.3.2/stdio-common/sscanf.c glibc-2.3.2-new/stdio-common/sscanf.c
|
||||
--- glibc-2.3.2/stdio-common/sscanf.c 2002-08-10 18:09:08.000000000 +0000
|
||||
+++ glibc-2.3.2-new/stdio-common/sscanf.c 2003-08-15 19:36:24.000000000 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* Copyright (C) 1991,95,96,98,2002 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 1991,1995,1996,1998,2002,2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -27,9 +27,7 @@
|
||||
/* Read formatted input from S, according to the format string FORMAT. */
|
||||
/* VARARGS2 */
|
||||
int
|
||||
-sscanf (s, format)
|
||||
- const char *s;
|
||||
- const char *format;
|
||||
+sscanf (const char *s, const char *format, ...)
|
||||
{
|
||||
va_list arg;
|
||||
int done;
|
||||
Reference in New Issue
Block a user