user/thunderbird: FTBFS: ValueError: invalid mode: 'rU'
Found on ppc64:
...
0:00.99 Clobber not needed.
Error running mach:
['build']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
ValueError: invalid mode: 'rU'
File "/root/packages/user/thunderbird/src/thunderbird-91.13.0/python/mozbuild/mozbuild/build_commands.py", line 153, in build
return driver.build(
^^^^^^^^^^^^^
File "/root/packages/user/thunderbird/src/thunderbird-91.13.0/python/mozbuild/mozbuild/controller/building.py", line 1125, in build
self._write_mozconfig_json()
File "/root/packages/user/thunderbird/src/thunderbird-91.13.0/python/mozbuild/mozbuild/controller/building.py", line 1603, in _write_mozconfig_json
with FileAvoidWrite(mozconfig_json) as fh:
File "/root/packages/user/thunderbird/src/thunderbird-91.13.0/python/mozbuild/mozbuild/util.py", line 342, in __exit__
self.close()
File "/root/packages/user/thunderbird/src/thunderbird-91.13.0/python/mozbuild/mozbuild/util.py", line 266, in close
existing = _open(self.name, self.mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/packages/user/thunderbird/src/thunderbird-91.13.0/python/mozbuild/mozbuild/util.py", line 62, in _open
return io.open(path, mode, encoding="utf-8", newline="\n")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> ERROR: thunderbird: build failed
Caused by recent Python 3.11
bump. See #890 (closed).
Likely applies to the user/firefox-esr
package as well.