Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-17.09: update haskell package set to lts-9.21 plus latest versions of stack, cabal2nix, and git-annex #36204

Merged
merged 10 commits into from Mar 2, 2018

Conversation

peti
Copy link
Member

@peti peti commented Mar 2, 2018

This update bumps all Stackage packages from lts-9.3 to 9.21. These updates should be save since all those updates preserve the original API.

Furthermore, we update the following Stackage packages to their respective latest version:

These updates will include API changes, but since the list is rather small I think we can deal with any issues that might arise as a consequence of these updates.

Finally, all non-Stackage packages on Hackage are update to their latest version. This update is the riskiest one, because these updates will include API-breaking changes. There is precedent for taking that risk, however. We have done these kind of updates on release branches before and in the past everything has worked out okay.

The current state of these builds can be seen at https://hydra.nixos.org/jobset/nixpkgs/haskell-updates.

Ping: @CMCDragonkai, @bjornfor, @rsoeldner

peti added 2 commits March 2, 2018 18:09
… builds

Cabal 1.x says:

 | Warning: This package indirectly depends on multiple versions of the same
 | package. This is highly likely to cause a compile failure.

But in version 2.x, that warning is split into two lines differently:

 | Warning:
 |     This package indirectly depends on multiple versions of the same package. This is very likely to cause a compile failure.

This commit modifies the call to "egrep" to recognize both versions by virtue
of the "-z" flag, which essentially interprets the whole configure-time output
as one long line.

(cherry picked from commit 016aa58)
hackage-packages.nix was re-generated by hackage2nix v2.8.2-7-g3fb14ae from
Hackage revision commercialhaskell/all-cabal-hashes@7b9a671.
@peti peti merged commit 96e41a2 into NixOS:release-17.09 Mar 2, 2018
@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘ghc-7.4.2-binary’ in /var/lib/gc-of-borg/nix-test-rs-24/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-24/pkgs/development/compilers/ghc/7.4.2-binary.nix:9 is not supported on ‘aarch64-linux’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)


  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   480  100   480    0     0   1975      0 --:--:-- --:--:-- --:--:--  1967
100   480  100   480    0     0   1975      0 --:--:-- --:--:-- --:--:--  1967

fetching path ‘/nix/store/bz2jv5xw9fkr44clml4yl28987nfr006-cabal2nix-2.8.2’...

*** Downloading ‘https://cache.nixos.org/nar/02b7ary0pbh13bckkmjb14n43awsq165vc359c0n7hi390by1zvb.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/bz2jv5xw9fkr44clml4yl28987nfr006-cabal2nix-2.8.2’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1214k  100 1214k    0     0  2244k      0 --:--:-- --:--:-- --:--:-- 2244k

/nix/store/bz2jv5xw9fkr44clml4yl28987nfr006-cabal2nix-2.8.2

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Partial log (click to expand)

cannot build derivation '/nix/store/w93vfb0hqvz88mz0z0vl5zby9bkn0ky0-free-4.12.4.drv': 12 dependencies couldn't be built
cannot build derivation '/nix/store/s24szyhb5kgm3f5nkc7rly2j8a11myxa-adjunctions-4.3.drv': 13 dependencies couldn't be built
cannot build derivation '/nix/store/a1djq9pzx3lq89b1dr37dzilvbr1p7s9-http-client-tls-0.3.5.1.drv': 14 dependencies couldn't be built
cannot build derivation '/nix/store/4bpijks02k42p3qc6695xqlql0zhnrk7-hpack-0.27.0.drv': 15 dependencies couldn't be built
cannot build derivation '/nix/store/nbqlprjgqm51cck7g9gydccarj88sa23-kan-extensions-5.0.2.drv': 11 dependencies couldn't be built
cannot build derivation '/nix/store/2cra6ga6mhzbmic24hn58y8k09x9vjn9-lens-4.15.4.drv': 37 dependencies couldn't be built
cannot build derivation '/nix/store/ni1r2vbw63b8vh5pxrg174hbw2sgdkc8-language-nix-2.1.0.1.drv': 7 dependencies couldn't be built
cannot build derivation '/nix/store/i6y4kjsnd1g6immdlwbc26ld7vp0v0xm-distribution-nixpkgs-1.1.drv': 9 dependencies couldn't be built
cannot build derivation '/nix/store/g0g4vafwvajz1amq9nxb479agdbh3fzp-cabal2nix-2.8.2.drv': 20 dependencies couldn't be built
error: build of '/nix/store/g0g4vafwvajz1amq9nxb479agdbh3fzp-cabal2nix-2.8.2.drv' failed

@rsoeldner
Copy link

@peti I did a nixos-rebuild switch --upgrade but still same error, do I need to add a specific channel / ... ?

@bjornfor
Copy link
Contributor

bjornfor commented Mar 3, 2018

@rsoeldner: The channel hasn't updated yet (the build server has to build a lot of stuff and tests have to pass).

When you upgrade your system you'll see downloading Nix expressions from ‘https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.3109.48a76ca6f57/nixexprs.tar.xz’.... The 48a76ca part is the commit you're getting (i.e. the current channel). And if you look at git log 48a76ca6f57 you'll see that this PR is not yet in. Or invert the search: git log 48a76ca6f57..origin/release-17.09 and see that this PR hasn't yet been included in the channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants