diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-07-29 12:45:36 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-07-29 12:45:36 +0300 |
commit | eb9f726d22751dd77984b106f2dbf1c0d336954b (patch) | |
tree | bb1bf3e2c04def9e0673303efa355f4e884747ca /gnu/packages/patches | |
parent | e6b2552a96b328d81f681c2ae17c54a795ab2547 (diff) | |
download | guix-eb9f726d22751dd77984b106f2dbf1c0d336954b.tar.gz |
gnu: sphinxbase: Fix building.
* gnu/packages/speech.scm (sphinxbase)[source]: Add patch. * gnu/packages/patches/sphinxbase-fix-doxygen.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/sphinxbase-fix-doxygen.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/patches/sphinxbase-fix-doxygen.patch b/gnu/packages/patches/sphinxbase-fix-doxygen.patch new file mode 100644 index 0000000000..c8ebc52628 --- /dev/null +++ b/gnu/packages/patches/sphinxbase-fix-doxygen.patch @@ -0,0 +1,24 @@ +https://github.com/cmusphinx/sphinxbase/commit/6989c52a3fb9473fd61326e548440fff887525c2 + +commit 6989c52a3fb9473fd61326e548440fff887525c2 +Author: Michel Zou <xantares09@hotmail.com> +Date: Thu Feb 6 07:02:06 2020 +0100 + + Fix doxy2swig.py IndexError: list index out of range + +diff --git a/doc/doxy2swig.py b/doc/doxy2swig.py +index 5589b0d..a01c4b1 100644 +--- a/doc/doxy2swig.py ++++ b/doc/doxy2swig.py +@@ -299,7 +299,10 @@ class Doxy2SWIG: + name = first['name'].firstChild.data + + for n in node.getElementsByTagName('param'): +- arg_type = n.getElementsByTagName('type')[0] ++ elts = n.getElementsByTagName('type') ++ if len(elts) == 0: ++ continue ++ arg_type = elts[0] + ref = self.get_specific_nodes(arg_type, ('ref')) + if 'ref' in ref: + type_name = ref['ref'].firstChild.data |