Fix qtwebengine and thunderbird for python-3.11

This commit is contained in:
Pierre Labastie 2022-11-10 13:15:47 +01:00
parent 4227f0da40
commit 53775068ff
2 changed files with 25 additions and 2 deletions

View File

@ -387,6 +387,15 @@
<screen><userinput>sed -e '/link_pulseaudio/s/false/true/' \
-i src/3rdparty/chromium/media/media_options.gni</userinput></screen>
<para>
Next, fix the build tools so they can be run with Python-3.11+:
</para>
<screen><userinput>sed -e 's/\^(?i)/(?i)^/' \
-i src/3rdparty/chromium/tools/metrics/ukm/ukm_model.py &amp;&amp;
sed -e "s/'rU'/'r'/" \
-i src/3rdparty/chromium/tools/grit/grit/util.py</userinput></screen>
<para>
Finally, fix a change in the build system which allows its developers to
pass e.g. -j20 to make (for quick tests of some areas) but breaks the

View File

@ -254,9 +254,23 @@ esac</userinput></screen>
<screen><userinput>grep -rl \"rU\" | xargs sed -i 's/"rU"/"r"/'</userinput></screen>
<para>
Then fix an issue with regular expressions in python-3.11:
</para>
<screen><userinput>sed -e 's/?s)\./?s:.)/' \
-e '/?m)/{s/?m)/?m:/;s/\$"/$)"/}' \
-e '/?s)%/{s/?s)/?s:/;s/?"/?)"/}' \
-i xpcom/idl-parser/xpidl/xpidl.py</userinput></screen>
<para>
Now invoke the Python <command>mach</command> script to compile the
package.
</para>
<screen><userinput>export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none &amp;&amp;
export MOZBUILD_STATE_PATH=./mozbuild &amp;&amp;
./mach configure &amp;&amp;
export MOZBUILD_STATE_PATH=./mozbuild &amp;&amp;
./mach configure &amp;&amp;
./mach build</userinput></screen>
<para>