UPDATE: it looks like they will start using release tags in the next release
https://github.com/LedgerHQ/ledger-live/issues/478#issuecomment-1167118065
Git Clone URL: | https://aur.archlinux.org/ledger-live.git (read-only, click to copy) |
---|---|
Package Base: | ledger-live |
Description: | Ledger Live - Desktop |
Upstream URL: | https://github.com/LedgerHQ/ledger-live-desktop |
Keywords: | bitcoin cryptocurrency wallet |
Licenses: | MIT |
Conflicts: | ledger-live-bin, ledger-live-git |
Provides: | ledger-live |
Submitter: | meriadec |
Maintainer: | phnx47 |
Last Packager: | phnx47 |
Votes: | 17 |
Popularity: | 1.03 |
First Submitted: | 2018-07-19 09:01 (UTC) |
Last Updated: | 2022-06-01 01:28 (UTC) |
UPDATE: it looks like they will start using release tags in the next release
https://github.com/LedgerHQ/ledger-live/issues/478#issuecomment-1167118065
I can't update without any tag in the new git monorepo: https://github.com/LedgerHQ/ledger-live. You can use ledger-live-bin
or ledger-live-git
until the team start tagging new releases
@phnx47 Hi, I have the same error as @crabvk below (ledger wants to be in a git repo) and probably @artafinde since I am building in a clean chroot (with AUR helper).
You are ofc aware of this since you liked this issue) and you set mentioned env variable https://github.com/LedgerHQ/ledger-live-desktop/issues/3918
I applied edits from @crabvk's patch (so it gets github tag) and then it worked.
@artafinde what build error? show me the log
@phnx47: not able to build in a clean chroot, is this not supported?
@hitchhooker It should be at /etc/udev/rules.d/20-hw1.rules
However, I get a different failure on installation anyway. The error output gets cut off for being too long but the first notable failure looks to be:
⨯ Get "https://github.com/electron/electron/releases/download/v13.1.9/electron-v13.1.9-linux-x64.zip": dial tcp: lookup github.com on [::1]:53: read udp [::1]:53907->[::1]:53: read: connection refused
:: (0/1) Downloaded PKGBUILD: ledger-udev -> error fetching ledger-udev: error: The following untracked working tree files would be overwritten by merge: 20-hw1.rules Please move or remove them before you merge. Aborting context: exit status 1
--> cant locate any 20-hw1.rules file in system. How to solve this?
@crabvk Yes, sorry, my mistake... LedgerHQ should fix that
@phnx47
You're not building in clean chroot, right?
Also, as a maintainer, you have .git repo within PKGBUILD which makes the git call succeed.
@crabvk Btw, I don't have problems with compiling this package. Everything correct in PKGBUILD, command git rev-parse --short HEAD
not used during the build
@phnx47
Ok, fair enough. But this line causes the error https://github.com/LedgerHQ/ledger-live-desktop/blob/develop/tools/main.js#L15, because there's no git repo if building in clean chroot.
@crabvk It is not git version. Git used for npm packages only.
Hi. I've got an error
Error: Command failed: git rev-parse --short HEAD
fatal: not a git repository (or any of the parent directories): .git
That's because the archive from the source=
has no .git
. I think you should change it to "git+https://github.com/LedgerHQ/ledger-live-desktop.git#tag=v${pkgver}"
.
Here's the patch https://gist.github.com/crabvk/0da29fa5fc6e8312282b38fe5fc545ae
@dr460nf1r3 yes, yarn needs git for install packages
I assumed it was needed because without I got an error message about it missing. The log is also from a clean chroot btw.
@dr460nf1r3 It is shouldn't use git. Log looking strange. I will check it in clean system
Please add git to makedepends, needed in clean chroot. Also please have a look at this log, can't get this package to compile :/
is it safe to use? im a bit FUDing ;D
@phnx47 Ok, thanks, I do that and se how it works.
@agkbill I just run build script from sources. I don't think that problem with package. Try build code from source and ask questions in github.
Hi was trying out "Ledger-live 2.23.0-1" after I got same error on "ledger-live-bin 2.23.0-1" it builds and install, but UnhandledPromiseRejectionWarning: SyntaxError
It looks like the same error that I gor with previous versons.
[07:44:28] christer@Archmain /home/christer (1)
> ledger-live-desktop (base)
Ledger Live 2.23.0
(node:22582) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at load (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3711:14)
at async ensureNSLoaded (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3739:5)
at async Object.getKey (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3814:3)
at async App.<anonymous> (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:4087:20)
(node:22582) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:22582) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@blazko ledger-live-bin
- precompilled, it is extract binary from AppImage.
I did, but then there was a problem with dependencyledger-udev
that eventually, I had to comment out and install it manually afterwards.
Is there any reason we have both ledger-live
and ledger-live-bin
in aur
?
@blazko You should resolve conflict with ledger-live-bin
, just remove:
pacman -R ledger-live-bin
Can't update with error:
[blazej@blazej-t490s ~]$ pamac install ledger-live
Warning: ledger-live is only available from AUR
Preparing...
Cloning ledger-live build files...
Checking ledger-live dependencies...
Error: Failed to prepare transaction:
conflicting dependencies:
- ledger-live and ledger-live-bin are in conflict
Resolving dependencies...
Checking inter-conflicts...
Error: unresolvable package conflicts detected
Error: Failed to prepare transaction:
conflicting dependencies:
- ledger-live and ledger-live-bin are in conflict
My build still ok. Run yarn install
in ledger-live-desktop-2.20.0
. keccak was rebuilt...
• rebuilding native dependency name=@ledgerhq/ledger-core version=6.10.0
• rebuilding native dependency name=keccak version=1.4.0
• rebuilding native dependency name=node-hid version=2.1.1
• rebuilding native dependency name=secp256k1 version=4.0.2
• rebuilding native dependency name=usb-detection version=4.10.0
• rebuilding native dependency name=keccak version=3.0.0
Done in 102.50s.
Done in 513.81s.
But yes, I can't rebuild in ledger-live-desktop-2.20.0/node_modules/keccak
with command node-gyp rebuild
.
I will try reproduce in new virtual machine without additional software later
@phnx47
My build fails when npm tries to rebuild the module keccak. I can reproduce this by running "node-gyp rebuild" from commandline in ledger-live-desktop-2.20.0/node_modules/keccak
make: *** [keccak.target.mk:125: Release/obj.target/keccak/src/addon.o] Error 1
make: Leaving directory '/home/jboo/.cache/pacaur/ledger-live/src/ledger-live-desktop-2.20.0/node_modules/keccak/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.10.14-arch1-1
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/jboo/.cache/pacaur/ledger-live/src/ledger-live-desktop-2.20.0/node_modules/keccak
gyp ERR! node -v v12
gyp ERR! not ok.20.1
gyp ERR! node-gyp
@e3a4 I can't reproduce this error.
@phnx47 I am not sure if it's a network issue. I can download that file manually through browser and by using wget on CLI without issues. Tried compiling three times so far, all fail due to the connection refused error.
@e3a4 Here problem:
Get "https://github.com/electron/electron/releases/download/v11.1.1/electron-v11.1.1-linux-x64.zip": dial tcp: lookup github.com on [::1]:53: read udp [::1]:39493->[::1]:53: read: connection refused
I think you have problem with Network, because I can download it
@phx47 Here you go, please let me know if you need more info https://pastebin.com/hzv5VDiZ
@veox Yes, I will add udev rules to dependencies
@e3a4 Show your errors, please. I tried compile, and everything ok.
This does not compile, I'm getting many errors about missing dependencies.
Should this package perhaps be providing the udev rule files for ledger devices?
@pizzaman I will research information, it is new for me. Also, if you have time you can make Merge Request here: https://gitlab.com/phnx47-aur/ledger-live
Would it be possible to verify signed releases? There is some information regarding this in https://github.com/LedgerHQ/ledger-live-desktop/issues/3193
@TheGoliath
It's working great, thanks!
Yeah the icon location is outdated, breaking the package function. This should fix it:
Also, according to the docs, this should use nodejs-lts-erbium . I don't know if that's strictly necessary.
python2 no longer required, python should be fine:
https://github.com/LedgerHQ/ledger-live-desktop/issues/2579#issuecomment-594410876
https://github.com/LedgerHQ/ledger-live-desktop#requirements
Installation error : Missing 'static/images/browser-window-icon-512x512.png'
Doesn't work at all:
==> Starting build()...
yarn run v1.22.0
$ bash ./scripts/dist.sh
│ Ledger Live Desktop - 1.20.0
│ Linux 5.5.4-arch1-1 x86_64 GNU/Linux
│ commit 934e934099a51390541ed077cd43a00a2bd217ad
CI unset
NODE_ENV unset
JOBS 'max'
node v13.9.0
[✔] successfully applied dirty fix to handle linux icon
$ bash ./scripts/compile.sh
GIT_REVISION '1.20.0'
SENTRY_URL 'https://db8f5b9b021048d4a401f045371701cb@sentry.io/274561'
[✔] dist cleared
[✔] internal bundle built
[✘] failed to build main & renderer bundles
[✘] 5% [0] building modules 1/1 modules 0 active[hard-source:core] HardSourceWebpackPlugin is writing to a new confighash path for the first time: /home/martin/.cache/yay/ledger-live/src/ledger-live-desktop-1.20.0/node_modules/.cache/hard-source/b73d434c325407a0a7454e12ce24284599c5e091e77641ce45cf746263919b24
(node:28637) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
[1] error Command failed with exit code 2.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
Aborting...
Error making: ledger-live
@meriadec, makepkg output of build failure for 1.1.2: https://0x0.st/s4Lf.txt
Why can I only vote once?
@arp12 stacktrace?
Does not compile.
Pinned Comments
archcomment87118 commented on 2022-06-27 22:16 (UTC)
UPDATE: it looks like they will start using release tags in the next release
https://github.com/LedgerHQ/ledger-live/issues/478#issuecomment-1167118065
phnx47 commented on 2022-06-25 03:29 (UTC)
I can't update without any tag in the new git monorepo: https://github.com/LedgerHQ/ledger-live. You can use
ledger-live-bin
orledger-live-git
until the team start tagging new releases