From cf17cee6f4674b91bd29141c11c52c4fa1a0f027 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Tue, 28 Apr 2026 18:52:17 +0800 Subject: [PATCH] sci-mathematics/octave: fix doc build Closes: https://bugs.gentoo.org/971018 Signed-off-by: Z. Liu Part-of: https://github.com/gentoo/gentoo/pull/46174 Closes: https://github.com/gentoo/gentoo/pull/46174 Signed-off-by: Sam James --- ...ix-qt-help-generator-for-texinfo-7.3.patch | 34 +++++++++++++++++++ sci-mathematics/octave/octave-11.1.0.ebuild | 1 + sci-mathematics/octave/octave-9.2.0-r2.ebuild | 1 + 3 files changed, 36 insertions(+) create mode 100644 sci-mathematics/octave/files/octave-9.2.0-fix-qt-help-generator-for-texinfo-7.3.patch diff --git a/sci-mathematics/octave/files/octave-9.2.0-fix-qt-help-generator-for-texinfo-7.3.patch b/sci-mathematics/octave/files/octave-9.2.0-fix-qt-help-generator-for-texinfo-7.3.patch new file mode 100644 index 000000000000..cba01a841de7 --- /dev/null +++ b/sci-mathematics/octave/files/octave-9.2.0-fix-qt-help-generator-for-texinfo-7.3.patch @@ -0,0 +1,34 @@ +https://github.com/gnu-octave/octave/commit/e21b1898cb6507dff38679c25b4db7fde44de883 +From e21b1898cb6507dff38679c25b4db7fde44de883 Mon Sep 17 00:00:00 2001 +From: "Dmitri A. Sergatskov" +Date: Sun, 8 Mar 2026 16:08:04 -0400 +Subject: [PATCH] Fix Qt help generator for Texinfo 7.3 Function-Index output. + +Texinfo 7.3 changed the HTML classes used for the function index. +Update the Qt help generator to handle both the old and the new HTML +forms when parsing Function-Index.html. + +* mk-qthelp.pl: Accept new printindex-style function +index table classes in Function-Index.html parsing. + +diff --git a/doc/interpreter/mk-qthelp.pl b/doc/interpreter/mk-qthelp.pl +index 475ba20b22..a68af8b0ad 100755 +--- a/doc/interpreter/mk-qthelp.pl ++++ b/doc/interpreter/mk-qthelp.pl +@@ -72,7 +72,12 @@ open ($HTML, "<", $htmlfname) or die "Unable to open $htmlfname"; + + # Skip through preamble of file to find start of list + while (defined ($_ = <$HTML>) +- and ! /^