[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/10: gnu: mozjs@78: Patch for Python 3.10.
From: |
guix-commits |
Subject: |
03/10: gnu: mozjs@78: Patch for Python 3.10. |
Date: |
Thu, 1 Sep 2022 17:44:51 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 1cad443b02d55760a68856f5433e4e48fbdac780
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Aug 16 10:28:31 2022 +0200
gnu: mozjs@78: Patch for Python 3.10.
* gnu/packages/gnuzilla.scm (mozjs-78)[arguments]: Add phase.
---
gnu/packages/gnuzilla.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index c4239d769f..78318cfab9 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -265,6 +265,25 @@ in C/C++.")
(substitute-keyword-arguments (package-arguments mozjs)
((#:phases phases)
#~(modify-phases #$phases
+ (add-after 'unpack 'patch-for-python-3.10
+ (lambda _
+ ;; Some classes were moved from collections to collections.abc
+ ;; in Python 3.10.
+ (substitute* "python/mozbuild/mozbuild/util.py"
+ (("collections\\.Sequence")
+ "collections.abc.Sequence"))
+ (substitute* "python/mozbuild/mozbuild/makeutil.py"
+ (("from collections import Iterable")
+ "from collections.abc import Iterable"))
+ (substitute*
"python/mozbuild/mozbuild/backend/configenvironment.py"
+ (("from collections import Iterable, OrderedDict")
+ "from collections import OrderedDict\n\
+from collections.abc import Iterable"))
+ (substitute*
+ "testing/mozbase/manifestparser/manifestparser/filters.py"
+ (("from collections import defaultdict, MutableSequence")
+ "from collections import defaultdict\n\
+from collections.abc import MutableSequence"))))
(replace 'configure
(lambda* (#:key configure-flags #:allow-other-keys)
;; The configure script does not accept environment variables
as
- branch core-updates updated (58863b93b0 -> 08380429b8), guix-commits, 2022/09/01
- 05/10: gnu: perl-io-socket-ssl: Update to 2.074., guix-commits, 2022/09/01
- 02/10: gnu: GHC: Adjust for Python 3.10., guix-commits, 2022/09/01
- 06/10: gnu: cURL: Update to 7.85.0., guix-commits, 2022/09/01
- 03/10: gnu: mozjs@78: Patch for Python 3.10.,
guix-commits <=
- 08/10: gnu: swig: Fix build with GCC-12., guix-commits, 2022/09/01
- 01/10: gnu: ruby@2.7: Incorporate grafted changes., guix-commits, 2022/09/01
- 04/10: gnu: CMake: Update to 3.24.1., guix-commits, 2022/09/01
- 07/10: gnu: llvm-14, llvm-12: Enable RTTI., guix-commits, 2022/09/01
- 09/10: gnu: doxygen: Fix build with GCC-12., guix-commits, 2022/09/01
- 10/10: gnu: boost: Update to 1.80.0., guix-commits, 2022/09/01