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: 2.9.3 -> 3.0.2 #31470
electrum: 2.9.3 -> 3.0.2 #31470
Conversation
I couldn't test it built against master, as I get an error message when I run the binary on a 17.09 system:
|
4e1b3b2
to
12dd9b4
Compare
1d79090
to
7c2e0b6
Compare
# Recording the creation timestamps introduces indeterminism to the build | ||
sed -i '/Created: .*/d' gui/qt/icons_rc.py | ||
''; | ||
|
||
postInstall = '' | ||
# Despite setting usr_share above, these files are installed under | ||
# $out/nix ... | ||
mv $out/lib/python2.7/site-packages/nix/store"/"*/share $out | ||
rm -rf $out/lib/python2.7/site-packages/nix | ||
mv $out/lib/python3.6/site-packages/nix/store"/"*/share $out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${python.sitePackages}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed it
description = "JSON RPC client library - Pelix compatible fork"; | ||
homepage = https://pypi.python.org/pypi/jsonrpclib-pelix/; | ||
license = lib.licenses.asl20; | ||
maintainers = [ lib.maintainers.joachifm ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is @joachifm maintaining this expression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They haven't replied yet. What's the procedure for finding a maintainer for necessary new dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can make yourself the maintainer or leave it empty (preference on the former).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the maintainer line for now, I'm not sure I can provide the level of attention needed atm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only care to the extent that it affects electrum, so wouldn't be maintaining it per se. It used to be internal to the electrum expression for that reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added myself as maintainer afterall.
cf4255c
to
14e0589
Compare
This fork of jsonrpclib supports Python 3 and is necessary for electrum from version 3.0.0 onwards. Adding myself - moredread - as maintainer.
14e0589
to
1b85d87
Compare
Have added myself as maintainer, and updated the package to 3.0.2, which was released in the meantime. |
For those who want to run Electrum 3.0.2 now, here's a quick derivation with pinned dependencies: Edit: Explicitly reference this PR. |
@nonsequitur do you mean my PR or your gist that isn't working with master? Are you running NixOS 17.09 or master on your system? |
@Moredread I'm running NixOS revision eafd703 which is in the 17.09 channel. |
Any way to move this ahead? |
Someone needs to find out why the xcb plugin loading doesn't work when build against master. I've tested it with a system running master, and the xcb error happens there too. :/ |
Basically, the problem is a runtime impurity, which can be "fixed" on non-NixOS by setting |
(The above worked for me, anyways) |
@joachifm Thanks :) I think it might be a good idea to backport it to the 17.09 channel, as pre-3.0 has problems with SegWit addresses? As the issue with QT/xcb didn't happen on the older channel, that shouldn't be a blocker. |
If there are problems with the version on stable, a bump makes sense to me. |
Hm, OTOH I see that SegWit support was added in 3.0, so under a strict interpretation that'd count as a new feature not a bug fix, or is there a specific issue with the 2.9 series? (I'm not really clued into SegWit or electrum's support for it). |
@joachifm I had crashes with watching wallets, that had SegWit transactions, but I have to check whether it was the latestst 2.X release |
@Moredread I see. If you can ascertain whether there are issues with 2.9, please open a cherry-pick PR if you have the time, or let me know and I'll pick it when I can. |
Meanwhile, electrum 3.x has been backported to fix a security issue. |
Motivation for this change
Upgrading electrum to the latest version. As it doesn't support Python 2 anymore, it is now built against Python 3. For this, jsonrpclib-pelix is needed, a fork of jsonrpclib, that works with Python 3. See the first of the commit in the PR. If this is acceptable, would you, @joachifm, also be the maintainer of the new package?
I couldn't test it built against master, as I get an error message when I run the binary. I think it's an incompatibility of the QT5 runtime library. See the comment below for details. I backported it to 17.09 (only needs a later version of protobuf, e.g. protobuf3_2), and there it works fine.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)