Bug#1028758: mozjs78: FTBFS with python3.11 as default: ValueError: invalid mode: 'rU'

Simon McVittie smcv at debian.org
Sat Jan 14 13:52:58 GMT 2023


On Sat, 14 Jan 2023 at 13:28:08 +0100, Lucas Nussbaum wrote:
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> Relevant part (hopefully):
> > /usr/bin/ld: cannot find -lXt: No such file or directory

No, I don't think that's the root cause: I think that's just a configure
check for an optional library that isn't a build-dependency. Instead,
I think the root cause for the FTBFS is this:

> > Creating config.status
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/js/src/../../configure.py", line 181, in <module>
> >     sys.exit(main(sys.argv))
> >              ^^^^^^^^^^^^^^
> >   File "/<<PKGBUILDDIR>>/js/src/../../configure.py", line 57, in main
> >     return config_status(config)
> >            ^^^^^^^^^^^^^^^^^^^^^
> >   File "/<<PKGBUILDDIR>>/js/src/../../configure.py", line 142, in config_status
> >     partial_config.write_vars(sanitized_config)
> >   File "/<<PKGBUILDDIR>>/python/mozbuild/mozbuild/backend/configenvironment.py", line 361, in write_vars
> >     self.substs._fill_group(substs)
> >   File "/<<PKGBUILDDIR>>/python/mozbuild/mozbuild/backend/configenvironment.py", line 257, in _fill_group
> >     new_files.add(self._write_file(k, v))
> >                   ^^^^^^^^^^^^^^^^^^^^^^
> >   File "/<<PKGBUILDDIR>>/python/mozbuild/mozbuild/backend/configenvironment.py", line 240, in _write_file
> >     with FileAvoidWrite(filename) as fh:
> >   File "/<<PKGBUILDDIR>>/python/mozbuild/mozbuild/util.py", line 338, in __exit__
> >     self.close()
> >   File "/<<PKGBUILDDIR>>/python/mozbuild/mozbuild/util.py", line 261, in close
> >     existing = _open(self.name, self.mode)
> >                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >   File "/<<PKGBUILDDIR>>/python/mozbuild/mozbuild/util.py", line 59, in _open
> >     return io.open(path, mode, encoding='utf-8', newline='\n')
> >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ValueError: invalid mode: 'rU'

the same as <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028716> in
mozjs102.

    smcv



More information about the pkg-gnome-maintainers mailing list