Package Details: schildichat-desktop-git 1.11.87.sc.0.test.0.r527.20241203.59fab59-1

Git Clone URL: https://aur.archlinux.org/schildichat-desktop-git.git (read-only, click to copy)
Package Base: schildichat-desktop-git
Description: A Matrix client based on Element with a more traditional instant messaging experience. Build of the latest git checkout.
Upstream URL: https://schildi.chat
Licenses: Apache-2.0
Conflicts: schildichat-desktop, schildichat-desktop-bin
Provides: schildichat-desktop, schildichat-desktop-custom, schildichat-desktop-git
Submitter: lsf
Maintainer: dreieck
Last Packager: dreieck
Votes: 5
Popularity: 0.39
First Submitted: 2021-09-30 20:53 (UTC)
Last Updated: 2024-12-06 19:48 (UTC)

Pinned Comments

dreieck commented on 2024-10-21 23:22 (UTC) (edited on 2024-10-21 23:22 (UTC) by dreieck)

Please report issues related to the build process or dependencies here in the comments.

  • Do not flag out of date for build or packaging issues.
  • Please do flag out of date if e.g. the current upstream branch which is kept up to date is switched (back) from lite to master or sc.

Regards!

Latest Comments

1 2 3 Next › Last »

dreieck commented on 2024-10-21 23:22 (UTC) (edited on 2024-10-21 23:22 (UTC) by dreieck)

Please report issues related to the build process or dependencies here in the comments.

  • Do not flag out of date for build or packaging issues.
  • Please do flag out of date if e.g. the current upstream branch which is kept up to date is switched (back) from lite to master or sc.

Regards!

dreieck commented on 2024-10-21 23:16 (UTC)

I've added you as co-maintainer. I'll disown it as soon as you signal me you're okay with that

I am OK with that.

Regards!

lsf commented on 2024-10-21 22:51 (UTC) (edited on 2024-10-21 22:51 (UTC) by lsf)

Considering I've been terrible at maintaining it for the past few months (sorry about that!): gladly! Thanks for having taken care of it for a while now!

I've added you as co-maintainer. I'll disown it as soon as you signal me you're okay with that (which could also be right away ^^).

dreieck commented on 2024-10-21 21:44 (UTC) (edited on 2024-10-21 21:47 (UTC) by dreieck)

Turned out that

I needed to apply the quick-and-dirty patch workaround_issue_265.patch to work arround this issue

was due to "too new" electron version.

↗ Latest working version is indeed electron30, my fault, now corrected in ↗ my local variant of the PKGBUILD.

By the way, I am willing to maintain this package, if you want to hand it over.

Regards!

dreieck commented on 2024-10-21 18:17 (UTC)

Update to this comment from 2024-10-21:

↗ Use the lite branch for now, not the master branch. So append #branch=lite to the git source.

As of now, this is the same could which currently is rebased to master.

Regards!

dreieck commented on 2024-10-21 14:24 (UTC) (edited on 2024-10-21 14:38 (UTC) by dreieck)

Here is a diff of the current PKGBUILD to a PKGBUILD which enables building the latest, freshly updated state of schildichat-desktop-git:

--- PKGBUILD.orig   2024-10-21 15:29:55.392792305 +0200
+++ PKGBUILD    2024-10-21 16:14:53.942697954 +0200
@@ -1,2 +1,3 @@
 # Maintainer: lsf
+# Contributor: dreieck (https://aur.archlinux.org/account/dreieck)
 # Contributor: Bruno Pagani <archange@archlinux.org>
@@ -6,7 +7,7 @@

-_electron=electron30
-_nodeversion=18
+_electron=electron33
+_nodeversion=20
 pkgname=schildichat-desktop-git
 _pkgname=schildichat-desktop
-pkgver=1.11.36.sc.3.r0.a1458b1
+pkgver=1.11.81.sc.0.test.0.r1.6b2b1a6
 pkgrel=1
@@ -15,8 +16,8 @@
 url="https://schildi.chat"
-license=(Apache)
+license=('Apache-2.0')
 conflicts=(schildichat-desktop schildichat-desktop-bin)
 provides=(schildichat-desktop=${pkgver})
-makedepends=(npm git yarn python python-setuptools rust tcl ${_electron} nvm libxcrypt-compat asar)
+makedepends=(npm git yarn python python-setuptools rust tcl "nodejs>=${_nodeversion}" nvm libxcrypt-compat asar)
 depends=(${_electron} libsecret)
-source=(git+https://github.com/SchildiChat/schildichat-desktop.git#branch=sc
+source=(git+https://github.com/SchildiChat/schildichat-desktop.git
         git+https://github.com/SchildiChat/matrix-js-sdk.git
@@ -27,3 +28,4 @@
         schildichat-desktop.desktop
-        schildichat-desktop.sh)
+        schildichat-desktop.sh
+        "workaround_issue_265.patch::https://github.com/user-attachments/files/17462237/workaround_issue_265.patch.txt")
 sha256sums=('SKIP'
@@ -35,3 +37,4 @@
             '6450af411fea039cb76357ff4ea7f1ef336601315de4d27b848a75d7960cef17'
-            '8084211fe11ba23be956ef4b8bb0fffaa6aaa721b79f9753ecc3574666ef95ce')
+            '8084211fe11ba23be956ef4b8bb0fffaa6aaa721b79f9753ecc3574666ef95ce'
+            '74e4efde4a76261203ee7b215309b3be11308151c8e3270b07e7c96099822c16')

@@ -46,3 +49,3 @@
   _ensure_local_nvm
-  nvm install ${_nodeversion}
+  #nvm install ${_nodeversion} # Not needed; `nodejs>=${_nodeversion}` from the repositories suffices.

@@ -68,2 +71,5 @@
   cd ${srcdir}/${_pkgname}
+
+  patch -Np1 --follow-symlinks -i "${srcdir}/workaround_issue_265.patch"
+
   make setup
@@ -75,3 +81,3 @@
   _ensure_local_nvm
-  nvm use ${_nodeversion}
+  #nvm use ${_nodeversion} # Not needed; `nodejs>=${_nodeversion}` from the repositories suffices.
   export SQLCIPHER_BUNDLED=1

(↗ and here the complete reworked PKGBUILD.)

Note that

  • The git branch sc should not be used but just the master branch,
  • the minimal version of node needed to be increased to 20 (and that actually it also works with the official nodejs from Arch Linux, version 22),
  • I needed to apply the quick-and-dirty patch workaround_issue_265.patch to work arround this issue,
  • that ${_electron} is not needed in the makedepends array since it is already part of the depends array.

Regards!,
and thanks for the package.

dreieck commented on 2024-10-21 13:19 (UTC) (edited on 2024-10-21 13:19 (UTC) by dreieck)

Apache is not a valid SPDX license identifier in Arch Linux. I think you should use Apache-2.0.

dreieck commented on 2024-10-21 13:15 (UTC)

Since upstream now has rebased major rework to the master branch, I suggest updating the $pkgver of this -git package.

Regards!

dreieck commented on 2024-09-07 12:14 (UTC)

Just a note:

SchildiChat seems to be (temporarily) abandoned and has outstanding bugs, and the branch lite seems to be currently maintained.

Maybe an idea to create a schildichat-desktop-lite-git package, or temporarily switch to the lite branch?

Regards!

dreieck commented on 2024-06-27 07:16 (UTC)

Build with rustup or rust-nightly (both fulfill the make dependency rust) fails, with rust it works.

Maybe you should add some versioned make depends entry or so to supported rust packages?

Here the build error with rustup installed:

[...]

   Compiling futures-sink v0.3.28
error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
   --> /var/cache/makepkg/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/wrapper.rs:475:33
    |
475 |                 let proc_macro::LineColumn { line, column } = s.start();
    |                                 ^^^^^^^^^^ not found in `proc_macro`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::LineColumn;
    |
help: if you import `LineColumn`, refer to it directly
    |
475 -                 let proc_macro::LineColumn { line, column } = s.start();
475 +                 let LineColumn { line, column } = s.start();
    |

error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
   --> /var/cache/makepkg/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/wrapper.rs:489:33
    |
489 |                 let proc_macro::LineColumn { line, column } = s.end();
    |                                 ^^^^^^^^^^ not found in `proc_macro`
    |
help: consider importing this struct through its public re-export
    |
1   + use crate::LineColumn;
    |
help: if you import `LineColumn`, refer to it directly
    |
489 -                 let proc_macro::LineColumn { line, column } = s.end();
489 +                 let LineColumn { line, column } = s.end();
    |

   Compiling openssl-src v111.25.2+1.1.1t
   Compiling vcpkg v0.2.15
error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /var/cache/makepkg/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

   Compiling pin-utils v0.1.0
   Compiling rayon-core v1.11.0
   Compiling nix v0.14.1
   Compiling rustix v0.37.11
   Compiling crunchy v0.2.2
   Compiling pin-project-lite v0.2.9
   Compiling unicode-xid v0.2.4
Some errors have detailed explanations: E0422, E0635.
For more information about an error, try `rustc --explain E0422`.
error: could not compile `proc-macro2` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
Did not copy "cdylib:matrix-seshat"
error Command failed with exit code 101.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 101.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
101
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.
make: *** [Makefile:80: desktop-common] Error 1
==> ERROR: A failure occurred in build().
    Aborting...