]> git.karo-electronics.de Git - linux-beck.git/commit
docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 14 Nov 2016 16:32:27 +0000 (14:32 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:32 +0000 (11:39 +0100)
commitcd6d9ffffc4c2ce545e9d8dfcc7fe562cb02b4ea
tree3a7f2ad64834f1bbcecedf84b5ad7494bad35b46
parent66c6770379368ba0738a61c2317edc0ca324b902
docs-rst: fix LaTeX \DURole renewcommand with Sphinx 1.3+

commit e2a91f4f42018994d7424d405900d17eba6555d0 upstream.

PDF build on Kernel 4.9-rc? returns an error with Sphinx 1.3.x
and Sphinx 1.4.x, when trying to solve some cross-references.

The solution is to redefine the \DURole macro.

However, this is redefined too late. Move such redefinition to
LaTeX preamble and bind it to just the Sphinx versions where the
error is known to be present.

Tested by building the documentation on interactive mode:
make PDFLATEX=xelatex -C Documentation/output/./latex

Fixes: e61a39baf74d ("[media] index.rst: Fix LaTeX error in interactive mode on Sphinx 1.4.x")
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/conf.py
Documentation/media/index.rst