FTBFS with sphinx 3.2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cyrus-sasl2 |
Fix Released
|
Unknown
|
|||
cyrus-sasl2 (Debian) |
Fix Released
|
Unknown
|
|||
cyrus-sasl2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
cyrus-sasl2 ships with a sphinx extension to build its documentation, and this extension was based on a very old sphinx version. It no longer builds with sphinx 3.2.1 from groovy, failing in several places:
a) "NoUri"
Extension error:
Could not import extension sphinxlocal.
make[2]: *** [Makefile:1166: man/.sphinx-
make[2]: Leaving directory '/home/
make[1]: *** [Makefile:686: all-recursive] Error 1
make[1]: Leaving directory '/home/
make: *** [Makefile:556: all] Error 2
Debian has a bug report already at https:/
b) MACRO_DEF
Extension error:
Could not import extension sphinxlocal.
make[4]: *** [Makefile:1166: man/.sphinx-
make[4]: Leaving directory '/home/
make[3]: *** [Makefile:686: all-recursive] Error 1
make[3]: Leaving directory '/home/
make[2]: *** [Makefile:556: all] Error 2
make[2]: Leaving directory '/home/
dh_auto_build: error: cd build-heimdal && make -j4 sasldir=
make[1]: *** [debian/rules:164: override_
make[1]: Leaving directory '/home/
make: *** [debian/rules:122: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Related branches
- Bryce Harrington (community): Approve
- Canonical Server: Pending requested
-
Diff: 69 lines (+18/-3)3 files modifieddebian/changelog (+9/-0)
debian/control (+2/-2)
debian/rules (+7/-1)
Changed in cyrus-sasl2 (Debian): | |
status: | Unknown → New |
Changed in cyrus-sasl2 (Ubuntu): | |
status: | New → Triaged |
summary: |
- FTBFS with sphinx 2.4: cannot import name 'NoUri' + FTBFS with sphinx 2.4 |
description: | updated |
summary: |
- FTBFS with sphinx 2.4 + FTBFS with sphinx 3.2 |
Changed in cyrus-sasl2: | |
status: | Unknown → New |
Changed in cyrus-sasl2 (Debian): | |
status: | New → Fix Released |
Changed in cyrus-sasl2: | |
status: | New → Fix Released |
I got as far as this collection of patches: https:/ /paste. ubuntu. com/p/wvRzpByDX T/ : exts/sphinxloca l/writers/ manpage. py exts/sphinxloca l/writers/ manpage. py
--- a/docsrc/
+++ b/docsrc/
@@ -14,7 +14,6 @@
from docutils import nodes writers. manpage import ( Writer, Translator as BaseTranslator
self. _docinfo[ 'version' ] = builder. config. version
self. _docinfo[ 'manual_ group'] = builder. config. project
from sphinx.
- MACRO_DEF,
ManualPage
ManualPage
)
@@ -73,9 +72,6 @@
- # since self.append_ header( ) is never called, need to do this here append( MACRO_DEF)
self. defs['literal_ block'] = ('.sp\n.nf\n', '\n.fi\n')
- self.body.
-
# overwritten -- don't wrap literal_block with font calls
--- a/docsrc/ exts/sphinxloca l/writers/ manpage. py exts/sphinxloca l/writers/ manpage. py
+++ b/docsrc/
@@ -13,6 +13,8 @@
"""
from docutils import nodes writers. manpage import ( Writer, Translator as BaseTranslator
+from time import strftime
+
from sphinx.
ManualPage
ManualPage
@@ -21,7 +23,6 @@
from sphinx import addnodes
from sphinx.locale import admonitionlabels, _
-from sphinx.util.osutil import ustrftime
class CyrusManualPage Writer( ManualPageWrite r):
@@ -66,7 +67,7 @@ config. today:
self. _docinfo[ 'date'] = builder. config. today 'date'] = ustrftime( builder. config. today_fmt 'date'] = strftime( builder. config. today_fmt
or _('%B %d, %Y'))
self. _docinfo[ 'copyright' ] = builder. config. copyright
self. _docinfo[ 'version' ] = builder. config. version exts/sphinxloca l/roles/ saslman. py b/docsrc/ exts/sphinxloca l/roles/ saslman. py exts/sphinxloca l/roles/ saslman. py exts/sphinxloca l/roles/ saslman. py
if builder.
else:
- self._docinfo[
+ self._docinfo[
diff --git a/docsrc/
index f881d98f..bcafeece 100644
--- a/docsrc/
+++ b/docsrc/
@@ -18,7 +18,6 @@ from string import Template
import re
def setup(app): 'Initializing saslman plugin') add_crossref_ type('saslman' , 'saslman', '%s', nodes.generated)
- app.info(
app.
return
diff --git a/docsrc/ exts/sphinxloca l/builders/ manpage. py b/docsrc/ exts/sphinxloca l/builders/ manpage. py exts/sphinxloca l/builders/ manpage. py exts/sphinxloca l/builders/ manpage. py writers. manpage import ManualPageWriter
index a6281f79..126839e0 100644
--- a/docsrc/
+++ b/docsrc/
@@ -21,7 +21,6 @@ from docutils.frontend import OptionParser
from sphinx import addnodes
from sphinx.errors import SphinxError
from sphinx.builders import Builder
-from sphinx.environment import NoUri
from sphinx.util.nodes import inline_all_toctrees
from sphinx.util.console import bold, darkgreen
from sphinx.
That moves along a bit, but then fails with; DOOR[@] ,,g' -e 's,[@]SASL_ DL_LIB[ @],-ldl, g' -e 's,[@]LIBS[ @],-lresolv ,g' -e 's,[@]VERSION[ @],2.1. 27,g' -e 's,[@]libdir[ @],/usr/ lib/x86_ 64-linux- gnu,g' -e 's,[@]prefix[ @],/usr, g' -e 's,[@]exec_ prefix[ @],/usr, g' -e 's,[@]includedi r[@],/usr/ include, g' < ../libsasl2.pc.in > libsasl2.pc sphinx- build -d docsrc/.doctrees -n -q -b cyrman ./docsrc ./man
sed -e 's,[@]LIB_
/usr/bin/
WARNING: The config value `author' has type `list', defaults to `str'.
WARNING: ...