1 |
commit: f11fab16f7061f4537677e90f2148a596bfb8006 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 7 04:18:27 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 7 04:19:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f11fab16 |
7 |
|
8 |
net-im/slack: fix installation on new systems |
9 |
|
10 |
this is just a hack, should be done properly |
11 |
|
12 |
Bug: https://bugs.gentoo.org/720134 |
13 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
14 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
15 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
16 |
|
17 |
net-im/slack/slack-4.4.2.ebuild | 12 +++++++++++- |
18 |
1 file changed, 11 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/net-im/slack/slack-4.4.2.ebuild b/net-im/slack/slack-4.4.2.ebuild |
21 |
index c36c8da0ee2..48b3a778dd0 100644 |
22 |
--- a/net-im/slack/slack-4.4.2.ebuild |
23 |
+++ b/net-im/slack/slack-4.4.2.ebuild |
24 |
@@ -84,7 +84,17 @@ src_install() { |
25 |
|
26 |
insinto /opt/slack |
27 |
doins -r usr/lib/slack/. |
28 |
- for i in $(echo -n "${QA_PREBUILT}") ; do fperms +x "$i" ; done |
29 |
+ |
30 |
+ # this really should be done a better way than trying to parse |
31 |
+ # the QA_PREBUILT variable |
32 |
+ local path |
33 |
+ for path in ${QA_PREBUILT}; do |
34 |
+ local -a paths=(${D}/${path}) |
35 |
+ for path in "${paths[@]}"; do |
36 |
+ fperms +x "${path#${D}/}" |
37 |
+ done |
38 |
+ done |
39 |
+ |
40 |
use suid && fperms u+s /opt/slack/chrome-sandbox # wrt 713094 |
41 |
dosym ../../opt/slack/slack usr/bin/slack |