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

electrum and electron-cash: add support for btchip library #40816

Merged
merged 7 commits into from
Oct 1, 2018

Conversation

nyanloutre
Copy link
Member

@nyanloutre nyanloutre commented May 20, 2018

Motivation for this change

Adding support for Ledger Nano S hardware wallet in electrum by adding a dependency on btchip.

Close #30347 (kudo for @k0001)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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.

@nyanloutre nyanloutre requested a review from FRidh as a code owner May 20, 2018 13:50
@nyanloutre nyanloutre changed the title Btchip electrum electrum: add support for btchip library May 20, 2018
@GrahamcOfBorg GrahamcOfBorg added 6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels May 20, 2018
@disassembler
Copy link
Member

@GrahamcOfBorg build btchip

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

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

Partial log (click to expand)

Cannot nix-instantiate `btchip' because:
�[31;1merror:�[0m attribute 'btchip' in selection path 'btchip' not found

@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: btchip

Partial log (click to expand)

Cannot nix-instantiate `btchip' because:
�[31;1merror:�[0m attribute 'btchip' in selection path 'btchip' not found

@GrahamcOfBorg
Copy link

No attempt on x86_64-linux (full log)

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

Partial log (click to expand)

Cannot nix-instantiate `btchip' because:
error: attribute 'btchip' in selection path 'btchip' not found

@disassembler
Copy link
Member

@GrahamcOfBorg build pythonPackages.btchip

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

Installing collected packages: btchip-python
Successfully installed btchip-python-0.1.27
/build/btchip-python-0.1.27
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27/lib
patching script interpreter paths in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27
checking for references to /build in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27...
/nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27

@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: pythonPackages.btchip

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.


@nyanloutre nyanloutre changed the title electrum: add support for btchip library electrum and electron-cash: add support for btchip library May 21, 2018
@disassembler
Copy link
Member

@GrahamcOfBorg build pythonPackages.btchip

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

Installing collected packages: btchip-python
Successfully installed btchip-python-0.1.27
/build/btchip-python-0.1.27
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27/lib
patching script interpreter paths in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27
checking for references to /build in /nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27...
/nix/store/hx7jfmfa3r2v8x3fxwwf9gwjdsg11s47-python2.7-btchip-python-0.1.27

@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: pythonPackages.btchip

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

Failure on aarch64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

                 from /nix/store/6p0715xklf0qr64ia3jqaav47j31ds2j-python2.7-numpy-1.14.2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /nix/store/6p0715xklf0qr64ia3jqaav47j31ds2j-python2.7-numpy-1.14.2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from memoryviewattrs.cpp:580:
/nix/store/6p0715xklf0qr64ia3jqaav47j31ds2j-python2.7-numpy-1.14.2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
building of '/nix/store/15z1r7l6n9cljw0a0k09sblnx98wq1zq-python2.7-Cython-0.28.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/08dn1ysl592ycrqa2pgcd7vz1my0fivs-python2.7-hidapi-0.7.99.post21.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/9c4v9p41b2h1z722347bcrnfabqnzbxv-python2.7-btchip-python-0.1.27.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/9c4v9p41b2h1z722347bcrnfabqnzbxv-python2.7-btchip-python-0.1.27.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

                 from /nix/store/6p0715xklf0qr64ia3jqaav47j31ds2j-python2.7-numpy-1.14.2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /nix/store/6p0715xklf0qr64ia3jqaav47j31ds2j-python2.7-numpy-1.14.2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from memoryviewattrs.cpp:580:
/nix/store/6p0715xklf0qr64ia3jqaav47j31ds2j-python2.7-numpy-1.14.2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
building of '/nix/store/15z1r7l6n9cljw0a0k09sblnx98wq1zq-python2.7-Cython-0.28.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/08dn1ysl592ycrqa2pgcd7vz1my0fivs-python2.7-hidapi-0.7.99.post21.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/9c4v9p41b2h1z722347bcrnfabqnzbxv-python2.7-btchip-python-0.1.27.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/9c4v9p41b2h1z722347bcrnfabqnzbxv-python2.7-btchip-python-0.1.27.drv' failed

@disassembler
Copy link
Member

See Failure above. This needs resolved before we can merge.

@nyanloutre
Copy link
Member Author

Seems to be a timeout problem with the aarch64 build machine on long builds.

The error here come from the Cython package that the aarch64 machine is not able to compile in time : https://hydra.nixos.org/build/72894188

@disassembler
Copy link
Member

@GrahamcOfBorg build pythonPackages.btchip

@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: pythonPackages.btchip

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: pythonPackages.btchip

Partial log (click to expand)

Installing collected packages: btchip-python
Successfully installed btchip-python-0.1.27
/build/btchip-python-0.1.27
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/ah9vd541hwrbbaykz2aks8i60k149wmd-python2.7-btchip-python-0.1.27
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ah9vd541hwrbbaykz2aks8i60k149wmd-python2.7-btchip-python-0.1.27/lib
patching script interpreter paths in /nix/store/ah9vd541hwrbbaykz2aks8i60k149wmd-python2.7-btchip-python-0.1.27
checking for references to /build in /nix/store/ah9vd541hwrbbaykz2aks8i60k149wmd-python2.7-btchip-python-0.1.27...
/nix/store/ah9vd541hwrbbaykz2aks8i60k149wmd-python2.7-btchip-python-0.1.27

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

   char *__pyx_v_a_2d_char_ptr_array[10][20];
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cvardef.cpp:1074:10: warning: variable ‘__pyx_v_a_2d_char_ptr_ptr_array’ set but not used [-Wunused-but-set-variable]
   char **__pyx_v_a_2d_char_ptr_ptr_array[10][20];
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==============================
building of '/nix/store/xpg1zk3gwmlapnsvlmvw3p3zizs7c3ky-python2.7-Cython-0.28.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/mihrcbgm4prc9gw1xxkr4hh6jh6fhfc8-python2.7-hidapi-0.7.99.post21.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/aql3hc2rgsvxa8jhap5lmv0k0nsn98h3-python2.7-btchip-python-0.1.27.drv': 1 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/aql3hc2rgsvxa8jhap5lmv0k0nsn98h3-python2.7-btchip-python-0.1.27.drv' failed

@nyanloutre
Copy link
Member Author

@GrahamcOfBorg build pythonPackages.btchip

@nyanloutre
Copy link
Member Author

Waiting on #45644

@nyanloutre
Copy link
Member Author

@disassembler it should build now 🎉

@disassembler
Copy link
Member

@GrahamcOfBorg build pythonPackages.btchip

@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: pythonPackages.btchip

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 aarch64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

Installing collected packages: btchip-python
Successfully installed btchip-python-0.1.28
/build/btchip-python-0.1.28
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/2ywmhw6xgmfgkvfnlf6pw75dmw1m3d98-python2.7-btchip-python-0.1.28
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/2ywmhw6xgmfgkvfnlf6pw75dmw1m3d98-python2.7-btchip-python-0.1.28/lib
patching script interpreter paths in /nix/store/2ywmhw6xgmfgkvfnlf6pw75dmw1m3d98-python2.7-btchip-python-0.1.28
checking for references to /build in /nix/store/2ywmhw6xgmfgkvfnlf6pw75dmw1m3d98-python2.7-btchip-python-0.1.28...
/nix/store/2ywmhw6xgmfgkvfnlf6pw75dmw1m3d98-python2.7-btchip-python-0.1.28

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pythonPackages.btchip

Partial log (click to expand)

Installing collected packages: btchip-python
Successfully installed btchip-python-0.1.28
/build/btchip-python-0.1.28
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/779g4663zykwj7ifbrmiycp0bqw3izwa-python2.7-btchip-python-0.1.28
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/779g4663zykwj7ifbrmiycp0bqw3izwa-python2.7-btchip-python-0.1.28/lib
patching script interpreter paths in /nix/store/779g4663zykwj7ifbrmiycp0bqw3izwa-python2.7-btchip-python-0.1.28
checking for references to /build in /nix/store/779g4663zykwj7ifbrmiycp0bqw3izwa-python2.7-btchip-python-0.1.28...
/nix/store/779g4663zykwj7ifbrmiycp0bqw3izwa-python2.7-btchip-python-0.1.28

@nyanloutre
Copy link
Member Author

@disassembler it seems to have build successfully

@disassembler disassembler merged commit 483e2a1 into NixOS:master Oct 1, 2018
@disassembler
Copy link
Member

Merged! Thanks for the contribution!

@nyanloutre
Copy link
Member Author

Thanks for your time !

@nyanloutre nyanloutre deleted the btchip-electrum branch October 2, 2018 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants