mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 15:12:11 +08:00
Fix qtwebengine and thunderbird for python-3.11
This commit is contained in:
parent
4227f0da40
commit
53775068ff
@ -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 &&
|
||||
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
|
||||
|
@ -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 &&
|
||||
export MOZBUILD_STATE_PATH=./mozbuild &&
|
||||
./mach configure &&
|
||||
export MOZBUILD_STATE_PATH=./mozbuild &&
|
||||
./mach configure &&
|
||||
./mach build</userinput></screen>
|
||||
|
||||
<para>
|
||||
|
Loading…
Reference in New Issue
Block a user