* 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:
parent
30933c30d3
commit
4d0d7d78c5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue