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

gshogi: init at 0.5.1 #41840

Merged
merged 1 commit into from Jun 12, 2018
Merged

gshogi: init at 0.5.1 #41840

merged 1 commit into from Jun 12, 2018

Conversation

ciil
Copy link
Member

@ciil ciil commented Jun 11, 2018

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • 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.

@xeji
Copy link
Contributor

xeji commented Jun 11, 2018

@GrahamcOfBorg build gshogi

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gshogi

Partial log (click to expand)

running build_ext
copying build/lib.linux-x86_64-3.6/gshogi/engine.cpython-36m-x86_64-linux-gnu.so -> gshogi
/build/source/gshogi/gamelist.py:20: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/r0lv3i2jiwxpg1d954761dwgg7q7qgx9-gshogi-0.5.1

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: gshogi

Partial log (click to expand)

engine/gnushogi.h:164:13: error: conflicting types for 'setlinebuf'
extern void setlinebuf(FILE *__stream);
            ^
/nix/store/xn55wd7nimdi085kji54mrrqqnqvcasz-Libsystem-osx-10.11.6/include/stdio.h:461:6: note: previous declaration is here
int      setlinebuf(FILE *);
         ^
1 error generated.
error: command 'clang' failed with exit status 1
builder for '/nix/store/pbnqxg9zgcy07947jxhqwkg40iv2lz50-gshogi-0.5.1.drv' failed with exit code 1
error: build of '/nix/store/pbnqxg9zgcy07947jxhqwkg40iv2lz50-gshogi-0.5.1.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gshogi

Partial log (click to expand)

running build_ext
copying build/lib.linux-aarch64-3.6/gshogi/engine.cpython-36m-aarch64-linux-gnu.so -> gshogi
/build/source/gshogi/utils.py:20: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk

----------------------------------------------------------------------
Ran 0 tests in 0.001s

OK
/nix/store/8b1lp4gcxwrp8hx8h1gcyh7al88p40xd-gshogi-0.5.1

buildPythonApplication rec {
pname = "gshogi";
version = "0.5.1";
name = "${pname}-${version}";
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is not necessary for python apps since name is derived automatically. Please delete.

meta = with stdenv.lib; {
description = "A graphical implementation of the Shogi board game, also known as Japanese Chess";
homepage = http://johncheetham.com/projects/gshogi/;
license = licenses.gpl3;
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't build on darwin (the error looks like incompatible code), please restrict to linux by adding
platforms = platforms.linux; here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Didn't have any darwin machines available, so I thought might as well try. Changed now.

pygobject3
pycairo
];

Copy link
Contributor

Choose a reason for hiding this comment

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

 ----------------------------------------------------------------------
Ran 0 tests in 0.000s

Since the package doesn't provide tests, disable them:

doCheck = false;  # no tests available

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, right. Added.

@xeji
Copy link
Contributor

xeji commented Jun 12, 2018

@GrahamcOfBorg build gshogi

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: gshogi

Partial log (click to expand)


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

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


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: gshogi

Partial log (click to expand)

post-installation fixup
Wrapping program /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1/bin/gshogi
shrinking RPATHs of ELF executables and libraries in /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1
shrinking /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1/lib/python3.6/site-packages/gshogi/engine.cpython-36m-x86_64-linux-gnu.so
strip is /nix/store/21ymadblbmsbb2bk4q7gl4kjasp8zmgd-binutils-2.30/bin/strip
/nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1
stripping (with command strip and flags -S) in /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1/lib  /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1/bin
patching script interpreter paths in /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1
checking for references to /build in /nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1...
wrapping `/nix/store/msfh27584sg0psqw4qqx3bklqrbf0s9l-gshogi-0.5.1/bin/.gshogi-wrapped'...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: gshogi

Partial log (click to expand)

post-installation fixup
Wrapping program /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1/bin/gshogi
shrinking RPATHs of ELF executables and libraries in /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1
shrinking /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1/lib/python3.6/site-packages/gshogi/engine.cpython-36m-aarch64-linux-gnu.so
strip is /nix/store/qg2agrqkf240s656d207zqhipl0bc2id-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1/lib  /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1/bin
patching script interpreter paths in /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1
checking for references to /build in /nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1...
wrapping `/nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1/bin/.gshogi-wrapped'...
/nix/store/bsvhn9ar92ansal0g8bbj56nrwgvl19x-gshogi-0.5.1

Copy link
Contributor

@xeji xeji left a comment

Choose a reason for hiding this comment

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

Thank you!

@xeji xeji merged commit 6fb9d11 into NixOS:master Jun 12, 2018
orivej added a commit that referenced this pull request Jun 12, 2018
* master: (161 commits)
  pcsclite: clean up after #41790
  tor: 0.3.3.6 -> 0.3.3.7
  opae: init at 1.0.0
  tinc: 1.0.33 -> 10.0.34
  tinc_pre: 1.1pre15 -> 1.1pre16
  sit: 0.3.2 -> 0.4.0 (#41863)
  platforms/raspberrypi: enable kernelAutoModules
  libupnp: 1.6.21 -> 1.8.3 (#41684)
  androidStudioPackages.{dev,canary}: 3.2.0.16 -> 3.2.0.17
  tdesktop: 1.3.0 -> 1.3.7
  gns3Packages.{server,gui}{Stable,Preview}: 2.1.6 -> 2.1.7
  aws-sam-cli: init at 0.3.0 (#41877)
  nixos/nat: optional networking.nat.externalInterface (#41864)
  linux: 4.17 -> 4.17.1
  linux: 4.16.14 -> 4.16.15
  linux: 4.14.48 -> 4.14.49
  nixos/unbound: add restart (#41885)
  maintainers/create-azure.sh: remove hydra.nixos.org as binary cache (#41883)
  gshogi: init at 0.5.1 (#41840)
  neovim: add missing libiconv
  ...
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

3 participants