[Python-modules-team] Bug#820682: python-sphinx: Missing dependency on git causes other packages to FTBFS

Michael Tautschnig mt at debian.org
Mon Apr 11 11:53:10 UTC 2016


Package: python-sphinx
Version: 1.3.6-2
Severity: serious
Justification: breaks build of depending packages

While trying to build packages such as barbican or horizon in a clean chroot,
they would fail with:

   debian/rules override_dh_sphinxdoc
make[1]: Entering directory '/srv/jenkins-slave/workspace/sid-goto-cc-barbican/barbican-2.0.0'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
PYTHONPATH=. sphinx-build -b html doc/source /srv/jenkins-slave/workspace/sid-goto-cc-barbican/barbican-2.0.0/debian/barbican-doc/usr/share/doc/barbican-doc/html
Running Sphinx v1.3.6
making output directory...

Exception occurred:
  File "/usr/lib/python2.7/subprocess.py", line 1340, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
The full traceback has been saved in /tmp/sphinx-err-uzdGG1.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
debian/rules:46: recipe for target 'override_dh_sphinxdoc' failed
make[1]: *** [override_dh_sphinxdoc] Error 1

Then looking at the detailed log, I find:

# Sphinx version: 1.3.6
# Python version: 2.7.11+ (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 145, in __init__
    self.setup_extension(extension)
  File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 443, in setup_extension
    ext_meta = mod.setup(self)
  File "/usr/lib/python2.7/dist-packages/oslosphinx/__init__.py", line 67, in setup
    cgit_link = _guess_cgit_link()
  File "/usr/lib/python2.7/dist-packages/oslosphinx/__init__.py", line 26, in _guess_cgit_link
    ['git', 'config', '--local', '--get', 'remote.origin.url']
  File "/usr/lib/python2.7/subprocess.py", line 567, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1340, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


Installing git in the chroot would make the build work again.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160411/7d542176/attachment.sig>


More information about the Python-modules-team mailing list