[packages/hotdoc] - added fix for crash on gstreamer 1.24 docs
qboosh
qboosh at pld-linux.org
Thu Mar 14 20:25:43 CET 2024
commit 162f124c687b6540b6fb8919c741ac23f1150284
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Mar 14 20:11:15 2024 +0100
- added fix for crash on gstreamer 1.24 docs
hotdoc-callback-field.patch | 13 +++++++++++++
hotdoc.spec | 2 ++
2 files changed, 15 insertions(+)
---
diff --git a/hotdoc.spec b/hotdoc.spec
index cb86b3d..f609d79 100644
--- a/hotdoc.spec
+++ b/hotdoc.spec
@@ -25,6 +25,7 @@ Source4: hotdoc-%{version}-hotdoc_bootstrap_theme-dist.tar.xz
# Source4-md5: 38a5d173bf901dc1697e65760883a03b
Patch0: %{name}-setup.patch
Patch1: clang_libdir.patch
+Patch2: %{name}-callback-field.patch
URL: https://hotdoc.github.io/
BuildRequires: cmake >= 2.8.9
BuildRequires: flex
@@ -69,6 +70,7 @@ itp.).
%setup -q -a1 -a2 -a3
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%{__mv} cmark-*/* cmark
%{__mv} prism-*/* hotdoc/extensions/syntax_highlighting/prism
diff --git a/hotdoc-callback-field.patch b/hotdoc-callback-field.patch
new file mode 100644
index 0000000..3cdcd6f
--- /dev/null
+++ b/hotdoc-callback-field.patch
@@ -0,0 +1,13 @@
+Tag <callback> might appear also as further (not just the first) node within <field>
+(causing hotdoc to crash after not finding <type> in such <field> node)
+--- hotdoc-0.16/hotdoc/extensions/gi/gi_extension.py.orig 2023-11-09 15:08:48.000000000 +0100
++++ hotdoc-0.16/hotdoc/extensions/gi/gi_extension.py 2024-03-14 19:43:28.904438367 +0100
+@@ -350,7 +350,7 @@ class GIExtension(Extension):
+ if field.attrib.get('private', False):
+ continue
+
+- if children[0].tag == core_ns('callback'):
++ if any(child.tag == core_ns('callback') for child in children):
+ continue
+
+ type_desc = type_description_from_node(field)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hotdoc.git/commitdiff/162f124c687b6540b6fb8919c741ac23f1150284
More information about the pld-cvs-commit
mailing list