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

Fixes for various bugs introduced by stdenv update in staging #27522

Merged
merged 79 commits into from Jul 23, 2017

Conversation

ttuegel
Copy link
Member

@ttuegel ttuegel commented Jul 20, 2017

Motivation

staging is broken.

Testing

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

The bugfixes in this branch work, but I am not done testing to check that these are all the blocking bugs in staging.

aherrmann and others added 30 commits June 6, 2017 21:39
Previously failed on installation phase
when `substituteInPlace` could not find the cmake exports file.
Simple tool for creating Ethereum-based dapps
Fixes NixOS#21345 by generating the icon cache when the theme is installed.
keybase: 1.0.20 -> 1.0.22
keybase-gui: 1.0.23-20170519175207.d6c5e9e -> 1.0.25-20170714172717.73f9070
kbfs: 20170209.d1db463 -> 20170429.44efa06
I'm also removing the pants13-pre attribute since it's unnecessary and I
don't want to maintain 1.4.x prereleases yet.

I'm temporarily taking out the pants native rust engine shenanigans until
I can get a nix-native rust build of it to work (it works on Linux but
not on Darwin!)
Corebird requires gtksink gstreamer plugin to play videos. [1] The plugin,
however, is only built when GTK is available.

This patch adds gtk3 as an optional dependency to gst_all_1.gst-plugins-bad
package, allowing the build of gtksink.

[1]: baedert/corebird#431
Corebird requires gst-plugins-bad compiled with GTK support to play
videos.

This commit enables the GTK support.
gst_all_1.gst-plugins-bad: build gtksink plugin
Sorry, I broke evaluation in my last pants commit!
Otherwise some programmes cannot use the GPG agent, e.g. applications
started from dmenu.

Behaviour was changed in NixOS#26888, this reverts that part.
bitlbee service: Add option to load libpurple plugins into bitlbee
Google PageSpeed recommends turning this on to allow proxies to cache
The systemd service file shipped with strongswan has strongswan started after `network-online`. It turns out that this is for good reason: failure to connect on boot otherwise. 

See this thread on the mailing list, which my colleague initiated after finding that our NixOS strongswan config wouldn't connect on boot:
https://lists.strongswan.org/pipermail/users/2017-January/010359.html

Tested on a local config (which has the strongswan service config overridden).
Semi-automated Emacs package updates
Parallel building causes a test deadlock and has been disabled.
Commit 093cc00 sets the RANLIB environment
variable by default, causing `make' to invoke the wrong program.
Commit 093cc00 sets the environment variable
`AS' to the binutils assembler, but x264 needs yasm.
substituteInPlace was invoked with multiple targets on the command line, which
is not supported.
Commit 093cc00 sets the environment variable
`CPP' by default, but this intereferes with dependency calculation.
Commit 093cc00 sets the environment variable
`CPP' by default, but this interferes with dependency calculation.
Commit 093cc00 sets the `LD' environment
variable by default, interfering with the Makefile which uses gcc for linking.
substituteInPlace was invoked with multiple targets on the command line, which
is not supported.
@joachifm
Copy link
Contributor

In the short term, can @Ericson2314 and others who wish to work on fundamental features be allotted a jobset(s) on hydra, so that staging can return to serve its original purpose? I know there are some such jobsets already but it's not at all transparent how they are allocated.

@@ -14,6 +14,8 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;

enableParallelBuilding = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been having trouble building libunistring on openSUSE using nix, which I only solved by using an overlay that disabled tests for that particular library. It always got stuck in the test-lock test with full CPU usage. Does this solve that particular issue? I think I had the same problem with findutils. Let me see if I can recreate the issue on that particular machine.

Commit 093cc00 sets the AR environment variable
by default, but this causes the jam Makefile to use the wrong command.
Commit 093cc00 sets the AR environment variable
by default, but this causes the argyllcms Makefile to use the wrong command.
@ttuegel
Copy link
Member Author

ttuegel commented Jul 23, 2017

At this stage, all the NixOS tests are passing which were not already broken before the stdenv update, so I am going to merge this.

@ttuegel ttuegel merged commit 9af7782 into NixOS:staging Jul 23, 2017
@ttuegel
Copy link
Member Author

ttuegel commented Jul 23, 2017

@edolstra Hydra hasn't evaluated the staging branch. Could you nudge it in the right direction?

@FRidh
Copy link
Member

FRidh commented Jul 23, 2017

@ttuegel http://hydra.nixos.org/eval/1377845 includes these changes

@Ericson2314
Copy link
Member

@joachifm I tried to use http://hydra.nixos.org/jobset/nixpkgs/ericson2314-cross-staging, but it never would evaluate. :/

@Ericson2314
Copy link
Member

@ttuegel Wow. Thank you so much! I really owe you for cleaning up my mess---collect that debt someday.

@domenkozar
Copy link
Member

@ttuegel thank you man :)

@domenkozar
Copy link
Member

Go seems to be still broken: /nix/store/xilxav9i6xkrra3vclmlm7zwbbvr46qv-go-1.8.3/share/go/pkg/tool/linux_amd64/link: too many errors at http://hydra.nixos.org/build/56796101

@Ericson2314 any clues?

@FRidh
Copy link
Member

FRidh commented Jul 24, 2017

@domenkozar @Ericson2314 issue for Go #27589

@copumpkin
Copy link
Member

copumpkin commented Jul 25, 2017

I second giving @Ericson2314 his own Hydra job for testing his cross-compilation changes. When I was making sweeping changes to the Darwin stdenv (which is if anything less impactful to everyone than the work he's doing), I used the copumpkin-wip job on Hydra and it was extremely helpful for finding things I would've never found otherwise. Combined with "incrementalism" in my changes, that allowed me to make some pretty sweeping changes to a lot of the Darwin fundamentals a few months ago, without anyone really noticing (at least not negatively).

@globin
Copy link
Member

globin commented Jul 25, 2017

@edolstra @rbvermaa ^

@Ericson2314
Copy link
Member

I have hydra perms to make jobs, and @grahamc realized the problem was simply that I had previous disabled my job 😊. We're all good.

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