commit: 824f8c56b557de79804eee177b7ae328279ca287
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 8 21:04:29 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Nov 8 21:09:18 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824f8c56
dev-lang/spidermonkey: check for /dev/shm
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
dev-lang/spidermonkey/spidermonkey-78.4.0.ebuild | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dev-lang/spidermonkey/spidermonkey-78.4.0.ebuild
b/dev-lang/spidermonkey/spidermonkey-78.4.0.ebuild
index 3c1c747cd0e..065952b5eb4 100644
--- a/dev-lang/spidermonkey/spidermonkey-78.4.0.ebuild
+++ b/dev-lang/spidermonkey/spidermonkey-78.4.0.ebuild
@@ -111,6 +111,15 @@ pkg_setup() {
check-reqs_pkg_setup
python-any-r1_pkg_setup
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ 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
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
}
src_prepare() {