summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortriaxx <triaxx@pkgsrc.org>2020-03-23 08:46:14 +0000
committertriaxx <triaxx@pkgsrc.org>2020-03-23 08:46:14 +0000
commit32a9bf1ea9e2c9d655c962130b0c17e1782be029 (patch)
tree48b88a2ebc76eceb26109cd6708c6ace65492214 /lang
parent9abf4b842876786b2fa0b102dbf0054bc1493728 (diff)
downloadpkgsrc-32a9bf1ea9e2c9d655c962130b0c17e1782be029.tar.gz
spidermonkey52: fix PR pkg/54878
This patch hacks the virtualenv configuration process that finds invalid modification times in some very rare configurations.
Diffstat (limited to 'lang')
-rw-r--r--lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py b/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py
new file mode 100644
index 00000000000..b567f16897b
--- /dev/null
+++ b/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py
@@ -0,0 +1,21 @@
+$NetBSD: patch-python_mozbuild_mozbuild_virtualenv.py,v 1.1 2020/03/23 08:46:14 triaxx Exp $
+
+Remove a test that drives the Python environment to be reduilt during the
+configure step. This bug seems esoteric since it only occurs on some machines
+when using pbulk in a sandbox chroot.
+
+--- python/mozbuild/mozbuild/virtualenv.py.orig 2018-04-28 01:04:06.000000000 +0000
++++ python/mozbuild/mozbuild/virtualenv.py
+@@ -122,12 +122,6 @@ class VirtualenvManager(object):
+
+ return False
+
+- # check modification times
+- activate_mtime = os.path.getmtime(self.activate_path)
+- dep_mtime = max(os.path.getmtime(p) for p in deps)
+- if dep_mtime > activate_mtime:
+- return False
+-
+ # Verify that the Python we're checking here is either the virutalenv
+ # python, or we have the Python version that was used to create the
+ # virtualenv. If this fails, it is likely system Python has been