- Timestamp:
- 11/02/2023 06:45:41 AM (7 months ago)
- Branches:
- 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
- Children:
- 22819855
- Parents:
- cb3e56c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xsoft/graphweb/firefox.xml
rcb3e56c re86ded4 192 192 193 193 <para> 194 The building system ships several internal copies of the Python 3 195 modules <application>setuptools</application> and 196 <filename>six.py</filename>. The shipped copies are too old 197 to work well with Python 3.12 or later. Replace them with the 198 symlinks to the LFS <application>setuptools</application> package and 199 <xref linkend='six'/> already installed on the system, and adapt the 200 building system for these updated Python modules. We also need to 201 rewrite the code based on the <filename>imp</filename> module removed 202 in Python 3.12 and later using the <filename>importlib</filename> 203 module: 204 </para> 205 206 <screen><userinput>(for i in $(find -name six.py); do 207 ln -sfv /usr/lib/python&python3-majorver;/site-packages/six.py $i 208 [ $? = 0 ] || exit $? 209 done) && 210 211 sed '/ConfigParser/s/Safe//' \ 212 -i testing/mozbase/mozprofile/mozprofile/prefs.py && 213 214 (for i in setuptools distutils-precedence.pth \ 215 pkg_resources _distutils_hack; do 216 rm -rf third_party/python/setuptools/$i && 217 ln -sv /usr/lib/python&python3-majorver;/site-packages/$i \ 218 third_party/python/setuptools 219 [ $? = 0 ] || exit $? 220 done) && 221 222 sed 's/distutils/setuptools._&/' \ 223 -i python/mozbuild/mozbuild/nodeutil.py && 224 225 sed -e '/^import/s/imp$/importlib.util/' \ 226 -e 's/imp.new_module/__import__/' \ 227 -e "s/imp.load_source\(.*\)/spec = \ 228 importlib.util.spec_from_file_location\1; \ 229 mod = importlib.util.module_from_spec(spec); \ 230 spec.loader.exec_module(mod)/" -i python/mach/mach/main.py && 231 sed '/import imp/d' -i netwerk/dns/prepare_tlds.py 232 </userinput></screen> 233 234 <para> 194 235 The configuration of <application>Firefox</application> is accomplished 195 236 by creating a <filename>mozconfig</filename> file containing the desired
Note:
See TracChangeset
for help on using the changeset viewer.