Fixing the glibc locales build expression (in the sense that now it builds, not that it looks nice)

svn path=/nixpkgs/branches/stdenv-updates/; revision=23369
This commit is contained in:
Lluís Batlle i Rossell 2010-08-23 17:36:51 +00:00
parent 15f83acc0c
commit a480f92f9d

View file

@ -26,6 +26,10 @@ in
buildPhase =
''
mkdir -p $TMPDIR/"$(dirname $(readlink -f $(type -p localedef)))/../lib/locale"
# Hack to allow building of the locales (needed since glibc-2.12)
sed -i -e 's/^LOCALEDEF=/LOCALEDEF?=/' ../glibc-2*/localedata/Makefile
make localedata/install-locales \
LOCALEDEF="localedef --prefix=$TMPDIR" \
localedir=$out/lib/locale \