Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/
Date: Thu, 04 Nov 2021 13:05:00
Message-Id: 1636030967.9cc6db756554a906b1f102014e47c97ef4c5daad.whissi@gentoo
1 commit: 9cc6db756554a906b1f102014e47c97ef4c5daad
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 4 13:02:47 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 4 13:02:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cc6db75
7
8 mail-client/thunderbird: sync with www-client/firefox
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 mail-client/thunderbird/thunderbird-91.3.0.ebuild | 28 +++++++++++++++++++++++
13 1 file changed, 28 insertions(+)
14
15 diff --git a/mail-client/thunderbird/thunderbird-91.3.0.ebuild b/mail-client/thunderbird/thunderbird-91.3.0.ebuild
16 index d71c5a29a67..8bd529e8302 100644
17 --- a/mail-client/thunderbird/thunderbird-91.3.0.ebuild
18 +++ b/mail-client/thunderbird/thunderbird-91.3.0.ebuild
19 @@ -452,6 +452,34 @@ pkg_setup() {
20 # Build system is using /proc/self/oom_score_adj, bug #604394
21 addpredict /proc/self/oom_score_adj
22
23 + if use pgo ; then
24 + # Allow access to GPU during PGO run
25 + local ati_cards mesa_cards nvidia_cards render_cards
26 + shopt -s nullglob
27 +
28 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
29 + if [[ -n "${ati_cards}" ]] ; then
30 + addpredict "${ati_cards}"
31 + fi
32 +
33 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
34 + if [[ -n "${mesa_cards}" ]] ; then
35 + addpredict "${mesa_cards}"
36 + fi
37 +
38 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
39 + if [[ -n "${nvidia_cards}" ]] ; then
40 + addpredict "${nvidia_cards}"
41 + fi
42 +
43 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
44 + if [[ -n "${render_cards}" ]] ; then
45 + addpredict "${render_cards}"
46 + fi
47 +
48 + shopt -u nullglob
49 + fi
50 +
51 if ! mountpoint -q /dev/shm ; then
52 # If /dev/shm is not available, configure is known to fail with
53 # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py