From 2abaa695dbb272e3ce59de648114d162b6003e50 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Tue, 25 Jul 2023 08:50:14 +0200 Subject: [PATCH] Fixed the handling of exceptions that sub-class C++ exceptions Resolves: bz#2225259 --- sip6-fix-exception-handling.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sip6-fix-exception-handling.patch diff --git a/sip6-fix-exception-handling.patch b/sip6-fix-exception-handling.patch new file mode 100644 index 0000000..7bea2c3 --- /dev/null +++ b/sip6-fix-exception-handling.patch @@ -0,0 +1,12 @@ +diff --git a/sipbuild/generator/parser/rules.py b/sipbuild/generator/parser/rules.py +index c221ad7..e79e1b8 100644 +--- a/sipbuild/generator/parser/rules.py ++++ b/sipbuild/generator/parser/rules.py +@@ -2293,6 +2293,7 @@ def p_opt_base_exception(p): + + if len(p) == 4: + base = p[2] ++ base.make_absolute() + + # See if it is a project-defined exception. + for xd in p.parser.pm.spec.exceptions: