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

Freeciv: enable on darwin #40904

Merged
merged 17 commits into from May 23, 2018
Merged

Conversation

matthewbauer
Copy link
Member

This should get the GTK client of FreeCiv working at least. Not sure how to get the SDL one though.

yurrriq and others added 17 commits May 18, 2018 09:11
- fetchurl -> fetchFromGitHub
- Update URLs: joelthelion -> wting
- mkdir + cp -> install
- Use -z flag to set zshshare_dir
- Add me as a maintainer
- Use recursive version instead of let
- meta: with stdenv.lib; ...
Ideally I'd like the whole `nixos`/`nixpkgs` channel distinction to disappear, but this is a step along that path. After a while being in this state, we can stop creating the magic `nixpkgs -> .` symlink inside our `nixos` channel tarballs and simplify that whole mess a bit.
Stop requiring the nixpkgs symlink in NixOS channel tarballs
…e-nix-for-darwin

wireguard: bump version and limit platforms
kakoune-unstable: 2018-03-22 -> 2018-05-21, debug mode disabled
This is how we do overrides elsewhere. The "name" suffix makes things
a little bit complicated IMO. Other input welcome.
URL: https://gitlab.gnome.org/GNOME/gtk/issues/303

This patch will fix the assertion generated at startup for freeciv on
macOS. Conditionally applied on Darwin.

Gdk:ERROR:gdkimage-quartz.c:250:_gdk_image_new_for_depth: assertion failed: (depth == 24 || depth == 32)
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: freeciv, gtk2

Partial log (click to expand)

shrinking /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/bin/freeciv-server
shrinking /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/bin/freeciv-manual
shrinking /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/bin/freeciv-mp-cli
shrinking /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/lib/libfreeciv.so.0.0.0
shrinking /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/lib/libfreeciv-srv.so.0.0.0
gzipping man pages under /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/lib  /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11/bin
patching script interpreter paths in /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11
checking for references to /build in /nix/store/s932v9j19gf8wjbk63l2zy0rwcznfmi4-freeciv-2.5.11...

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: autojump, enet, freeciv, gtk2, nvidia-texture-tools, sfml, spidermonkey_38

The following builds were skipped because they don't evaluate on x86_64-linux: wireguard-go

Partial log (click to expand)

shrinking /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/lib/libfreeciv-srv.so.0.0.0
shrinking /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/bin/freeciv-server
shrinking /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/bin/freeciv-sdl
shrinking /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/bin/freeciv-manual
shrinking /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/bin/freeciv-mp-cli
gzipping man pages under /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/share/man/
strip is /nix/store/mgyvr3kil9qv0mywikpi0dbli061bpg4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/lib  /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11/bin
patching script interpreter paths in /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11
checking for references to /build in /nix/store/abym5ffw8k8npwdbyp5s1rrrzi28a31c-freeciv-2.5.11...

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: freeciv, gtk2

Partial log (click to expand)

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Makefile:1305: freeciv-sdl] Error 1
make[3]: Leaving directory '/private/tmp/nix-build-freeciv-2.5.11.drv-0/freeciv-2.5.11/client'
make[2]: *** [Makefile:1460: all-recursive] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-freeciv-2.5.11.drv-0/freeciv-2.5.11/client'
make[1]: *** [Makefile:817: all-recursive] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-freeciv-2.5.11.drv-0/freeciv-2.5.11'
make: *** [Makefile:721: all] Error 2
builder for '/nix/store/8jmf3hfswcnsvgq8jc6l2mizvvpkb3v8-freeciv-2.5.11.drv' failed with exit code 2
�[31;1merror:�[0m build of '/nix/store/8jmf3hfswcnsvgq8jc6l2mizvvpkb3v8-freeciv-2.5.11.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: freeciv, gtk2

Partial log (click to expand)

shrinking /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11/bin/freeciv-server
shrinking /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11/lib/libfreeciv-srv.so.0.0.0
shrinking /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11/lib/libfreeciv.so.0.0.0
gzipping man pages under /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11/share/man/
strip is /nix/store/jk6j4lh9v5mvjdbdc35sj0zffhhf6s56-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11/lib  /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11/bin
patching script interpreter paths in /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11
checking for references to /build in /nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11...
/nix/store/nq7ni80h0a9sql2y8c29q4sa28w08l3i-freeciv-2.5.11
/nix/store/kb572p21gcyg29qd31ym49a6ybiabv85-gtk+-2.24.32

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: autojump, enet, freeciv, gtk2, nvidia-texture-tools, sfml, spidermonkey_38, wireguard-go

Partial log (click to expand)

cannot build derivation '/nix/store/a5r4iy01m09y40cgwhsq84s6x26vlmj9-sysctl.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/3kac5yg42qsr9wqlrvibk28lhkssvl5n-procps-compat.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/chh3g2jsh5bc7mkgwwzy6izw61vb8hi0-smpeg-svn390.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/agbkz14kw1gy7vmiabnf14b8rc8090cm-SDL_mixer-1.2.12.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/9chbllrq5rp0hgrmfbw0m711r0d92lvj-go-1.10.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/6bp56rkf27sc9ylsylxdi615xa0cgx43-parallel-20180422.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/smppixsqhr84ksg17dcw4q88k69yfhyl-freeciv-2.5.11.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/bh8x1z3yc72vcwbv6spriq44y56bj5q3-govers-20150109-3b5f175.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/hrr9m7274y0dcbjwrssf7r8byjry9gp5-wireguard-go-0.0.20180519.drv': 3 dependencies couldn't be built
error: build of '/nix/store/f1ym3vq42f1n1r37fm227xynfqn1d8sx-sfml-2.5.0.drv', '/nix/store/hrr9m7274y0dcbjwrssf7r8byjry9gp5-wireguard-go-0.0.20180519.drv', '/nix/store/m97hrxydms8xxwb53xxy4ybn16pnyjgp-nvidia-texture-tools-2.1.0.drv', '/nix/store/smppixsqhr84ksg17dcw4q88k69yfhyl-freeciv-2.5.11.drv', '/nix/store/v6g8mfi13x088f09adkbpyrw2ywhr9qx-gtk+-2.24.32.drv' failed

@knedlsepp
Copy link
Member

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: autojump, enet, freeciv, gtk2, nvidia-texture-tools, sfml, spidermonkey_38

The following builds were skipped because they don't evaluate on aarch64-linux: wireguard-go

Partial log (click to expand)

shrinking /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/bin/freeciv-sdl
shrinking /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/bin/freeciv-server
shrinking /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/lib/libfreeciv-srv.so.0.0.0
shrinking /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/lib/libfreeciv.so.0.0.0
gzipping man pages under /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/share/man/
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/lib  /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11/bin
patching script interpreter paths in /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11
checking for references to /build in /nix/store/lw6jc3fp823nmikcsw9gsazy75zhvdad-freeciv-2.5.11...
�[31;1merror:�[0m build of '/nix/store/5z9r8p1ykppk1671r8j09vjcazwi0qyd-nvidia-texture-tools-2.1.0.drv' failed

@matthewbauer
Copy link
Member Author

Tests are currently disabled anyway. I bet we will have to disable those if they break in headless environments though.

@matthewbauer matthewbauer merged commit 75ae4c5 into NixOS:staging May 23, 2018
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

9 participants