After the electron
package was upgraded in my system to version 12.x, I started getting the following error when I tried to start joplin-desktop
:
$ joplin-desktop
./@joplinapp-desktop: error while loading shared libraries: libicui18n.so.68: cannot open shared object file: No such file or directory
The version of icu
I currently have installed is:
local/icu 69.1-1
International Components for Unicode library
And the versions of electron
are:
local/electron 12.0.4-2
Build cross platform desktop apps with web technologies
local/electron11 11.4.3-2
Build cross platform desktop apps with web technologies
Now that the default version of the electron
package is 12.0.4, the joplin
and joplin-desktop
packages should probably use the electron11
package as a dependency until Joplin officially supports Electron 12.x.
I initially tried regenerating the packages with the latest electron
(12.0.4-2) package but joplin-desktop
would not start. To fix the issues I had to modify the electron
dependency and set it to electron11
. These are the changes I made to the PKGBUILD
:
diff --git a/PKGBUILD b/PKGBUILD
index 0b84f90..c854958 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,11 +11,11 @@ pkgver=1.7.11
groups=('joplin')
pkgrel=2
install="joplin.install"
-depends=('electron' 'gtk3' 'libexif' 'libgsf' 'libjpeg-turbo' 'libwebp' 'libxss' 'nodejs'
+depends=('electron11' 'gtk3' 'libexif' 'libgsf' 'libjpeg-turbo' 'libwebp' 'libxss' 'nodejs'
'nss' 'orc' 'rsync' )
optdepends=('libappindicator-gtk3: for tray icon')
arch=('x86_64' 'i686')
-makedepends=('git' 'npm' 'python' 'rsync' 'jq' 'electron')
+makedepends=('git' 'npm' 'python' 'rsync' 'jq' 'electron11')
url="https://joplinapp.org/"
license=('MIT')
source=("joplin.desktop" "joplin-desktop.sh" "joplin.sh"
@@ -137,7 +137,7 @@ package_joplin() {
package_joplin-desktop() {
pkgdesc="A note taking and to-do application with synchronization capabilities - Desktop"
- depends=('electron' 'gtk3' 'libexif' 'libgsf' 'libjpeg-turbo' 'libwebp' 'libxss' 'nodejs'
+ depends=('electron11' 'gtk3' 'libexif' 'libgsf' 'libjpeg-turbo' 'libwebp' 'libxss' 'nodejs'
'nss' 'orc')
optdepends=('libappindicator-gtk3: for tray icon')
conflicts=('joplin-desktop-electron')
@@ -149,8 +149,8 @@ package_joplin-desktop() {
msg2 "Building Desktop with packaged Electron..."
mkdir -p "${pkgdir}/usr/share/joplin-desktop"
cd "${srcdir}/joplin-${pkgver}/packages/app-desktop"
- electron_dir="/usr/lib/electron"
- electron_version=$(cat /usr/lib/electron/version)
+ electron_dir="/usr/lib/electron11"
+ electron_version=$(cat /usr/lib/electron11/version)
msg2 "Using Electron Version ${electron_version}"
USE_HARD_LINKS=false npm run dist -- --publish=never --linux --x64 \
--dir="dist/" -c.electronDist=$electron_dir -c.electronVersion=$electron_version
Pinned Comments
masterkorp commented on 2021-12-27 11:30 (UTC) (edited on 2021-12-27 11:32 (UTC) by masterkorp)
Hello everyone,
There was been several difficulties upgrading the Joplin due to major changes in the build system upstream.
I have finnally got version 2.6.10 working with pacthes, but remenber:
You may need to remove your src/ folder before using this version
The patches are still not perfect, you must say yes to a prompt
I will continue working on this later today, but its usable and stable, please remenber you can always report issues on the github repository.
Regards, Alfredo Palhares
masterkorp commented on 2020-12-24 19:58 (UTC) (edited on 2020-12-24 20:00 (UTC) by masterkorp)
Hello everyone,
I will be renaming the packages to its final form.
Also, please for problems with the package, please open an issue on the Github repo, its really hard to provide support on the comments section, you can also email me.
If you have problems with the
check()
function, just run makepkg with the--nocheck
flag.Thank you for your patience. Regards, Alfredo Palhares