Package Details: signal-desktop-beta 7.52.0beta1-1

Git Clone URL: https://aur.archlinux.org/signal-desktop-beta.git (read-only, click to copy)
Package Base: signal-desktop-beta
Description: Signal Private Messenger for Linux - Beta version.
Upstream URL: https://signal.org
Keywords: secure-messenger signal signal-desktop
Licenses: GPL3
Conflicts: signal-desktop-beta-bin
Submitter: Edu4rdSHL
Maintainer: Edu4rdSHL
Last Packager: Edu4rdSHL
Votes: 16
Popularity: 0.44
First Submitted: 2020-08-17 19:09 (UTC)
Last Updated: 2025-04-19 00:51 (UTC)

Dependencies (33)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 Next › Last »

Edu4rdSHL commented on 2022-12-13 03:23 (UTC)

jnnk, build the package in a clean chroot environment, that issue is likely cause by residual artifacts of previous failed builds.

Edu4rdSHL commented on 2022-12-13 03:23 (UTC)

jnnk, build the package in a clean chroot environment, that issue is likely cause by residual artifacts of previous failed builds.

<deleted-account> commented on 2022-12-12 23:39 (UTC)

Hey there. I'm getting the following error when trying to build this package. The package fails to build for the last 3 releases or so, every time I tried it fails on build:webpack:sticker-creator:

[build:webpack   ]   preload.bundle.js  8.8mb ⚠️
[build:webpack   ] 
[build:webpack   ] Error: error:0308010C:digital envelope routines::unsupported
[build:webpack   ]     at new Hash (node:internal/crypto/hash:71:19)
[build:webpack   ]     at Object.createHash (node:crypto:130:10)
[build:webpack   ]     at BulkUpdateDecorator.hashFactory (/tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/util/createHash.js:144:18)
[build:webpack   ]     at BulkUpdateDecorator.update (/tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/util/createHash.js:46:50)
[build:webpack   ]     at RawSource.updateHash (/tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/node_modules/webpack-sources/lib/RawSource.js:64:8)
[build:webpack   ]     at NormalModule._initBuildHash (/tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/NormalModule.js:838:17)
[build:webpack   ]     at handleParseResult (/tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/NormalModule.js:903:10)
[build:webpack   ]     at /tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/NormalModule.js:994:4
[build:webpack   ]     at processResult (/tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/NormalModule.js:717:11)
[build:webpack   ]     at /tmp/makepkg/signal-desktop-beta/src/Signal-Desktop-6.1.0-beta.1/node_modules/webpack/lib/NormalModule.js:777:5
[build:webpack   ] error Command failed with exit code 1.
[build:webpack   ] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[build:webpack   ] ERROR: "build:webpack:sticker-creator" exited with 1.
[build:webpack   ] error Command failed with exit code 1.
[build:webpack   ] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build:webpack" exited with 1.

Any ideas what might go wrong/ I'm doing wrong?

bradpitcher commented on 2022-09-27 15:05 (UTC)

Thanks @mkurz that works for me, though I used this simpler change for the folder name

-  cp -a release/linux-unpacked "${pkgdir}/usr/lib/${pkgname}"
+  cp -a release/linux-*unpacked "${pkgdir}/usr/lib/${pkgname}"

mkurz commented on 2022-09-02 10:14 (UTC)

Below you can find the patch to make this package compatible with arm / aarch64. Just two fixes were necessary, I now can run signal-desktop-beta successfully now on my Macbook Pro M1 with Asahi Linux, using the upstream sources!

A guy from the Signal community fixed everything that was necessary to make Signal run on arm. Based on his comment https://github.com/dennisameling/Signal-Desktop/issues/1#issuecomment-1046097807 (also see the next comment below where he successfully provided a deb package) these are the things that needed to be changed:

  1. Make use of fpm that is provided by your system, otherwise yarn will use a fpm version that is not compatible with arm (it actually displays x86 somewhere even when using aarch64). We can easily fix that by depending on https://aur.archlinux.org/packages/fpm and tell yarn to use that one by setting the env var USE_SYSTEM_FPM=true. Details can be found in the comment I linked above and here: https://github.com/electron-userland/electron-builder/issues/3901#issuecomment-499121694

  2. Depending on the architecture, when running arm, the release folder is called linux-arm64-unpacked, not linux-unpacked. I made a simple condition to fix that.

That is all, with this patch applied I was able to build and install on Asahi Linux, and Signal is working great!

Would be nice if you could apply my patch so we have "official" arm/aarch64 support for Signal. Thanks!

Here is the patch (as you can see it's no magic and fully backwards compatible for x86):

diff --git a/.SRCINFO b/.SRCINFO
index bfb5580..9fd6139 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,7 @@ pkgbase = signal-desktop-beta
    pkgrel = 1
    url = https://signal.org
    arch = x86_64
+   arch = aarch64
    license = GPL3
    makedepends = yarn
    makedepends = git
@@ -13,6 +14,7 @@ pkgbase = signal-desktop-beta
    makedepends = git-lfs
    makedepends = libxcrypt-compat
    makedepends = openjpeg2
+   makedepends = fpm
    depends = gtk3
    depends = libvips
    depends = libxss
diff --git a/PKGBUILD b/PKGBUILD
index 4bfc890..11fd3ae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,11 +12,11 @@ pkgrel=1
 pkgdesc='Signal Private Messenger for Linux - Beta version.'
 license=('GPL3')
 conflicts=('signal-desktop-beta-bin')
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
 url="https://signal.org"
 depends=('gtk3' 'libvips' 'libxss' 'hicolor-icon-theme')
 # We need libxcrypt-compat for it to build: https://github.com/electron-userland/electron-builder-binaries/issues/47
-makedepends=('yarn' 'git' 'nodejs-lts-gallium' 'npm' 'python' 'git-lfs' 'libxcrypt-compat' 'openjpeg2')
+makedepends=('yarn' 'git' 'nodejs-lts-gallium' 'npm' 'python' 'git-lfs' 'libxcrypt-compat' 'openjpeg2' 'fpm')
 source=(
   "${pkgname}-${pkgver}.tar.gz::https://github.com/signalapp/${_pkgname}/archive/v${pkgver//beta*}-beta.${pkgver##*beta}.tar.gz"
   "${pkgname}.desktop"
@@ -47,14 +47,18 @@ build() {

   yarn generate
   yarn prepare-beta-build
-  yarn build
+  USE_SYSTEM_FPM=true yarn build
 }

 package() {
   cd "${_pkgname}-${pkgver//beta*}-beta.${pkgver##*beta}"

   install -d "${pkgdir}/usr/"{lib,bin}
-  cp -a release/linux-unpacked "${pkgdir}/usr/lib/${pkgname}"
+  case "${CARCH}" in
+   "aarch64") folder="linux-arm64-unpacked" ;;
+   *) folder="linux-unpacked" ;;
+  esac
+  cp -a release/${folder} "${pkgdir}/usr/lib/${pkgname}"
   ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/"

   chmod u+s "${pkgdir}/usr/lib/${pkgname}/chrome-sandbox"

Edu4rdSHL commented on 2022-07-14 03:07 (UTC)

It's building again.

Edu4rdSHL commented on 2022-07-12 18:38 (UTC)

Currently, it isn't possible to build this version because https://github.com/signalapp/better-sqlite3/issues/6 too, so I can't debug that.

reclusivesage commented on 2022-07-12 15:55 (UTC)

Despite updating Pacman, I received the build error below. Any suggestions on what to do?

==> Starting prepare()...
Updated Git hooks.
Git LFS initialized.
yarn install v1.22.19
[1/5] Resolving packages...
warning Resolution field "color-string@1.7.4" is incompatible with requested version "color-string@^1.9.0"
[2/5] Fetching packages...
error An unexpected error occurred: "Unexpected end of data".
info If you think this is a bug, please open a bug report with the information provided in "/home/uSER/AUR/signal-desktop-beta/src/Signal-Desktop-5.50.0-beta.1/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in prepare().
    Aborting...

Edu4rdSHL commented on 2022-02-24 14:54 (UTC) (edited on 2022-02-24 16:29 (UTC) by Edu4rdSHL)

presidentwolf for some reason I was not notified in my email about your comment and had to discover that by myself, to come here and see that you have already fixed the problem... I have added libxcrypt-compat as makedepend because apparently it's only needed to build the .deb (which we don't care about) and doesn't affect our final binary.