joshm, looks like you have a outdated node. I had the same error and upgraded node with nvm.
nvm install --lts
nvm use --lts
Git Clone URL: | https://aur.archlinux.org/rocketchat-desktop.git (read-only, click to copy) |
---|---|
Package Base: | rocketchat-desktop |
Description: | Rocket.Chat Native Cross-Platform Desktop Application via Electron |
Upstream URL: | https://github.com/RocketChat/Rocket.Chat.Electron |
Keywords: | chat client electron rocket rocketchat |
Licenses: | MIT |
Submitter: | sum01 |
Maintainer: | buzo |
Last Packager: | buzo |
Votes: | 30 |
Popularity: | 0.90 |
First Submitted: | 2017-10-23 16:52 (UTC) |
Last Updated: | 2024-11-13 19:58 (UTC) |
joshm, looks like you have a outdated node. I had the same error and upgraded node with nvm.
nvm install --lts
nvm use --lts
I'm seeing this during install:
==> Starting build()...
[!] SyntaxError: Unexpected token 'with'
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:152:18)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:298:14)
at link (node:internal/modules/esm/module_job:67:21)
Anyone have a fix?
You're welcome :)
Building against electron31
works, electron30
is untested (but wouldn't recommend since electron32
works perfectly).
Used rocketchat-desktop
4.0.2-1 for a full work day today, no issues.
Many thanks attention_horse!
I'm still wondering why it shouldn't work with Electron 30, since package.json
and app/main.js
refer to that. ¯\(ツ)/¯
I can confirm that rocketchat-desktop is now buildable again in a clean chroot environment with electron32. Not tested with an older electron version.
Kudos to @attention_horse. :)
Adding python-distutils-extra openjpeg2
to the makedepends
array fixes the error for me and I can cleanly build the package using pkgctl build --clean
.
diff --git a/PKGBUILD b/PKGBUILD
index a4dd161..9f88fb9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,19 +4,19 @@
# Contributor: sum01 <sum01@protonmail.com>
pkgname=rocketchat-desktop
-pkgver=3.9.14
+pkgver=4.0.2
pkgrel=1
pkgdesc='Rocket.Chat Native Cross-Platform Desktop Application via Electron'
arch=(any)
url=https://github.com/RocketChat/Rocket.Chat.Electron
license=(MIT)
-_electron=electron22
+_electron=electron32
depends=("$_electron" nodejs libvips)
-makedepends=(node-gyp yarn asar)
+makedepends=(node-gyp yarn asar python-distutils-extra openjpeg2)
install=rocketchat-desktop.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver/$pkgname-$pkgver.tar.gz"
rocketchat-desktop.desktop)
-sha256sums=('4edd1355b3fd1d0b9f1f099637b0ec197594d9f8adccf49dad2372cab2178b68'
+sha256sums=('f544a6150e0dc8afd689500a30d6846a97799741128b451e962ebc0048698449'
'31fae4f98a61a774f84030fd43d2ef92c7633740dc5aa55967a21d0e29ea621a')
# validpgpkeys=('9EA06BE6FD613A03') # Tasso Evangelista
I found the missing package openjpeg2
by running yarn install --inside-build
within the chroot and looking at the output:
sharp@npm:0.29.3 STDERR Package 'libopenjp2', required by 'vips', not found
Please apply the patch and check with your build environment again :)
Still no luck in building rocketchat-desktop in a clean build chroot. It's always yarn failing.
I try changing to electron31 next.
@brody No, not in a clean environment. Just using my default installation I work with every day. Building in a chroot (following your link) also fails for me. I can check the chroot later.
Neither adding UV_USE_IO_URING=0
helped, nor adding python-distutils-extra glib2
to the makedepends
array.
The error seems to be related to libvips:
CXX(target) Release/obj.target/sharp-linux-x64/src/common.o
In file included from ../src/common.cc:24:
/usr/include/vips/vips8:35:10: fatal error: glib-object.h: No such file or directory
35 | #include <glib-object.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
@BS86: you didn't posted that you build the package in a clean chroot environment, at least I haven't seen it. BTW. my build system is up to date. I tried to build with kernel 6.9.3-zen1-1-zen and 6.9.3-arch1-1.
Pinned Comments