glibc: Fix cross-compilation of locales
This commit is contained in:
parent
d72c4c694f
commit
a868bf3797
pkgs/development/libraries/glibc
@ -222,6 +222,6 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
# To avoid a dependency on the build system 'bash'.
|
# To avoid a dependency on the build system 'bash'.
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
rm $bin/bin/{ldd,tzselect,catchsegv,xtrace}
|
rm -f $bin/bin/{ldd,tzselect,catchsegv,xtrace}
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED
|
https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED
|
||||||
*/
|
*/
|
||||||
|
|
||||||
{ stdenv, callPackage, writeText
|
{ stdenv, buildPackages, callPackage, writeText
|
||||||
, allLocales ? true, locales ? [ "en_US.UTF-8/UTF-8" ]
|
, allLocales ? true, locales ? [ "en_US.UTF-8/UTF-8" ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ callPackage ./common.nix { inherit stdenv; } {
|
|||||||
# $TMPDIR/nix/store/...-glibc-.../lib/locale/locale-archive.
|
# $TMPDIR/nix/store/...-glibc-.../lib/locale/locale-archive.
|
||||||
buildPhase =
|
buildPhase =
|
||||||
''
|
''
|
||||||
mkdir -p $TMPDIR/"${stdenv.cc.libc.out}/lib/locale"
|
mkdir -p $TMPDIR/"${buildPackages.stdenv.cc.libc.out}/lib/locale"
|
||||||
|
|
||||||
# Hack to allow building of the locales (needed since glibc-2.12)
|
# Hack to allow building of the locales (needed since glibc-2.12)
|
||||||
sed -i -e 's,^$(rtld-prefix) $(common-objpfx)locale/localedef,localedef --prefix='$TMPDIR',' ../glibc-2*/localedata/Makefile
|
sed -i -e 's,^$(rtld-prefix) $(common-objpfx)locale/localedef,localedef --prefix='$TMPDIR',' ../glibc-2*/localedata/Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user