Skip to content

Instantly share code, notes, and snippets.

@samueldr
Last active December 20, 2017 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/bf5aa82272588f038e0a5d0314843f47 to your computer and use it in GitHub Desktop.
Save samueldr/bf5aa82272588f038e0a5d0314843f47 to your computer and use it in GitHub Desktop.

Trouble with nix .deb

Using those builds, which usually are reliable:

I'm having a bit of an issue, wherein the built .deb has strange behaviours.

  • 65928464 : works wonderfully
  • 65929075 : nix-channel --update fails with "Problem with the SSL CA cert (path? access rights?) (77)"

I was looking into the differences in the two builds, using hydra, it looks like the only differences are those; the nixpkgs checkout is the same (am I right?)


Trying to reproduce the issue locally to hopefully fix!

From this build's page: https://hydra.nixos.org/build/65929075

I have used the Actions menu to get the reproduce locally script. ( https://hydra.nixos.org/build/65929075/reproduce )

Using that script, I have now a .deb that technically should be as close as possible to the original failing one. Except that the built .deb works, there's no issue.

This mirrors the fact that the build just before works, and the changes are in the inputs; shellcheck being removed from the inputs should'nt really affect curl, unless there's some odd dependency tracked in, even then, that's for the .deb build.


Here's where it gets confusing:

~/tmp/nix-1.11.16-debian-failure/ffffff ⬤  diff -Naur hydra-built my-build | strings | grep '^--- '
--- hydra-built/usr/lib/libnixstore.so  2017-12-12 10:10:33.000000000 -0500
--- hydra-built/usr/share/doc/nix/manual/index.html     2017-12-12 10:10:32.000000000 -0500
--- hydra-built/usr/share/doc/nix/manual/manual.html    2017-12-12 10:10:32.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-build.1.gz       2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-channel.1.gz     2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-collect-garbage.1.gz     2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-copy-closure.1.gz        2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-env.1.gz 2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-hash.1.gz        2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-install-package.1.gz     2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-instantiate.1.gz 2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-prefetch-url.1.gz        2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-pull.1.gz        2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-push.1.gz        2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-shell.1.gz       2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man1/nix-store.1.gz       2017-12-12 10:10:51.000000000 -0500
--- hydra-built/usr/share/man/man5/nix.conf.5.gz        2017-12-12 10:10:52.000000000 -0500
--- hydra-built/usr/share/man/man8/nix-daemon.8.gz      2017-12-12 10:10:52.000000000 -0500

It looks like most of the diffs are in the man pages.

Unless libnixstore.so could affect curl?

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