1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

* Build Glibc with sysconfdir set to /etc. This causes it to look for

‘localtime’ (the default time zone definition) in /etc rather than
  $out/etc, allowing us to override the time zone globally in NixOS.

  Note that Glibc already looked in /etc for most other configuration
  files (e.g., /etc/hosts).

svn path=/nixpkgs/branches/stdenv-updates/; revision=30069
This commit is contained in:
Eelco Dolstra 2011-10-27 18:42:32 +00:00
parent 30933c30d3
commit 4d0d7d78c5
2 changed files with 6 additions and 0 deletions

View file

@ -90,6 +90,7 @@ stdenv.mkDerivation ({
configureFlags = [
"-C"
"--enable-add-ons"
"--sysconfdir=/etc"
"--localedir=/var/run/current-system/sw/lib/locale"
(if kernelHeaders != null
then "--with-headers=${kernelHeaders}/include"
@ -111,6 +112,8 @@ stdenv.mkDerivation ({
# so the glibc does not depend on its compiler store path
"libc_cv_as_needed=no"
];
installFlags = [ "sysconfdir=$(out)/etc" ];
buildInputs = stdenv.lib.optionals (cross != null) [ gccCross ]
++ stdenv.lib.optional (mig != null) mig;

View file

@ -90,6 +90,7 @@ stdenv.mkDerivation ({
configureFlags = [
"-C"
"--enable-add-ons"
"--sysconfdir=/etc"
"--localedir=/var/run/current-system/sw/lib/locale"
(if kernelHeaders != null
then "--with-headers=${kernelHeaders}/include"
@ -111,6 +112,8 @@ stdenv.mkDerivation ({
# so the glibc does not depend on its compiler store path
"libc_cv_as_needed=no"
];
installFlags = [ "sysconfdir=$(out)/etc" ];
buildInputs = stdenv.lib.optionals (cross != null) [ gccCross ]
++ stdenv.lib.optional (mig != null) mig;