Backport upstream patch to enable successful build with Sphinx 5.3+
This commit is contained in:
parent
6d603e41ad
commit
16b05ba7b1
38
12155e05c0.patch
Normal file
38
12155e05c0.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From de3504c81c7cefc87c8229743f93232ca00a685d Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
|
||||
Date: Fri, 28 Oct 2022 08:45:33 +0200
|
||||
Subject: [PATCH 1/2] Fix tests for Sphinx 5.3.0
|
||||
|
||||
Fix https://github.com/breathe-doc/breathe/issues/863
|
||||
---
|
||||
tests/test_renderer.py | 12 +++++++++++-
|
||||
1 file changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_renderer.py b/tests/test_renderer.py
|
||||
index 16889818..a858c65d 100644
|
||||
--- a/tests/test_renderer.py
|
||||
+++ b/tests/test_renderer.py
|
||||
@@ -109,6 +109,12 @@ def __init__(self, **kwargs):
|
||||
WrappedDoxygenNode.__init__(self, compounddefTypeSub, **kwargs)
|
||||
|
||||
|
||||
+class MockMemo:
|
||||
+ def __init__(self):
|
||||
+ self.title_styles = ""
|
||||
+ self.section_level = ""
|
||||
+
|
||||
+
|
||||
class MockState:
|
||||
def __init__(self, app):
|
||||
from breathe.project import ProjectInfoFactory
|
||||
@@ -123,7 +129,11 @@ def __init__(self, app):
|
||||
settings.env = env
|
||||
self.document = utils.new_document("", settings)
|
||||
|
||||
- def nested_parse(self, content, content_offset, contentnode):
|
||||
+ # In sphinx 5.3.0 the method state.nested_parse is not called directly
|
||||
+ # so this memo object should exists here
|
||||
+ self.memo = MockMemo()
|
||||
+
|
||||
+ def nested_parse(self, content, content_offset, contentnode, match_titles=1):
|
||||
pass
|
@ -15,6 +15,9 @@ Source0: %{URL}/archive/v%{version}.tar.gz
|
||||
Source1: %{URL}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz.sig
|
||||
Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8aed58021feacdd5f27ba0e6a72f627716ea9d96#./vermware.key
|
||||
|
||||
# The patch is needed to ensure proper build with Sphinx 5.3+
|
||||
Patch: https://github.com/breathe-doc/breathe/commit/12155e05c0.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: doxygen >= 1.8.4
|
||||
|
Loading…
Reference in New Issue
Block a user