Currently this doesn't build:
==> Starting prepare()...
sed: can't read electron_app/riot.im/config.json: No such file or directory
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 — desktop version. |
Upstream URL: | https://element.io |
Licenses: | Apache |
Conflicts: | element-desktop |
Provides: | element-desktop |
Submitter: | idanoo |
Maintainer: | Xangelix |
Last Packager: | Xangelix |
Votes: | 14 |
Popularity: | 0.000000 |
First Submitted: | 2020-07-18 02:27 (UTC) |
Last Updated: | 2024-08-14 19:58 (UTC) |
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...
Pinned Comments