[Nix-dev] Travis builds for master are broken, I'm mystified

Georges Dubus georges.dubus at gmail.com
Thu Jan 1 22:13:58 CET 2015


Hello

When I run the failing command (nix-build pkgs/top-level/release.nix -A
tarball), I get the same error message. The interesting part is :

checking pkgs/top-level/all-packages.nix on x86_64-darwin
error: while querying the derivation named ‘openarena-0.8.8’:
while evaluating the attribute ‘installPhase’ of the derivation
‘openarena-0.8.8’ at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/pkgs/games/openarena/default.nix":4:3:
attribute ‘glibc’ missing, at
"/tmp/nix-build-nixpkgs-tarball-15.05pre1234.abcdef.drv-0/nixpkgs/pkgs/games/openarena/default.nix":17:22

The error only triggers when evaluating for x86_64-darwin. I guess there is
something different with glibc on darwin (which makes sense).

The problem is that, even though the expression is not meant to work on
darwin, it is still evaluated there.

So, the question is: why is that line (
https://github.com/NixOS/nixpkgs/blob/1c8783f39b4110c7b965ccf819ed9a310cc92669/pkgs/games/openarena/default.nix#L17)
evaluated, even though it's never used? Shouldn't the lazy evaluation
prevent that? I'll leave the mic to someone who knows the language better
than me.




Le Thu Jan 01 2015 at 18:52:46, Wout Mertens <wout.mertens at gmail.com> a
écrit :

This is the first breakage: https://travis-ci.org/NixOS/nixpkgs/builds/
> 45113418
>
> The problem seems to be that stdenv.glibc does not exist on travis.
>
> However, checking out that commit seems to give no problems:
>
> $ git checkout 1c8783f
> $ nix-instantiate --eval . -A openarena.installPhase
> "mkdir -pv $out/bin\ncd $out\nunzip $src\n\nif [ \"x86_64-linux\" ==
> \"x86_64-linux\" ]; then\n  patchelf --set-interpreter /nix/store/
> la5imi1602jxhpds9675n2n2d0683lbq-glibc-2.20/lib/ld-linux*.so.?
> $out/openarena-$version/openarena.x86_64\n  makeWrapper
> \"$out/openarena-$version/openarena.x86_64\" \"$out/bin/openarena\" \\\n
>    --prefix LD_LIBRARY_PATH : \"/nix/store/d2p2wqvbbypk0b4i4n4jycjlwqa269
> qf-SDL-1.2.15/lib:/nix/store/7y7yqg21kb7x529j72qggnghz5y1z1
> 1h-libogg-1.3.2/lib:/nix/store/8piqvi5pa88djjmjky6bpqh316sjj9
> na-libvorbis-1.3.4/lib\"\nelse\n  patchelf --set-interpreter /nix/store/
> la5imi1602jxhpds9675n2n2d0683lbq-glibc-2.20/lib/ld-linux*.so.?
> $out/openarena-$version/openarena.i386\n  makeWrapper
> \"$out/openarena-$version/openarena.i386\" \"$out/bin/openarena\" \\\n
>  --prefix LD_LIBRARY_PATH : \"/nix/store/d2p2wqvbbypk0b4i4n4jycjlwqa269
> qf-SDL-1.2.15/lib:/nix/store/7y7yqg21kb7x529j72qggnghz5y1z1
> 1h-libogg-1.3.2/lib:/nix/store/8piqvi5pa88djjmjky6bpqh316sjj9
> na-libvorbis-1.3.4/lib\"\nfi\n"
>
> Any ideas?
>
> Wout.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150101/c28fb31b/attachment-0001.html 


More information about the nix-dev mailing list