Skip to content

hydrus: 609 -> 612, move to by-name, fix on darwin - #387547

Merged
GaetanLepage merged 9 commits into
NixOS:masterfrom
GaetanLepage:hydrus
Mar 7, 2025
Merged

GaetanLepage merged 9 commits into
NixOS:masterfrom
GaetanLepage:hydrus

Conversation

@GaetanLepage

@GaetanLepage GaetanLepage commented Mar 6, 2025 •

Copy link
Copy Markdown
Contributor

Things done

  • hydrus: format
  • hydrus: move to by-name
  • hydrus: cleanup
  • hydrus: 609 -> 612
  • hydrus: disable tests on darwin
  • miniupnpc: fix on darwin
  • bitcoin: add __darwinAllowNetworking to fix build in sandbox
  • bitcoin: modernize

Changelog: https://github.com/hydrusnetwork/hydrus/releases/tag/v612

cc @dali99 @evanjs

  • 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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg Bot added the 6.topic: darwin Running or building packages on Darwin label Mar 6, 2025
@github-actions github-actions Bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 6, 2025
@nix-owners
nix-owners Bot requested review from D4ndellion and evanjs March 6, 2025 09:49
@GaetanLepage
GaetanLepage marked this pull request as draft March 6, 2025 10:11
@GaetanLepage
GaetanLepage marked this pull request as ready for review March 6, 2025 13:43
@GaetanLepage
GaetanLepage requested a review from NickCao March 6, 2025 13:44
@ofborg ofborg Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 6, 2025
@ofborg ofborg Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 6, 2025
@github-actions github-actions Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 6, 2025
@nix-owners
nix-owners Bot requested a review from prusnak March 6, 2025 14:17
@nix-owners
nix-owners Bot requested review from RaghavSood, mmahut and roconnor March 6, 2025 14:53
@GaetanLepage

GaetanLepage commented Mar 6, 2025 •

Copy link
Copy Markdown
Contributor Author

elementsd unstable fails with:

wallet/bdb.cpp:627:58: error: 'fs::copy_option' has not been declared
  627 |                     fs::copy_file(pathSrc, pathDest, fs::copy_option::overwrite_if_exists);
      |                                                          ^~~~~~~~~~~

@GaetanLepage

This comment was marked as outdated.

@GaetanLepage

GaetanLepage commented Mar 6, 2025 •

Copy link
Copy Markdown
Contributor Author

hydrus now fails on aarch64-linux, while it works fine on master:

Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
test_client_api (hydrus.test.TestClientAPI.TestClientAPI.test_client_api) ... ERROR

======================================================================
ERROR: test_client_api (hydrus.test.TestClientAPI.TestClientAPI.test_client_api)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/z14v055qp4wag7jvl1flss14l5537yw2-hydrus-612/lib/python3.12/site-packages/hydrus/test/TestClientAPI.py", line 7586, in test_client_api
    self._test_add_files_migrate_files( connection, set_up_permissions )
  File "/nix/store/z14v055qp4wag7jvl1flss14l5537yw2-hydrus-612/lib/python3.12/site-packages/hydrus/test/TestClientAPI.py", line 1214, in _test_add_files_migrate_files
    [ ( ( content_update_package, ), kwargs ) ] = TG.test_controller.GetWrite( 'content_updates' )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 1, got 0)

----------------------------------------------------------------------
Ran 1 test in 1.751s

FAILED (errors=1)
This was version 609
Fontconfig error: Cannot load default config file: No such file: (null)

I bisected the failure to hydrusnetwork/hydrus@8938361 but that doesn't make any sense.

Comment thread pkgs/by-name/hy/hydrus/package.nix Resolved
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

Failures are not regressions as they are already present on master.
This PR, among other things, fixes hydrus and bitcoin on darwin.

@GaetanLepage

This comment was marked as outdated.

Comment thread pkgs/by-name/hy/hydrus/package.nix Resolved
Comment thread pkgs/by-name/hy/hydrus/package.nix Resolved
Comment thread pkgs/by-name/hy/hydrus/package.nix Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure if we then should set this already. Maybe it is not even the right fix?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ultimately, I had to disable the tests. Hence, I have now removed __darwinAllowLocalNetworking.

Comment thread pkgs/by-name/mi/miniupnpc/package.nix Resolved
@GaetanLepage
GaetanLepage force-pushed the hydrus branch 2 times, most recently from f926a89 to 72d5737 Compare March 7, 2025 13:48
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 387547


x86_64-linux

❌ 1 package failed to build:
  • elementsd-simplicity
✅ 65 packages built:
  • aerc
  • alephone
  • alephone.icons
  • atomic-swap
  • basicswap
  • basicswap.dist
  • bitcoin
  • bitcoin-abc
  • bitcoind
  • bitcoind-abc
  • bitcoind-knots
  • blockstream-electrs
  • chiaki-ng
  • dante
  • dolphin-emu
  • dolphin-emu-primehack
  • drawpile
  • eiskaltdcpp
  • elements
  • elementsd
  • flycast
  • fragments
  • gridcoin-research
  • groestlcoin
  • groestlcoind
  • hydrus
  • hydrus.doc
  • i2pd
  • libtransmission_3
  • libtransmission_3.apparmor
  • libtransmission_4
  • libtransmission_4.apparmor
  • lutris
  • lutris-free
  • miniupnpc
  • monero-cli
  • monero-cli.source
  • monero-gui
  • namecoind
  • particl-core
  • pshs
  • qodem
  • retroshare
  • sunshine
  • swiften
  • torrential
  • transmission_3
  • transmission_3-gtk
  • transmission_3-gtk.apparmor
  • transmission_3-qt
  • transmission_3-qt.apparmor
  • transmission_3.apparmor
  • transmission_3_noSystemd
  • transmission_3_noSystemd.apparmor
  • transmission_4
  • transmission_4-gtk
  • transmission_4-gtk.apparmor
  • transmission_4-qt (transmission_4-qt5)
  • transmission_4-qt.apparmor (transmission_4-qt5.apparmor)
  • transmission_4-qt6
  • transmission_4-qt6.apparmor
  • transmission_4.apparmor
  • warzone2100
  • yaup
  • zeroadPackages.zeroad-unwrapped

aarch64-linux

⏩ 3 packages marked as broken and skipped:
  • basicswap
  • basicswap.dist
  • particl-core
❌ 1 package failed to build:
  • elementsd-simplicity
✅ 59 packages built:
  • aerc
  • alephone
  • alephone.icons
  • atomic-swap
  • bitcoin
  • bitcoin-abc
  • bitcoind
  • bitcoind-abc
  • bitcoind-knots
  • chiaki-ng
  • dante
  • dolphin-emu
  • dolphin-emu-primehack
  • drawpile
  • eiskaltdcpp
  • elements
  • elementsd
  • flycast
  • fragments
  • gridcoin-research
  • groestlcoin
  • groestlcoind
  • hydrus
  • hydrus.doc
  • i2pd
  • libtransmission_3
  • libtransmission_3.apparmor
  • libtransmission_4
  • libtransmission_4.apparmor
  • miniupnpc
  • monero-cli
  • monero-cli.source
  • monero-gui
  • namecoind
  • pshs
  • qodem
  • retroshare
  • sunshine
  • swiften
  • torrential
  • transmission_3
  • transmission_3-gtk
  • transmission_3-gtk.apparmor
  • transmission_3-qt
  • transmission_3-qt.apparmor
  • transmission_3.apparmor
  • transmission_3_noSystemd
  • transmission_3_noSystemd.apparmor
  • transmission_4
  • transmission_4-gtk
  • transmission_4-gtk.apparmor
  • transmission_4-qt (transmission_4-qt5)
  • transmission_4-qt.apparmor (transmission_4-qt5.apparmor)
  • transmission_4-qt6
  • transmission_4-qt6.apparmor
  • transmission_4.apparmor
  • warzone2100
  • yaup
  • zeroadPackages.zeroad-unwrapped

x86_64-darwin

⏩ 6 packages marked as broken and skipped:
  • bitcoin-abc
  • bitcoind-abc
  • dolphin-emu-primehack
  • drawpile
  • warzone2100
  • yaup
❌ 2 packages failed to build:
  • dolphin-emu
  • elementsd-simplicity
✅ 34 packages built:
  • aerc
  • bitcoin
  • bitcoind
  • bitcoind-knots
  • dante
  • elements
  • elementsd
  • groestlcoin
  • groestlcoind
  • hydrus
  • hydrus.doc
  • i2pd
  • libtransmission_3
  • libtransmission_3.apparmor
  • libtransmission_4
  • libtransmission_4.apparmor
  • miniupnpc
  • particl-core
  • pshs
  • qodem
  • transmission_3 (transmission_3_noSystemd)
  • transmission_3-gtk
  • transmission_3-gtk.apparmor
  • transmission_3-qt
  • transmission_3-qt.apparmor
  • transmission_3.apparmor (transmission_3_noSystemd.apparmor)
  • transmission_4
  • transmission_4-gtk
  • transmission_4-gtk.apparmor
  • transmission_4-qt (transmission_4-qt5)
  • transmission_4-qt.apparmor (transmission_4-qt5.apparmor)
  • transmission_4-qt6
  • transmission_4-qt6.apparmor
  • transmission_4.apparmor

aarch64-darwin

⏩ 6 packages marked as broken and skipped:
  • bitcoin-abc
  • bitcoind-abc
  • dolphin-emu-primehack
  • drawpile
  • warzone2100
  • yaup
❌ 2 packages failed to build:
  • dolphin-emu
  • elementsd-simplicity
✅ 34 packages built:
  • aerc
  • bitcoin
  • bitcoind
  • bitcoind-knots
  • dante
  • elements
  • elementsd
  • groestlcoin
  • groestlcoind
  • hydrus
  • hydrus.doc
  • i2pd
  • libtransmission_3
  • libtransmission_3.apparmor
  • libtransmission_4
  • libtransmission_4.apparmor
  • miniupnpc
  • particl-core
  • pshs
  • qodem
  • transmission_3 (transmission_3_noSystemd)
  • transmission_3-gtk
  • transmission_3-gtk.apparmor
  • transmission_3-qt
  • transmission_3-qt.apparmor
  • transmission_3.apparmor (transmission_3_noSystemd.apparmor)
  • transmission_4
  • transmission_4-gtk
  • transmission_4-gtk.apparmor
  • transmission_4-qt (transmission_4-qt5)
  • transmission_4-qt.apparmor (transmission_4-qt5.apparmor)
  • transmission_4-qt6
  • transmission_4-qt6.apparmor
  • transmission_4.apparmor

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM but didn't test

@GaetanLepage
GaetanLepage merged commit 70a818c into NixOS:master Mar 7, 2025
@GaetanLepage
GaetanLepage deleted the hydrus branch March 7, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants