mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: mozjs@78: Patch for Python 3.10.
* gnu/packages/gnuzilla.scm (mozjs-78)[arguments]: Add phase.
This commit is contained in:
parent
48718135e7
commit
1cad443b02
1 changed files with 19 additions and 0 deletions
|
@ -265,6 +265,25 @@ (define-public mozjs-78
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue