1 |
commit: 70ab23abd46ce2220f03e968c88a53ef0cf29512 |
2 |
Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de> |
3 |
AuthorDate: Wed Dec 1 17:10:13 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 1 17:24:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70ab23ab |
7 |
|
8 |
net-im/signal-desktop-bin: depend on glibc[-clone3] |
9 |
|
10 |
Uses an older version of Electron which breaks when the clone3 syscall is used |
11 |
internally within glibc. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/819048 |
14 |
Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de> |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
.../signal-desktop-bin-5.24.0-r1.ebuild | 103 +++++++++++++++++++++ |
18 |
1 file changed, 103 insertions(+) |
19 |
|
20 |
diff --git a/net-im/signal-desktop-bin/signal-desktop-bin-5.24.0-r1.ebuild b/net-im/signal-desktop-bin/signal-desktop-bin-5.24.0-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 000000000000..916648237a26 |
23 |
--- /dev/null |
24 |
+++ b/net-im/signal-desktop-bin/signal-desktop-bin-5.24.0-r1.ebuild |
25 |
@@ -0,0 +1,103 @@ |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+MY_PN="${PN/-bin/}" |
32 |
+ |
33 |
+inherit pax-utils unpacker xdg |
34 |
+ |
35 |
+DESCRIPTION="Allows you to send and receive messages of Signal Messenger on your computer" |
36 |
+HOMEPAGE="https://signal.org/ |
37 |
+ https://github.com/signalapp/Signal-Desktop" |
38 |
+SRC_URI="https://updates.signal.org/desktop/apt/pool/main/s/${MY_PN}/${MY_PN}_${PV}_amd64.deb" |
39 |
+S="${WORKDIR}" |
40 |
+ |
41 |
+LICENSE="GPL-3 MIT MIT-with-advertising BSD-1 BSD-2 BSD Apache-2.0 ISC openssl ZLIB APSL-2 icu Artistic-2 LGPL-2.1" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="-* ~amd64" |
44 |
+IUSE="+sound" |
45 |
+RESTRICT="splitdebug" |
46 |
+ |
47 |
+# Drop -clone3(-) from glibc once Electron is updated |
48 |
+# See bug #819045 |
49 |
+RDEPEND=" |
50 |
+ app-accessibility/at-spi2-atk:2 |
51 |
+ app-accessibility/at-spi2-core:2 |
52 |
+ dev-libs/atk |
53 |
+ dev-libs/expat |
54 |
+ dev-libs/glib:2 |
55 |
+ dev-libs/nspr |
56 |
+ dev-libs/nss |
57 |
+ media-libs/alsa-lib |
58 |
+ media-libs/mesa[X(+)] |
59 |
+ net-print/cups |
60 |
+ sys-apps/dbus[X] |
61 |
+ sys-libs/glibc[-clone3(-)] |
62 |
+ x11-libs/gdk-pixbuf:2 |
63 |
+ x11-libs/cairo |
64 |
+ x11-libs/gtk+:3[X] |
65 |
+ x11-libs/libdrm |
66 |
+ x11-libs/libX11 |
67 |
+ x11-libs/libxcb |
68 |
+ x11-libs/libxkbcommon |
69 |
+ x11-libs/libXcomposite |
70 |
+ x11-libs/libXdamage |
71 |
+ x11-libs/libXext |
72 |
+ x11-libs/libXfixes |
73 |
+ x11-libs/libXrandr |
74 |
+ x11-libs/libxshmfence |
75 |
+ x11-libs/pango |
76 |
+ sound? ( |
77 |
+ || ( |
78 |
+ media-sound/pulseaudio |
79 |
+ media-sound/apulse |
80 |
+ ) |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+QA_PREBUILT=" |
85 |
+ opt/Signal/chrome-sandbox |
86 |
+ opt/Signal/libEGL.so |
87 |
+ opt/Signal/libGLESv2.so |
88 |
+ opt/Signal/libffmpeg.so |
89 |
+ opt/Signal/libvk_swiftshader.so |
90 |
+ opt/Signal/libvulkan.so.1 |
91 |
+ opt/Signal/resources/app.asar.unpacked/node_modules/* |
92 |
+ opt/Signal/signal-desktop |
93 |
+ opt/Signal/swiftshader/libEGL.so |
94 |
+ opt/Signal/swiftshader/libGLESv2.so" |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ sed -e 's| --no-sandbox||g' \ |
99 |
+ -i usr/share/applications/signal-desktop.desktop || die |
100 |
+ unpack usr/share/doc/signal-desktop/changelog.gz |
101 |
+ |
102 |
+ rm opt/Signal/resources/app.asar.unpacked/node_modules/{ffi-napi/node_modules/ref-napi/prebuilds/linux-arm64/electron.napi.armv8.node,ffi-napi/node_modules/ref-napi/prebuilds/linux-arm64/node.napi.armv8.node,ffi-napi/prebuilds/linux-arm64/node.napi.uv1.armv8.node,ref-napi/prebuilds/linux-arm64/electron.napi.armv8.node,ref-napi/prebuilds/linux-arm64/node.napi.armv8.node} || die |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ insinto / |
107 |
+ dodoc changelog |
108 |
+ doins -r opt |
109 |
+ insinto /usr/share |
110 |
+ |
111 |
+ if has_version media-sound/apulse[-sdk] && ! has_version media-sound/pulseaudio; then |
112 |
+ sed -i 's/Exec=/Exec=apulse /g' usr/share/applications/signal-desktop.desktop || die |
113 |
+ fi |
114 |
+ |
115 |
+ doins -r usr/share/applications |
116 |
+ doins -r usr/share/icons |
117 |
+ fperms +x /opt/Signal/signal-desktop /opt/Signal/chrome-sandbox |
118 |
+ fperms u+s /opt/Signal/chrome-sandbox |
119 |
+ pax-mark m opt/Signal/signal-desktop opt/Signal/chrome-sandbox |
120 |
+ |
121 |
+ dosym ../../opt/Signal/${MY_PN} /usr/bin/${MY_PN} |
122 |
+} |
123 |
+ |
124 |
+pkg_postinst() { |
125 |
+ xdg_pkg_postinst |
126 |
+ elog "For using the tray icon on compatible desktop environments, start Signal with" |
127 |
+ elog " '--start-in-tray' or '--use-tray-icon'." |
128 |
+} |