community/qt5-qtwebengine-5.15.16-r7: build failure due to using removed python 'imp' module
qt5-qtwebengine fails to build with:
FAILED: gen/ui/gfx/geometry/mojom/geometry.mojom-module
/usr/bin/python ../../3rdparty/chromium/mojo/public/tools/mojom/mojom_parser.py --input-root /home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/3rdparty/chromium/ --input-root /home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/core/release/gen --output-root /home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/core/release/gen --mojom-file-list=__ui_gfx_geometry_mojom_mojom__parser__home_buildozer_aports_community_qt5-qtwebengine_src_qtwebengine-5.15.16-lts_src_toolchain_target__rule..rsp --check-imports /home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/core/release/gen/ui/gfx/geometry/mojom/mojom.build_metadata --enable-feature is_posix --enable-feature is_linux
Traceback (most recent call last):
File "/home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/core/release/../../3rdparty/chromium/mojo/public/tools/mojom/mojom_parser.py", line 23, in <module>
from mojom.generate import translate
File "/home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/generate/translate.py", line 17, in <module>
from mojom.generate import generator
File "/home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/generate/generator.py", line 12, in <module>
from mojom import fileutil
File "/home/buildozer/aports/community/qt5-qtwebengine/src/qtwebengine-5.15.16-lts/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/fileutil.py", line 6, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
The imp
module has been replaced by the importlib
module.