hello pychuang. could you add the logseq icon to the pkgbuild?
The logseq-desktop package already has one, I think you can copy what was done in it.
Thanks
| Git Clone URL: | https://aur.archlinux.org/logseq-desktop-git.git (read-only, click to copy) |
|---|---|
| Package Base: | logseq-desktop-git |
| Description: | A privacy-first, open-source platform for knowledge sharing and management. |
| Upstream URL: | https://logseq.com |
| Keywords: | logseq |
| Licenses: | AGPL3 |
| Conflicts: | logseq-desktop, logseq-desktop-bin |
| Provides: | logseq-desktop |
| Submitter: | pychuang |
| Maintainer: | bader |
| Last Packager: | bader |
| Votes: | 5 |
| Popularity: | 0.000514 |
| First Submitted: | 2021-03-17 09:10 (UTC) |
| Last Updated: | 2023-10-05 02:52 (UTC) |
hello pychuang. could you add the logseq icon to the pkgbuild?
The logseq-desktop package already has one, I think you can copy what was done in it.
Thanks
@bader Thanks. Fixed.
Package fails to build due to a recent change in shadow-cljs.edn and deps.edn
PR: https://github.com/logseq/logseq/pull/3517
Error:
==> Starting prepare()...
patching file deps.edn
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file deps.edn.rej
patching file shadow-cljs.edn
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file shadow-cljs.edn.rej
==> ERROR: A failure occurred in prepare().
Aborting...
-> error making: logseq-desktop-git
PSA: if you are having issues with high CPU in logseq ^0.5.2 this is due to switch to electron 15.
To fix the high CPU usage, you can re-index the graph on start of logseq or use the latest nightly release:
https://github.com/logseq/logseq/releases/tag/nightly
For more information, refer to the GitHub issue:
https://github.com/logseq/logseq/issues/3421#issuecomment-994988672
@pychuang I cleared the cache and yes I can confirm that fixed the build issue. Thank you!
@bader yeah, it's so mysterious. At my first attempt, yay -S logseq-desktop-git gave me the same error. At my second attempt, downloading the source manually and using this PKGBUILD worked well. At my last attempt, I deleted some cached files, and yay -S logseq-desktop-git suddenly worked again... though I don't know why. And now I'm not able to reproduce the error anymore...
If you are still not able to use yay to build/install this package, could you please try one or all of these tries?
~/.cache/yay/logseq-desktop-git, ~/.npm, ~/.m2, and ~/.gitlibsyayThe package fails to build
[:app] Compiling ...
The required JS dependency "electron" is not available, it was required by "node_modules/@sentry/electron/esm/renderer/backend.js".
Dependency Trace:
frontend/core.cljs
frontend/handler.cljs
frontend/modules/instrumentation/core.cljs
frontend/modules/instrumentation/sentry.cljs
node_modules/@sentry/electron/esm/renderer/index.js
node_modules/@sentry/electron/esm/renderer/client.js
node_modules/@sentry/electron/esm/renderer/backend.js
Searched for npm packages in:
/home/user/.cache/yay/logseq-desktop-git/src/logseq-desktop-git/node_modules
See: https://shadow-cljs.github.io/docs/UsersGuide.html#npm-install
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
Aborting...
-> error making: logseq-desktop-git
I was able to build the package manually by downloading from git
To the person who flagged (or anyone who wants to flag) this package as out-of-date:
This is a GIT AUR package. It has nothing to do with the released versions. Whenever you (re-)build a GIT AUR package, it automatically pulls and (re-)builds with the latest commit and updates the version tag. So as long as the building process works fine, a GIT AUR package is not out-of-date.
If you still have questions, please consult Wiki or Reddit before you do anything.
If you encounter an error saying Package subpath './lib/node' is not defined by "exports" in .../logseq/node_modules/postcss/package.json, try to manually replace your nodejs with nodejs-lts-gallium, which provides nodejs 16.
The Arch's nodejs now is at version 17, and some dependencies of logseq haven't been coping well with nodejs 17, though they should.
@Edgeworth
Yes, nodejs is required during build time. However, npm already depends on nodejs, so according to Arch's guideline, there's no need to explicitly include nodejs in the makedepends again (npm is already in makedepends).
The issue you encountered was due to that nodejs-lts-erbium also provides nodejs. If you check nodejs-lts-erbium with pacman -Qi or -Si, it will show Provides: nodejs=12.22.4. So specifying nodejs in makedepends would not solve the issue because makepkg and pacman see nodejs-lts-erbium as a legal nodejs provider.
As the underlying issue is caused by the nodejs version rather than which nodejs package is used, I think the solution should be specifying the nodejs version in PKGBUILD. For example, nodejs>=16 will disqualify nodejs-lts-erbium because the later one only provides nodejs=12.22.4. I will try to test it later this weekend.
Pinned Comments
pychuang commented on 2022-08-09 16:03 (UTC)
electronanymore becauseyarn's electron already supports Wayland.Extra notes to people who want to flag this package out-of-date:
This is a GIT AUR package. It has nothing to do with the released versions. Whenever you (re-)build a GIT AUR package, it automatically pulls and (re-)builds with the latest commit and updates the version tag. So as long as the building process works fine, a GIT AUR package is not out-of-date.