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

WIP: update monero to v0.14.0.2 #57247

Closed

Conversation

thedavidmeister
Copy link
Contributor

@thedavidmeister thedavidmeister commented Mar 10, 2019

Motivation for this change

this allows monerod to sync blocks again

#57210

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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@thedavidmeister
Copy link
Contributor Author

thedavidmeister commented Mar 10, 2019

patch currently fails to apply (i'm going to bed now, maybe someone else can fix?)

@rnhmjoj @ehmry

[thedavidmeister@nixos:~/nixpkgs]$ nix-shell -p nox --run "nox-review pr 57247"
=== Reviewing PR 57247 : WIP: update monero to v0.14.0.2
==> We're in a git repo, trying to fetch it
==> Fetching base (master)
==> Fetching PR
==> Fetching extra history for merging
==> Merging PR into base
Building in /run/user/1000/nox-review-v10f3mzu: monero monero-gui
Invoking nix-build -A monero -A monero-gui /home/thedavidmeister/.nox/nixpkgs
these derivations will be built:
  /nix/store/ybz1z0fyn2mnxyfc8d1fjgzqa0ihs394-monero-gui-0.14.0.0.drv
building '/nix/store/ybz1z0fyn2mnxyfc8d1fjgzqa0ihs394-monero-gui-0.14.0.0.drv'...
unpacking sources
unpacking source archive /nix/store/9b85lmw4m991r1k70pxn6jv08kim9jv9-source
source root is source
patching sources
applying patch /nix/store/995jvgwy92jsh7ajqmqkh2fqgci0zbv4-move-log-file.patch
patching file main.cpp
Hunk #1 succeeded at 119 (offset 4 lines).
patching file Logger.cpp
Hunk #1 FAILED at 15.
1 out of 1 hunk FAILED -- saving rejects to file Logger.cpp.rej
builder for '/nix/store/ybz1z0fyn2mnxyfc8d1fjgzqa0ihs394-monero-gui-0.14.0.0.drv' failed with exit code 1
error: build of '/nix/store/ybz1z0fyn2mnxyfc8d1fjgzqa0ihs394-monero-gui-0.14.0.0.drv' failed
The invocation of "nix-build -A monero -A monero-gui /home/thedavidmeister/.nox/nixpkgs" failed

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 10, 2019

I have an update ready for monero but I paused is it since I couldn't get the GUI to run, though it builds fine. I'll give it another try soon.

@thedavidmeister
Copy link
Contributor Author

@rnhmjoj aaah ok, i only tested the monerod syncing actually, i didn't test all the wallet commands as well, thanks

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 11, 2019

In the meantime you can grab the updated patch here and fix the build.

@thedavidmeister
Copy link
Contributor Author

@rnhmjoj yeah patch worked thanks

@ikervagyok
Copy link
Contributor

ping #57109

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 14, 2019

The issue with monero-gui seems to be NixOS related: it's not present in stable.
I will be bisecting and try to fix it.

@ghost ghost mentioned this pull request Mar 15, 2019
10 tasks
@thedavidmeister
Copy link
Contributor Author

thedavidmeister commented Mar 17, 2019

note to self:

export NIXPKGS=`pwd`
nix-build $NIXPKGS -A monero-gui --run-env
monerod

@thedavidmeister
Copy link
Contributor Author

thedavidmeister commented Mar 17, 2019

works for me on nixos with the monero-wallet-cli + monerod

i needed to upgrade my ledger to firmware 1.5.5 and monero app to 1.2.2 though

i had to do the firmware/monero upgrade on a non-nixos machine as i don't think ledger live is supported on nixos yet

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 17, 2019

After a looong git bisect it appears 8e811ec introduced the issue.
However, simply downgrading Qt with libsForQt511 doesn't work: the program produces a different error but still doesn't start.

@thedavidmeister
Copy link
Contributor Author

thedavidmeister commented Mar 17, 2019

@rnhmjoj ok so potentially an issue with qt 5.12 with monero gui itself?

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 18, 2019

Yes, monero-gui requires qt>5.9 but the readme doesn't give an upper bound, so it's possibile 5.12 made some breaking change or regression. However downgrading should work: this makes me think there is something else wrong on the nixpkgs side.

@thedavidmeister
Copy link
Contributor Author

dunno if this is related but when i upgraded the monero version in nixpkgs it did not upgrade monerod until i upgraded the monero-gui version too

is it possible that qt version needs to be set/downgraded in two places?

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 18, 2019

I'm not sure i follow, sorry. monero doesn't depend on qt, is a cli, only monero-gui does.

@thedavidmeister
Copy link
Contributor Author

ok, maybe red herring

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 19, 2019

Ok, so i just found out this affects other Qt applications as well: I have found a fix.
I'll make a PR soon.

@rnhmjoj rnhmjoj mentioned this pull request Mar 19, 2019
10 tasks
Copy link
Contributor

@rnhmjoj rnhmjoj left a comment

Choose a reason for hiding this comment

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

@thedavidmeister can you rename the commits to "monero: x -> y"?

@thedavidmeister
Copy link
Contributor Author

@rnhmjoj all 3 of them to the same name?

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 20, 2019

I'd keep the monerod commit separate as "monero: 0.13.0.4 -> 0.13.0.2" and squash the two monero-gui commits into one "monero-gui: 0.13.0.4 -> 0.14.0.0".

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 23, 2019

ping

@thedavidmeister thedavidmeister mentioned this pull request Mar 25, 2019
10 tasks
@thedavidmeister
Copy link
Contributor Author

yup, over here #58250

@Janik-Haag Janik-Haag added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants