-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Joplin #26952
Joplin #26952
Conversation
I cannot reproduce this travis failure.... |
weird... |
I don't know if this would help, but searching I found https://github.com/electron-userland/electron-builder |
... yes, I found that too... and it means nothing, other than that electron-builder exists, and it builds fine on my local machine |
It may relate to the fact that CI run |
diff --git a/srcpkgs/joplin-desktop/template b/srcpkgs/joplin-desktop/template
index 669756d2b5..410abb23be 100644
--- a/srcpkgs/joplin-desktop/template
+++ b/srcpkgs/joplin-desktop/template
@@ -22,7 +22,7 @@ do_build() {
# Remove unused modules
rm -rf packages/{app-mobile,app-cli,generator-joplin,app-clipper}
- npm install
+ npm install --unsafe-perm
cd packages/app-desktop
npm run dist
} |
Actually, this is what I think better: diff --git a/srcpkgs/joplin-desktop/template b/srcpkgs/joplin-desktop/template
index 410abb23be..ff200fcd7c 100644
--- a/srcpkgs/joplin-desktop/template
+++ b/srcpkgs/joplin-desktop/template
@@ -22,7 +22,7 @@ do_build() {
# Remove unused modules
rm -rf packages/{app-mobile,app-cli,generator-joplin,app-clipper}
- npm install --unsafe-perm
+ npm install ${XBPS_ALLOW_CHROOT_BREAKOUT:+--unsafe-perm}
cd packages/app-desktop
npm run dist
} |
I agree, thank you. I will fix |
@sgn could you check if something similar happens for mattermost-desktop element-desktop and friends? It may need a similar fix. |
This could be used to fix cross, but I don't know why npm doesn't pick wrapped diff --git a/srcpkgs/joplin-cli/template b/srcpkgs/joplin-cli/template
index 2f04a10dd0..abfeddbd98 100644
--- a/srcpkgs/joplin-cli/template
+++ b/srcpkgs/joplin-cli/template
@@ -14,6 +14,12 @@ distfiles="https://github.com/laurent22/joplin/archive/v${version}.tar.gz"
checksum=55aad4fe50e2da980983a69bc7c0870626064db971550d522e266feb17d38916
python_version=3
+if [ "$CROSS_BUILD" ]; then
+ export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
+ export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
+ export PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR:$XBPS_CROSS_BASE/usr/share/pkgconfig"
+fi
+
do_build() {
# Remove unused modules
rm -rf packages/{app-mobile,app-desktop,app-clipper,generator-joplin}
diff --git a/srcpkgs/joplin-desktop/template b/srcpkgs/joplin-desktop/template
index ff200fcd7c..6fc7ab0faf 100644
--- a/srcpkgs/joplin-desktop/template
+++ b/srcpkgs/joplin-desktop/template
@@ -13,11 +13,18 @@ license="MIT"
homepage="https://joplinapp.org"
distfiles="https://github.com/laurent22/joplin/archive/v${version}.tar.gz"
checksum=55aad4fe50e2da980983a69bc7c0870626064db971550d522e266feb17d38916
+no_generic_pkgconfig_link=yes
export USE_SYSTEM_7ZA="true"
export USE_SYSTEM_APP_BUILDER="true"
export USE_SYSTEM_MKSQUASHFS="true"
+if [ "$CROSS_BUILD" ]; then
+ export PKG_CONFIG_SYSROOT_DIR="$XBPS_CROSS_BASE"
+ export PKG_CONFIG_LIBDIR="$XBPS_CROSS_BASE/usr/lib/pkgconfig"
+ export PKG_CONFIG_PATH="$PKG_CONFIG_LIBDIR:$XBPS_CROSS_BASE/usr/share/pkgconfig"
+fi
+
do_build() {
# Remove unused modules
rm -rf packages/{app-mobile,app-cli,generator-joplin,app-clipper} |
Sorry, I didn't test crosss... oops. Will push fixes now. |
2e6434a
to
e851002
Compare
I wonder, can we make CI not fail for a cross dependency... |
Patch dosen't work, will investigate further. Seems to be using host cflags but cross CC. |
No idea what's happening here, somehow |
e851002
to
81aea34
Compare
WTF is up with i686 CI? |
Ping |
9e23a49
to
8f1a5f6
Compare
Updated to 1.5.14, i686 issue could be reproduced there, oddly, and is now fixed. Cross joplin-cli is still an issue. Tests enabled on joplin-desktop as they work but not on joplin-cli as it requires a hard-to-package tool which I might or might not come back to (jest, FWIW). |
musl runtime is broken |
musl has now been fixed on both joplin-desktop and joplin-cli. It has been runtime tested extensively on x86_64{,-musl} and is ready for merge. |
Segfaults when launched, on musl + wayland. Haven't tried on X. |
@fosslinux are you interested in merging this even with the intermittent status of electron on musl? It looks generally ok. |
Yes I am still interested in getting this merged. Perhaps I should update the package before merge though... come back in 24 hrs :P |
1afc690
to
1103360
Compare
Ping.
|
Why does it segfault on musl Wayland? It's probably not because of Electron as Element Desktop runs fine. |
Electron is very fiddly on musl. I had crashes with vscode but not element-desktop, for example. |
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
This PR adds the
joplin-desktop
andjoplin-cli
packages, containing the GUI and CLI versions of Joplin respectively. They are not distributed in the one package as they can and should be installed separately, they are separate applications.Closes #19585