]> git.pld-linux.org Git - packages/firefox.git/blobdiff - firefox-system-virtualenv.patch
fix hang on aarch64
[packages/firefox.git] / firefox-system-virtualenv.patch
index 35bb5b2cb1a364f2e71e05b37f21ab3a2dea6791..e124386e7f704a0182ed66d71611ba8fd85ac4f2 100644 (file)
@@ -1,21 +1,14 @@
---- xulrunner-27.0/mozilla/python/mozbuild/mozbuild/virtualenv.py~     2013-05-11 21:19:23.000000000 +0200
-+++ xulrunner-27.0/mozilla/python/mozbuild/mozbuild/virtualenv.py      2013-05-14 22:51:32.136719267 +0200
-@@ -71,8 +71,7 @@
-     @property
-     def virtualenv_script_path(self):
-         """Path to virtualenv's own populator script."""
--        return os.path.join(self.topsrcdir, 'third_party', 'python',
--                            'virtualenv', 'virtualenv.py')
-+        return '/usr/bin/virtualenv-2'
+--- firefox-96.0/python/mach/mach/site.py.orig 2022-01-06 19:32:46.000000000 +0100
++++ firefox-96.0/python/mach/mach/site.py      2022-01-12 13:21:03.273897180 +0100
+@@ -848,10 +848,7 @@
  
-     @property
-     def bin_path(self):
-@@ -294,7 +293,7 @@
-         into the wrong place. This is how virtualenv's work.
-         """
-         packages = self.packages()
--        python_lib = distutils.sysconfig.get_python_lib()
-+        python_lib = distutils.sysconfig.get_python_lib(1)
  
-         def handle_package(package):
-             if package[0] == 'setup.py':
+ def _virtualenv_py_path(topsrcdir):
+-    return os.path.join(
+-        topsrcdir, "third_party", "python", "virtualenv", "virtualenv.py"
+-    )
+-
++    return '/usr/bin/virtualenv-3'
+ def _system_python_env_variable_present():
+     return any(
This page took 0.055575 seconds and 4 git commands to generate.