0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-21 15:16:41 +00:00
termux-packages/x11-packages/qt5-qtwebengine/0030-remove-imp-for-python-312.patch
Robert Kirkman 4dd604d32b bump(x11/qt5-qtwebengine): 5.15.18 (#23146)
- fix build with clang 18
- fix build with python 3.12
- fix build for 32-bit ARM (add `libopus` to dependencies explicitly,
  which prevents this error)

```
FAILED: gen/third_party/opus/celt_pitch_xcorr_arm_gnu.S
/usr/bin/python3 ../../../../src/src/3rdparty/chromium/third_party/opus/convert_rtcd_assembler.py ../../../../src/src/3rdparty/chromium/third_party/opus/src/celt/arm/arm2gnu.pl ../../../../src/src/3rdparty/chromium/third_party/opus/src/celt/arm/celt_pitch_xcorr_arm.s gen/third_party/opus/celt_pitch_xcorr_arm_gnu.S
  File "/home/builder/.termux-build/qt5-qtwebengine/build/src/core/release/../../../../src/src/3rdparty/chromium/third_party/opus/convert_rtcd_assembler.py", line 23
    print USAGE
    ^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
```
2025-02-10 20:06:57 +08:00

23 lines
657 B
Diff

Cherry-pick from https://github.com/chromium/chromium/commit/f5f6e361d037c31630661186e7bd7b31d2784cb8
--- a/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/fileutil.py
+++ b/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/fileutil.py
@@ -3,7 +3,6 @@
# found in the LICENSE file.
import errno
-import imp
import os.path
import sys
--- a/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/parse/lexer.py
+++ b/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/parse/lexer.py
@@ -2,7 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import imp
import os.path
import sys