Hi,

On Wed, Feb 13, 2019 at 08:16:36PM +0000, Santiago Vila wrote:
...
> make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
> sphinx-build -b html -d build/doctrees   source build/html
> Running Sphinx v1.8.3
> 
> Extension error:
> Could not import extension sphinx.ext.pngmath (exception: No module named 
> pngmath)
> make[2]: *** [Makefile:40: html] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
> make[1]: *** [debian/rules:21: override_dh_auto_build] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:13: build-indep] Error 2
> dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit 
> status 2
> --------------------------------------------------------------------------------

the fix is rather trivial. The file docs/source/conf.py neededs to be
modified as sphinx.ext.pngmath is now been dropped in favour of
sphinx.ext.imgmath.

Please see attached patch for applying on top the packagig branch.

Regards
Carsten
>From 376ce69f5f4748fd077b13e84243078f86a172b4 Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <c.schoen...@t-online.de>
Date: Sat, 23 Feb 2019 20:08:41 +0100
Subject: [PATCH] adding a patch queue to fix FTBFS

added patch:
0001-Fix-FTBFS-with-sphinx-1.8.patch
---
 .../0001-Fix-FTBFS-with-sphinx-1.8.patch      | 23 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 debian/patches/0001-Fix-FTBFS-with-sphinx-1.8.patch
 create mode 100644 debian/patches/series

diff --git a/debian/patches/0001-Fix-FTBFS-with-sphinx-1.8.patch b/debian/patches/0001-Fix-FTBFS-with-sphinx-1.8.patch
new file mode 100644
index 0000000..4c3787e
--- /dev/null
+++ b/debian/patches/0001-Fix-FTBFS-with-sphinx-1.8.patch
@@ -0,0 +1,23 @@
+From: Carsten Schoenert <c.schoen...@t-online.de>
+Date: Sat, 23 Feb 2019 19:50:52 +0100
+Subject: Fix-FTBFS-with-sphinx-1.8
+
+sphinx.ext.pngmath has been removed in favor of sphinx.ext.imgmath.
+replace the former with the latter in docs/source/conf.py.
+---
+ docs/source/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/source/conf.py b/docs/source/conf.py
+index 8ec8ee0..c0c7dd5 100644
+--- a/docs/source/conf.py
++++ b/docs/source/conf.py
+@@ -17,7 +17,7 @@ version = sunlight.__version__
+ # Add any Sphinx extension module names here, as strings. They can be extensions
+ # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',
+-    'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath',
++    'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath',
+     'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
+ 
+ # Add any paths that contain templates here, relative to this directory.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4ef579c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-FTBFS-with-sphinx-1.8.patch
-- 
2.20.1

Reply via email to