Fixing build on rawhide due to python 3.11

This commit is contained in:
Jan Horak 2022-07-15 14:46:05 +02:00
parent 39f02cbd91
commit 2f128006b4
2 changed files with 14 additions and 0 deletions

12
build-python-3.11.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.python-311 firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py
--- firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.python-311 2022-07-15 14:23:10.890868155 +0200
+++ firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py 2022-07-15 14:42:17.308836813 +0200
@@ -1572,7 +1572,7 @@ class IDLParser(object):
t_ignore = " \t"
def t_multilinecomment(self, t):
- r"/\*(?s).*?\*/"
+ r"/\*(?s:.)*?\*/"
t.lexer.lineno += t.value.count("\n")
if t.value.startswith("/**"):
self._doccomments.append(t.value)

View File

@ -226,6 +226,7 @@ Patch62: build-python.patch
Patch71: 0001-GLIBCXX-fix-for-GCC-12.patch
Patch75: mozilla-1773336.patch
Patch76: D147721-python3.11.diff
Patch77: build-python-3.11.patch
# Test patches
# Generate without context by
@ -507,6 +508,7 @@ This package contains results of tests executed during build.
# Needs for new cbindgen only
%patch75 -p1 -b .1773336
%patch76 -p1 -b .D147721-python3.11.diff
%patch77 -p1 -b .build-python-3.11
# Test patches
#%patch100 -p1 -b .firefox-tests-xpcshell