[python-sfml] 02/07: Add patch to fix documentation build failure
James Cowgill
jcowgill at moszumanska.debian.org
Thu Jun 30 18:03:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
jcowgill pushed a commit to branch master
in repository python-sfml.
commit 3f42279c303fd491e60a0b481c1bfa7384be1852
Author: James Cowgill <james410 at cowgill.org.uk>
Date: Thu Jun 30 16:14:54 2016 +0100
Add patch to fix documentation build failure
---
debian/patches/05_doc-ftbfs.patch | 45 +++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 46 insertions(+)
diff --git a/debian/patches/05_doc-ftbfs.patch b/debian/patches/05_doc-ftbfs.patch
new file mode 100644
index 0000000..d8149e7
--- /dev/null
+++ b/debian/patches/05_doc-ftbfs.patch
@@ -0,0 +1,45 @@
+From 3e181ec6f7635b6e4a490b7a152913e673e6c16a Mon Sep 17 00:00:00 2001
+From: James Cowgill <james410 at cowgill.org.uk>
+Date: Thu, 30 Jun 2016 16:02:22 +0100
+Subject: [PATCH] Fix documentation build failure with sphinx 1.4
+
+Sphinx 1.4 added a new warning which is emitted if it fails to syntax highlight
+a block of code. This warning causes the documentation to fail to build with
+this error because the code cannot be parsed as python:
+
+ Warning, treated as error:
+ /<builddir>/doc/source/examples.rst:69:
+ WARNING: Could not lex literal_block as "python". Highlighting skipped.
+
+This commit sets the correct syntax highlighting language so the code can be
+parsed and the warning isn't emitted.
+
+[jcowgill: see https://github.com/Sonkun/python-sfml/pull/133]
+
+---
+ doc/source/examples.rst | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/doc/source/examples.rst b/doc/source/examples.rst
+index bc60a49..690669d 100644
+--- a/doc/source/examples.rst
++++ b/doc/source/examples.rst
+@@ -67,6 +67,7 @@ Voip
+ Embedding
+ ---------
+ .. literalinclude:: /../../examples/embedding/main.cpp
++ :language: c++
+ :linenos:
+
+ .. literalinclude:: /../../examples/embedding/script.py
+@@ -75,6 +76,7 @@ Embedding
+ Extending
+ ---------
+ .. literalinclude:: /../../examples/extending/extension.pyx
++ :language: cython
+ :linenos:
+
+ .. literalinclude:: /../../examples/extending/main.py
+--
+2.8.1
+
diff --git a/debian/patches/series b/debian/patches/series
index 965fbcb..34491a6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
02_disable-cython-headers.patch
03_disable-intersphinx.patch
04_Use-anonymous-cdef-enum-in-style.pxd-Fixes-119.patch
+05_doc-ftbfs.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/python-sfml.git
More information about the Pkg-games-commits
mailing list