diff --git a/build-python-3.11.patch b/build-python-3.11.patch new file mode 100644 index 0000000..6f6cea2 --- /dev/null +++ b/build-python-3.11.patch @@ -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) diff --git a/firefox.spec b/firefox.spec index d7dce3f..0891447 100644 --- a/firefox.spec +++ b/firefox.spec @@ -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