From 4d45de9bff7b7ef01f7d3c9e53a61adc9cf3ce9e Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Fri, 15 Jul 2022 16:19:14 +0200 Subject: [PATCH] Fixing build on rawhide due to python 3.11 --- build-python-3.11.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build-python-3.11.patch b/build-python-3.11.patch index 818d664..410a3da 100644 --- a/build-python-3.11.patch +++ b/build-python-3.11.patch @@ -1,6 +1,6 @@ diff -up firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.build-python-3.11 firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py --- firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.build-python-3.11 2022-06-23 09:10:31.000000000 +0200 -+++ firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py 2022-07-15 15:56:52.101296928 +0200 ++++ firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py 2022-07-15 16:18:52.048351493 +0200 @@ -1572,13 +1572,13 @@ class IDLParser(object): t_ignore = " \t" @@ -17,3 +17,12 @@ diff -up firefox-102.0/xpcom/idl-parser/xpidl/xpidl.py.build-python-3.11 firefox def t_IID(self, t): return t +@@ -1591,7 +1591,7 @@ class IDLParser(object): + return t + + def t_LCDATA(self, t): +- r"(?s)%\{[ ]*C\+\+[ ]*\n(?P.*?\n?)%\}[ ]*(C\+\+)?" ++ r"(?s:%\{[ ]*C\+\+[ ]*\n(?P.*?\n?)%\}[ ]*(C\+\+)?)" + t.type = "CDATA" + t.value = t.lexer.lexmatch.group("cdata") + t.lexer.lineno += t.value.count("\n")