fix travis evaluation by providing explicit libiconv for the rare cases

that need it, like uclibc
This commit is contained in:
Eric Seidel 2015-02-17 20:10:26 -08:00
parent a78d164b1e
commit d2a987d6e3
2 changed files with 8 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, linuxHeaders, libiconv, cross ? null, gccCross ? null,
{stdenv, fetchurl, linuxHeaders, libiconvReal, cross ? null, gccCross ? null,
extraConfig ? ""}:
assert stdenv.isLinux;
@ -95,7 +95,7 @@ stdenv.mkDerivation {
passthru = {
# Derivations may check for the existance of this attribute, to know what to link to.
inherit libiconv;
libiconv = libiconvReal;
};
meta = {

View file

@ -6285,11 +6285,16 @@ let
libgsf = callPackage ../development/libraries/libgsf { };
# glibc provides libiconv so systems with glibc don't need to build libiconv
# separately, but we also provide libiconvReal, which will always be a
# standalone libiconv, just in case you want it
libiconv =
if stdenv.isGlibc
then stdenv.cc.libc
else callPackage ../development/libraries/libiconv { };
libiconvReal = callPackage ../development/libraries/libiconv { };
# On non-GNU systems we need GNU Gettext for libintl.
libintlOrEmpty = stdenv.lib.optional (!stdenv.isLinux) gettext;
@ -9163,7 +9168,7 @@ let
uclibc = callPackage ../os-specific/linux/uclibc { };
uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
inherit fetchurl stdenv libiconv;
inherit fetchurl stdenv libiconvReal;
linuxHeaders = linuxHeadersCross;
gccCross = gccCrossStageStatic;
cross = assert crossSystem != null; crossSystem;