Bug#918827: atheist: FTBFS with Sphinx 1.8: No module named pngmath

2019-02-10 Thread Micha Rosenbaum
user debian-rele...@lists.debian.org
tag 918827 patch
usertag 918827 bsp-2019-02-de-berlin
thank you

Hello, the attached patch replaces pngmath with imgmath in conf.py and
fixes the FTBFS bug.

Micha Rosenbaum
diff -Nru atheist-0.20110402/debian/changelog atheist-0.20110402/debian/changelog
--- atheist-0.20110402/debian/changelog	2015-08-20 00:16:42.0 +0200
+++ atheist-0.20110402/debian/changelog	2019-02-10 12:01:28.0 +0100
@@ -1,3 +1,10 @@
+atheist (0.20110402-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Replaced pngmath module with imgmath (Closes: #918827)
+
+ -- Micha David Rosenbaum   Sun, 10 Feb 2019 12:01:28 +0100
+
 atheist (0.20110402-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru atheist-0.20110402/debian/patches/replace-pngmath.patch atheist-0.20110402/debian/patches/replace-pngmath.patch
--- atheist-0.20110402/debian/patches/replace-pngmath.patch	1970-01-01 01:00:00.0 +0100
+++ atheist-0.20110402/debian/patches/replace-pngmath.patch	2019-02-10 12:01:28.0 +0100
@@ -0,0 +1,18 @@
+Description: Replace pngmath sphinx module with imgmath
+ This package used the deprecated and later removed Sphinx extension
+ pngmath. This caused in FTBFS with newer Sphinx versions. pngmath can
+ be replaced with imgmath.
+Author: Micha David Rosenbaum 
+Bug-Debian: https://bugs.debian.org/918827
+Last-Update: 2019-02-10
+--- atheist-0.20110402.orig/doc/conf.py
 atheist-0.20110402/doc/conf.py
+@@ -22,7 +22,7 @@ import sys, os
+
+ # 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.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig']
++extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.imgmath', 'sphinx.ext.ifconfig']
+
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
diff -Nru atheist-0.20110402/debian/patches/series atheist-0.20110402/debian/patches/series
--- atheist-0.20110402/debian/patches/series	1970-01-01 01:00:00.0 +0100
+++ atheist-0.20110402/debian/patches/series	2019-02-10 12:01:28.0 +0100
@@ -0,0 +1 @@
+replace-pngmath.patch


Bug#918827: atheist: FTBFS with Sphinx 1.8: No module named pngmath

2019-01-09 Thread Dmitry Shachnev
Source: atheist
Version: 0.20110402-2.1
Severity: important
User: python-modules-t...@lists.alioth.debian.org
Usertags: sphinx1.8

Dear Maintainer,

atheist fails to build with Sphinx 1.8, currently available in
experimental:

  /usr/bin/make -C doc html
  make[2]: Entering directory '/<>/doc'
  python /usr/bin/sphinx-build -b html -d _build/doctrees   . _build/html
  Running Sphinx v1.8.3

  Extension error:
  Could not import extension sphinx.ext.pngmath (exception: No module named 
pngmath)
  make[2]: *** [Makefile:43: html] Error 2

The pngmath extension was deprecated in Sphinx 1.4 and has been removed [1]
in Sphinx 1.8. The recommended alternative is sphinx.ext.imgmath [2] which
also has SVG support in addition to PNG.

To me it looks like this extension is unused anyway: there are no “.. math::”
directives or “:math:” roles, and the binary package does not have any
generated PNG images. So this extension can be simply removed from extensions
in conf.py.

[1]: https://github.com/sphinx-doc/sphinx/pull/4702
[2]: https://www.sphinx-doc.org/en/1.8/usage/extensions/math.html

--
Dmitry Shachnev


signature.asc
Description: PGP signature