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: fix build, update to 4.5.6 #349753

Merged
merged 4 commits into from
Oct 19, 2024
Merged

Conversation

Yarny0
Copy link
Contributor

@Yarny0 Yarny0 commented Oct 19, 2024

  • Since the update to version 5, the python3Packages.protobuf package no longer provides the protoc program, causing the electrum build to fail. Instead, one has to add pkgs.protobuf (not the python package) directly.
  • Update electrum to newest version 4.5.6. Notable changes (documented in the release notes) include:
    • Tests are now packaged in the release tarball. Due to this we can drop our mechanism to inject the tests during the build process. This is even necessary as the build would now fail with this mechanism still active (therefore the update commit also drops the test injection mechanism).
    • The version requirement for ledger-bitcoin got bumped to "<0.4". This allows us to unpin the version.
  • Switch to new build-system/dependencies

This should fix #349746

Notifying maintainers: @joachifm @np @prusnak @chewblacka

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Result of nixpkgs-review run on x86_64-linux 1

2 packages built:
  • electrum
  • electrum.dist

Add a 👍 reaction to pull requests you find important.

Since the update to version 5 with
NixOS@7cdaa0b ,
the `python3Packages.protobuf` package
no longer provides the `protoc` program.
Instead, one has to add the `protobuf` package
(not the python package) directly.
Release notes:
https://github.com/spesmilo/electrum/blob/4.5.6/RELEASE-NOTES

Beginning with this update,
electrum includes its tests in its release tarballs, cf.

spesmilo/electrum#9207
spesmilo/electrum@3ec16a0
https://github.com/spesmilo/electrum/blob/4.5.6/RELEASE-NOTES#L31

Therefore we drop the separate download of tests.
This reverts commit 54bea47.

It is no longer needed as electrum 4.5.6 raised its
`ledger-bitcoin` version limit to "<0.4", cf.

spesmilo/electrum#9035
spesmilo/electrum@719292f
https://github.com/spesmilo/electrum/blob/4.5.6/RELEASE-NOTES#L24
.. replacing `nativeBuildInputs` and `propagatedBuildInputs`.
@prusnak
Copy link
Member

prusnak commented Oct 19, 2024

@GrahamcOfBorg build electrum

@prusnak prusnak merged commit 76e497c into NixOS:master Oct 19, 2024
34 of 36 checks passed
@Yarny0 Yarny0 deleted the electrum-fix-update branch October 19, 2024 19:43
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.

Build failure: electrum
2 participants