Ignore:
Timestamp:
11/06/2023 01:14:29 PM (6 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
93ea49a
Parents:
68a9914
Message:

Fix qtwebengine for python 3.12 and ICU 74.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/lib/qtwebengine.xml

    r68a9914 rc51bc3f  
    416416sed -e "s/'rU'/'r'/" \
    417417    -i src/3rdparty/chromium/tools/grit/grit/util.py</userinput></screen>
     418
     419    <para>
     420      Several fixes are needed for using Python-3.12+: first, either remove
     421      references to the removed <command>imp</command> module or
     422      replace it with the newer <command>importlib</command> module:
     423    </para>
     424
     425<screen><userinput>sed -e "/import imp/d"                                                    \
     426    -i src/3rdparty/chromium/mojo/public/tools/mojom/mojom/fileutil.py    \
     427       src/3rdparty/chromium/mojo/public/tools/mojom/mojom/parse/lexer.py &amp;&amp;
     428sed -e "s/import imp/import importlib.util/" \
     429    -e 's@.*load_source.*@\
     430    spec = importlib.util.spec_from_file_location(fullname, filepath)\
     431    mod = importlib.util.module_from_spec(spec);\
     432    spec.loader.exec_module(mod)\
     433    return mod@'                             \
     434    -i src/3rdparty/chromium/components/resources/protobufs/binary_proto_generator.py</userinput></screen>
     435
     436    <para>
     437      Remove an obsolete instance of and a reference to the
     438      <command>six</command> module:
     439    </para>
     440
     441<screen><userinput>sed -e /six.move/d \
     442    -i src/3rdparty/chromium/third_party/protobuf/python/google/protobuf/internal/python_message.py &amp;&amp;
     443    rm -r src/3rdparty/chromium/tools/grit/third_party/six</userinput></screen>
     444
     445    <para>
     446      There is also a workaround needed for ICU-74+:
     447    </para>
     448
     449<screen><userinput>sed -e 's/^#define BA_LB_COUNT.*$/#define BA_LB_COUNT 40/' \
     450-i src/3rdparty/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc</userinput></screen>
    418451
    419452    <para>
Note: See TracChangeset for help on using the changeset viewer.