Source: cdist
Version: 4.3.1-1

Dear Dmitry,

cdist-doc depends on "sphinx-common (<< 1.4.5.0~), sphinx-common (>=
1.4.5)" via ${sphinxdoc:Depends}. While this is generally fine, it also
means that cdist needs to be rebuilt against every new sphinx upstream
version.

At the moment this causes the following issues:

* cdist-doc is uninstallable in unstable.
* sphinx doesn't migrate to testing because it would break cdist-doc
  there.

So I tried to rebuild cdist against sphinx 1.4.6-1 on my system locally,
but it FTBFS:

---------------------------------------------------------------------------
[…]
make -C docs/src man
make[4]: Entering directory '/home/abe/debian/tmp/cdist-4.3.1/docs/src'
sphinx-build -b cman -d _build/doctrees   . ../dist/man
Running Sphinx v1.4.6
making output directory...

Exception occurred:
  File "conf.py", line 18, in <module>
    import sphinx_rtd_theme
ImportError: No module named sphinx_rtd_theme
The full traceback has been saved in /tmp/sphinx-err-KWxKAN.log, if you want to 
report the issue to the developers.
---------------------------------------------------------------------------

/tmp/sphinx-err-KWxKAN.log contains:

---------------------------------------------------------------------------
# Sphinx version: 1.4.6
# Python version: 2.7.12+ (CPython)
# Docutils version: 0.12 release
# Jinja2 version: 2.8
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/cmdline.py", line 243, in main
    opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
  File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 137, in 
__init__
    confoverrides or {}, self.tags)
  File "/usr/lib/python2.7/dist-packages/sphinx/config.py", line 287, in 
__init__
    execfile_(filename, config)
  File "/usr/lib/python2.7/dist-packages/sphinx/util/pycompat.py", line 130, in 
execfile_
    exec_(code, _globals)
  File "/usr/lib/python2.7/dist-packages/six.py", line 699, in exec_
    exec("""exec _code_ in _globs_, _locs_""")
  File "<string>", line 1, in <module>
  File "conf.py", line 18, in <module>
    import sphinx_rtd_theme
ImportError: No module named sphinx_rtd_theme
---------------------------------------------------------------------------

It though builds fine for me in pbuilder, i.e. inside a clean chroot
with just its build-dependencies and nothing else.

So it seems that if Python 2.7 is also installed (and maybe some other
packages, too) but python-sphinx-rtd-theme (compared to the
build-dependency python3-sphinx-rtd-theme) is not installed, it doesn't
build, because Python 2.7 seems favoured over Python 3 and then
python-sphinx-rtd-theme would be needed instead of
python3-sphinx-rtd-theme.

One probable solution which comes to my mind is a "Build-Conflicts:
python2.7", but I'm not sure if that's a really good idea.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'), 
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1, 
'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-rc5-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

-- no debconf information

Reply via email to