commit:     9cc6db756554a906b1f102014e47c97ef4c5daad
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  4 13:02:47 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Nov  4 13:02:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cc6db75

mail-client/thunderbird: sync with www-client/firefox

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 mail-client/thunderbird/thunderbird-91.3.0.ebuild | 28 +++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/mail-client/thunderbird/thunderbird-91.3.0.ebuild 
b/mail-client/thunderbird/thunderbird-91.3.0.ebuild
index d71c5a29a67..8bd529e8302 100644
--- a/mail-client/thunderbird/thunderbird-91.3.0.ebuild
+++ b/mail-client/thunderbird/thunderbird-91.3.0.ebuild
@@ -452,6 +452,34 @@ pkg_setup() {
                # Build system is using /proc/self/oom_score_adj, bug #604394
                addpredict /proc/self/oom_score_adj
 
+               if use pgo ; then
+                       # Allow access to GPU during PGO run
+                       local ati_cards mesa_cards nvidia_cards render_cards
+                       shopt -s nullglob
+
+                       ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+                       if [[ -n "${ati_cards}" ]] ; then
+                               addpredict "${ati_cards}"
+                       fi
+
+                       mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+                       if [[ -n "${mesa_cards}" ]] ; then
+                               addpredict "${mesa_cards}"
+                       fi
+
+                       nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+                       if [[ -n "${nvidia_cards}" ]] ; then
+                               addpredict "${nvidia_cards}"
+                       fi
+
+                       render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ 
/:/g')
+                       if [[ -n "${render_cards}" ]] ; then
+                               addpredict "${render_cards}"
+                       fi
+
+                       shopt -u nullglob
+               fi
+
                if ! mountpoint -q /dev/shm ; then
                        # If /dev/shm is not available, configure is known to 
fail with
                        # a traceback report referencing 
/usr/lib/pythonN.N/multiprocessing/synchronize.py

Reply via email to