On Mon, Jul 5, 2021 at 4:50 PM Miro Hrončok <mhroncok@redhat.com> wrote:
On 05. 07. 21 15:14, Richard Shaw wrote:
> 0ad failed:
>
> Traceback (most recent call last):
>    File
> "/builddir/build/BUILD/0ad-0.0.24b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build-debug/../js/src/../../configure.py",
> line 25, in <module>
>      from mozbuild.configure import (
>    File
> "/builddir/build/BUILD/0ad-0.0.24b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py",
> line 33, in <module>
>      from mozbuild.util import (
>    File
> "/builddir/build/BUILD/0ad-0.0.24b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/util.py",
> line 760, in <module>
>      class HierarchicalStringList(object):
>    File
> "/builddir/build/BUILD/0ad-0.0.24b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/util.py",
> line 785, in HierarchicalStringList
>      class StringListAdaptor(collections.Sequence):
> AttributeError: module 'collections' has no attribute 'Sequence'
> ERROR: SpiderMonkey build failed
>
> https://kojipkgs.fedoraproject.org//work/tasks/4873/71344873/build.log
> <https://kojipkgs.fedoraproject.org//work/tasks/4873/71344873/build.log>
>
> Doesn't look fmt related.

This is Python 3.10 related.

https://docs.python.org/3.10/whatsnew/3.10.html#removed

"Remove deprecated aliases to Collections Abstract Base Classes from the
collections module."

E.g. use collections.abc.Sequence instead of collections.Sequence.
collections.Sequence was deprecated from Python 3.7.

Well the fix looks simple enough but it's the bundled spidermonkey that needs to be patched and it's gziped inside of the 0ad archive with a separate patching mechanism. BLEH. 

Thanks,
Richard