For Element v1.10.9 the build fails for me and I get this error from yarn right after yarn run v1.22.18
:
error Command "reskindex" not found.
If I remove yarn reskindex
from the PKGBUILD it builds just fine.
Git Clone URL: | https://aur.archlinux.org/element-desktop-git.git (read-only, click to copy) |
---|---|
Package Base: | element-desktop-git |
Description: | Glossy Matrix collaboration client — web version. |
Upstream URL: | https://element.io |
Licenses: | Apache |
Conflicts: | element-desktop |
Provides: | element-desktop |
Replaces: | riot-desktop |
Submitter: | idanoo |
Maintainer: | Xangelix |
Last Packager: | Xangelix |
Votes: | 13 |
Popularity: | 0.002172 |
First Submitted: | 2020-07-18 02:27 (UTC) |
Last Updated: | 2022-04-24 21:00 (UTC) |
For Element v1.10.9 the build fails for me and I get this error from yarn right after yarn run v1.22.18
:
error Command "reskindex" not found.
If I remove yarn reskindex
from the PKGBUILD it builds just fine.
missing translation: en|Failed to start missing translation: en|Your Element is misconfigured missing translation: en|Unexpected error preparing the app. See console for details.
Hello, thanks for the package!
Please, take a look at https://github.com/vector-im/element-web/issues/16555 for a workaround with yarn reskindex
if having issue like:
Module not found: Error: Can't resolve './component-index' in '/path/to/git/element-web/node_modules/matrix-react-sdk/src'
and consider change "${pkgname}" to something like "${pkgname%-git}".sh for the binary (since desktop file is without git suffix)
1.8.1 doesnt build for me and gives the error
ModuleNotFoundError: Module not found: Error: Can't resolve './component-index' in '/home/xx/.cache/pikaur/build/element-desktop-git/src/element-web/node_modules/matrix-react-sdk/src'
I also receive error messages:
==> Missing dependencies:
-> nodejs<16
==> ERROR: Could not resolve all dependencies.
error: failed to build 'element-desktop-git-1.7.25.r21.ge4c9444fe-1 (element-web-git element-desktop-git)':
error: packages failed to build: element-desktop-git-1.7.25.r21.ge4c9444fe-1 (element-web-git element-desktop-git)
When I try to install I recieve the error:
error merging element-desktop-git: fatal: No current branch.
I had some issues building 1.7.27 but succeeded after adding the following to the prepare section
For anyone adopting this package: I did something very similar in my private fork and can confirm this works, so I'd suggest patching this until it's fixed upstream instead of setting nodejs<16
.
I have moved on from manjaro to NixOS, so I'm disowning this package again. Thank you for the recent comments.
I had some issues building 1.7.27 but succeeded after adding the following to the prepare section:
cd ../element-desktop
# Switch target to output to directory rather than .deb package
sed -i 's/"target": "deb"/"target": "dir"/g' package.json
sed -i 's@"https://packages.riot.im/desktop/update/"@null@g' element.io/release/config.json
+ sed -i '/seshat/s/"2.2.3"/"2.2.4"/' package.json
+ sed -i '/electron-builder/s/"22.10.5"/"22.11.4"/g' package.json
yarn install
see upstream reports:
As some npm dependencies are not yet compatible with NodeJS 16 you might wanna set the nodejs dependency to
nodejs<16
I have adopted this package and it will now follow the upstream 'develop' branch. With recent changes it's now based on electron version 12 with native Wayland compatibility. Start with the following flags to test it:
element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland
Unfortunately, I have to withdraw from the maintenance of this package for private reasons. Feel free to adopt.
You don't have to update it every time there is a new commit, makepkg will automatically get the latest commit and create a package for that commit, this is actually less work than what you are doing now.
You should read all of the VCS package guidelines and this note about the difference between -git and normal packages
@SeerLite
Maybe you should consider changing it so it does either way.
If this is the case I would have to disown the package because, like many of us, I do the whole thing in my spare time and therefore cannot provide every single commit as an update.
@jaltek Oh, looks like I never came across that guideline, I only read the PKGBUILD wiki page. I had no idea the replaces
field could be ignored in VCS packages. Now that I see it I think it makes sense though.
It also doesn't say anything about -git
packages having to pull from the last commit, and in fact even explains how to fix the source on a specific commit. But I found this section in the AUR wiki page that gives the impression that -git
packages are indeed meant to build from the latest.
Oh and now I also found this! (See the first point). AFAICT this package doesn't really patch or add anything that the official binary package doesn't do already, right? (except for RC versions, which are not the majority of versions) That means it's not complying with the first rule (unless I missed something or the RC versions do indeed work around that). Making it pull from the latest commit would effectively solve that.
And even if it turns out the package is fine, I'm pretty sure most people expect a -git
package to have the latest developments of the package. Maybe you should consider changing it so it does either way.
@SeerLite: Thank you for
your feedback. According to this guideline the replaces
field should be avoided.
And yes, this repo does not reflect every commit from the upstream repo. I have used @idanoo's commits as a guide here. So this repo reflects only the RC and stable releases. Maybe the -git
is wrong then?
@jaltek Thanks! Yes, that's working! I think you shouldn't really remove the replaces
field though (it's used for when a package is updated), but I don't know if that's important.
You could also have a look at the official PKBUILD for reference:
https://github.com/archlinux/svntogit-community/blob/packages/element.io/trunk/PKGBUILD
Also, I realized this package doesn't build the latest version from git, but builds the fixed version just like the official repo package. I'm not sure if it's a rule that -git packages should build from the latest commit but it was really confusing that this one didn't. Most of them do, I'm pretty sure that's their main purpose.
@SeerLite I added both fields with the latest update to 1.7.19. Please have a look - should be ok.
Hi! Please add the provides
and conflicts
fields for element-desktop and element-web (non-git versions) to make installation easier. Thanks!
I adopted the maintainership from @idanoo. Co-Maintainers are always welcome :)
As I had the same problems like @cryzed I added a small patch for reskindex
which simply calls the reskindex
twice during the yarn build
.
Other suggestions welcome :)
I am stepping down from maintaining this as I have no spare time to keep it up to date. The latest community package is up to date for the time being.
I am getting
==> Starting package_riot-desktop-git()...
cp: cannot stat 'dist/linux-unpacked/resources/*': No such file or directory
==> ERROR: A failure occurred in package_riot-desktop-git().
on aarch64 using yay.
I've been looking at the encrypted searching issue, matrix-seshat seems to be building fine, just not properly linking. Have also tried building explicitly for the installed electron version but still doesn't work.
Encrypted message search seems broken when using Electron 9.x. I just upgraded from 8.x and it stopped working. I am getting the following error in the Security & Privacy settings (where before it would show the indexed messages and searching would work):
Riot is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom Riot Desktop with search components added.
Seems like the native libraries are built against 8.x by default. The message is linking to https://github.com/vector-im/riot-web/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms
Sorry about that, went a bit fast on this. Thanks!
@psydev, that looks like an old PKGBUILD, the current one doesn't touch electron_app/riot.im/config.json, it uses riot.im/release/config.json.
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=riot-desktop-git
Currently this doesn't build:
==> Starting prepare()...
sed: can't read electron_app/riot.im/config.json: No such file or directory
can i suggest that riot-desktop.sh do:
exec electron /usr/lib/riot/ $@
instead of:
electron /usr/lib/riot/ $@
this removes the parent shell process that sits around doing nothing all day but waiting for electron to exit. saves 1 process and a bit of ram... :)
also in riot-desktop.desktop you should have
StartupWMClass=Riot
not
StartupWMClass="Riot"
The freedesktop.org standards dont allow quoting of field values. They allow escaping, but not quoting. Exec lines can quote because you CAN execute "ls" in a shell and the shell processes the quote to do the execution. Quotes are literally passed on to run. This is a problem with the StartupWMClass as then things are left looking for strings in the window class that literally contain quotes in the class when the app clearly only sets Riot in WM_CLASS in the class field:
WM_CLASS(STRING) = "riot", "Riot"
(xprop adds quotes when it displays the string - the actual property does not contain quotes).
I've had to do a bug workaround in this in code just to have the matching work. :)
@b1tninja You link error should now be fixed. I reworked it to not use yarn link. @cryzed This might have been an upstream error in the actual source code of riot. Can you try it again now?
This fails with the following error:
$ tsc --emitDeclarationOnly
$ cross-env NODE_ENV=production webpack -p --progress --bail --mode production
27% building 116/158 modules 42 active ...git/node_modules/babel-loader/lib/index.js??ref--4!/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/stores/RightPanelStorePhases.jsModuleNotFoundError: Module not found: Error: Can't resolve './component-index' in '/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src'
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/Compilation.js:925:10
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:401:22
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:130:21
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:224:22
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/neo-async/async.js:2830:7
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/neo-async/async.js:6877:13
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/lib/NormalModuleFactory.js:214:25
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:213:14
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/DirectoryExistsPlugin.js:27:15
at /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:85:15
at processTicksAndRejections (internal/process/task_queues.js:79:11)
resolve './component-index' in '/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src'
using description file: /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/package.json (relative path: ./src)
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/package.json (relative path: ./src/component-index)
no extension
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index doesn't exist
.js
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index.js doesn't exist
.json
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index.json doesn't exist
.ts
Field 'matrix_src_browser' doesn't contain a valid alias configuration
Field 'browser' doesn't contain a valid alias configuration
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index.ts doesn't exist
as directory
/home/user/Downloads/riot-desktop-git/src/riot-desktop-git/matrix-react-sdk/src/component-index doesn't exist
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
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...
Can you update the PKGBUILD accordingly?
When building from /tmp/riot-desktop-git/
yarn link v1.17.3 error An unexpected error occurred: "EACCES: permission denied, symlink '../../home/justin/.config/yarn/link/matrix-react-sdk/scripts/reskindex.js' -> '/usr/bin/reskindex'".
@klardotsh @swg Bugs are fixed and package updated. Sorry for that huge delay.
Sorry for not respinding in time. I will make a update for the PKGBUILD this weekend
This currently does not build. Here is a patched PKGBUILD which builds successfully.
https://gist.github.com/klardotsh/bea1cf578634e439a4c6eb6a8cc157a8
the package throws errors, when I try to make it:
[swg@Sesta riot-desktop-git]$ makepkg ==> Erstelle Paket: riot-desktop-git v0.17.8.r15.gbaf3df57-1 (Di 01 Jan 2019 22:02:14 CET) ==> Prüfe Laufzeit-Abhängigkeiten... ==> Prüfe Buildtime-Abhängigkeiten... ==> Empfange Quellen... -> Aktualisiere das riot-desktop-git git Repo... Fordere an von origin -> riot-desktop.desktop gefunden -> riot-desktop.sh gefunden ==> Überprüfe source Dateien mit sha256sums... riot-desktop-git ... Übersprungen riot-desktop.desktop ... Durchgelaufen riot-desktop.sh ... Durchgelaufen ==> Entpacke Quellen... -> Erstelle Arbeitskopie des riot-desktop-git git Repos... Setze Branch 'makepkg' neu ==> Beginne prepare()... ==> Beginne pkgver()... ==> Entferne existierendes $pkgdir/ Verzeichnis... ==> Beginne build()... npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/vary-55710805/package.json' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/vary-55710805/README.md' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/vary-55710805/LICENSE' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/vary-55710805/index.js' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/vary-55710805/HISTORY.md' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/request-4f24cc95/index.js' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/request-4f24cc95/LICENSE' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/express-bf8fcaf9/index.js' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/request-4f24cc95/README.md' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/express-bf8fcaf9/LICENSE' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/express-bf8fcaf9/Readme.md' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/velocity-vector-4911b14d/velocity.ui.js' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/acorn-6871da92/dist/acorn.js' npm WARN tar ENOENT: no such file or directory, open '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/react-dom-a591e100/dist/react-dom.min.js' npm WARN tar ENOENT: no such file or directory, lstat '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/7zip-bin-b607269a/linux/x64' npm WARN tar ENOENT: no such file or directory, lstat '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/7zip-bin-b607269a/linux/x64' npm WARN tar ENOENT: no such file or directory, lstat '/home/swg/src/riot-desktop-git/src/riot-desktop-git/node_modules/.staging/7zip-bin-b607269a/linux/x64' npm ERR! Unexpected end of JSON input while parsing near '...odash":"^4.12.0","pre'
npm ERR! A complete log of this run can be found in: npm ERR! /home/swg/src/riot-desktop-git/src/npm-cache/_logs/2019-01-01T21_02_28_843Z-debug.log ==> FEHLER: Ein Fehler geschah in build(). Breche ab...
'nodejs-10.12.0-1-x86_64.pkg.tar.xz' z mirror.netcologne.de : The requested URL returned error: 404 'nodejs-10.12.0-1-x86_64.pkg.tar.xz' z archlinux.surlyjake.com : The requested URL returned error: 404 'nodejs-10.12.0-1-x86_64.pkg.tar.xz' z mirrors.evowise.com : The requested URL returned error: 404 nodejs-10.12.0-1-x86_64.pkg.tar.xz' z mirror.rackspace.com : The requested URL returned error: 404
@RussianCow @Amolith issue should be fixed now
@RussianCow oh yeah I made that right before I went to bed. I can fix that in an hour or so. (Until than not at a pc)
The latest version has a mistake in the PKGBUILD file—conflicts are defined like this:
conflicts=('riot-desktop riot-web')
but should be like this:
conflicts=('riot-desktop' 'riot-web')
Fixing the above installs it correctly.
I'm encountering an error with the latest build and I'm not sure how to fix it. I'm using trizen to install from the AUR.
@redg3ar oh thanks. I have to admit this is currently not maintained as I lacked time. But thanks for the patch. I guess I should finally switch this to use develop too
Below patch solves the problem
the install is broken, fails with 'install: cannot stat 'src/skins/vector/img/logos/riot-logo.svg': No such file or directory'
Pinned Comments