]> git.pld-linux.org Git - packages/gtk-doc.git/commitdiff
- added struct-end patch (fix for indented struct end); release 4 auto/th/gtk-doc-1.33.2-4
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Jun 2021 04:30:48 +0000 (06:30 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 23 Jun 2021 04:30:48 +0000 (06:30 +0200)
gtk-doc-struct-end.patch [new file with mode: 0644]
gtk-doc.spec

diff --git a/gtk-doc-struct-end.patch b/gtk-doc-struct-end.patch
new file mode 100644 (file)
index 0000000..d637385
--- /dev/null
@@ -0,0 +1,13 @@
+Detect struct end (and don't crash) on indented "}".
+
+--- gtk-doc-1.33.2/gtkdoc/scan.py.orig 2021-06-21 17:26:04.628579149 +0200
++++ gtk-doc-1.33.2/gtkdoc/scan.py      2021-06-21 17:26:07.118565660 +0200
+@@ -941,7 +941,7 @@
+         # comments will cause problems.
+         if in_declaration == 'struct' or in_declaration == 'union':
+             # Same regex as for enum
+-            sm = re.search(r'\n\}\s*(?:(\w+)?%s)?;\s*$' % optional_decorators_regex, decl)
++            sm = re.search(r'\n\s*\}\s*(?:(\w+)?%s)?;\s*$' % optional_decorators_regex, decl)
+             if level <= 1 and sm:
+                 if symbol == '':
+                     symbol = sm.group(1)
index 258ffcf6fd638591e60fcfcd20d64a13d6156b65..f338126e63bc5c06645ac9da405a72965a60490a 100644 (file)
@@ -9,13 +9,14 @@ Summary(pl.UTF-8):    Narzędzie do generowania dokumentacji API do GTK+ i GNOME
 Summary(pt_BR.UTF-8):  O gerador de documentação do GTK
 Name:          gtk-doc
 Version:       1.33.2
-Release:       3
+Release:       4
 License:       GPL v2+
 Group:         Development/Tools
 Source0:       https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz
 # Source0-md5: ea6563421abe964d02135ca0d5b8dd8e
 Patch0:                %{name}-noarch.patch
 Patch1:                %{name}-cmake.patch
+Patch2:                %{name}-struct-end.patch
 URL:           https://wiki.gnome.org/DocumentationProject/GtkDoc
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.11
@@ -86,6 +87,7 @@ pomocą gtk-doc.
 %setup -q
 %{!?with_tests:%patch0 -p1}
 %patch1 -p1
+%patch2 -p1
 
 %{__mv} doc/README doc/README.docs
 
This page took 0.111015 seconds and 4 git commands to generate.