https://bugs.winehq.org/show_bug.cgi?id=49126
Bug ID: 49126 Summary: wine-gecko fails to build on host systems with python 3.8 Product: Wine-gecko Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-gecko-unknown Assignee: jacek@codeweavers.com Reporter: bero@lindev.ch Distribution: ---
Created attachment 67122 --> https://bugs.winehq.org/attachment.cgi?id=67122 Fix (minus the needed pip update)
Various python scripts in wine-gecko use functions that have been removed in python 3.8.x:
platform.linux_distribution() in build/mach_bootstrap.py, python/mozboot/mozboot/bootstrap.py, testing/mozbase/mozinfo/mozinfo/mozinfo.py, testing/mozharness/mozinfo/mozinfo.py and media/webrtc/trunk/tools/gyp/gyptest.py (probably the last one isn't actually used)
time.clock() in python/mozbuild/mozbuild/config_status.py
Furthermore, the version of pip that's bundled in python/virtualenv/virtualenv_support/pip-8.0.2-py2.py3-none-any.whl uses platform.linux_distribution() as well. This is fixable by replacing this file with current upstream pip, https://files.pythonhosted.org/packages/54/2e/df11ea7e23e7e761d484ed3740285a...
The replacement for platform.linux_distribution() needs the distro module pulled in, so the virtualenv config needs to be updated as well.
Attaching a patch that fixes the issues except the pip update (binary files don't go well with patch files...)
https://bugs.winehq.org/show_bug.cgi?id=49126
--- Comment #1 from Jacek Caban jacek@codeweavers.com --- Please retest with Git version of Wine Gecko: https://sourceforge.net/p/wine/wine-gecko/ci/master/tree/
It contains a number of python compatibility fixes. It works for me with python 3.9.
https://bugs.winehq.org/show_bug.cgi?id=49126
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- Fixed in git and released as Wine Gecko 2.47.2.
https://bugs.winehq.org/show_bug.cgi?id=49126
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Jacek Caban jacek@codeweavers.com --- Closing.