pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/spidermonkey52/patches



Module Name:    pkgsrc
Committed By:   triaxx
Date:           Mon Mar 23 08:46:14 UTC 2020

Added Files:
        pkgsrc/lang/spidermonkey52/patches:
            patch-python_mozbuild_mozbuild_virtualenv.py

Log Message:
spidermonkey52: fix PR pkg/54878

This patch hacks the virtualenv configuration process that finds invalid
modification times in some very rare configurations.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py
diff -u /dev/null pkgsrc/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py:1.1
--- /dev/null   Mon Mar 23 08:46:14 2020
+++ pkgsrc/lang/spidermonkey52/patches/patch-python_mozbuild_mozbuild_virtualenv.py     Mon Mar 23 08:46:14 2020
@@ -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



Home | Main Index | Thread Index | Old Index