Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637202 - dev-python/whoosh-2.7.4 with doc depends on dev-python/sphinxcontrib-websupport
Summary: dev-python/whoosh-2.7.4 with doc depends on dev-python/sphinxcontrib-websupport
Status: RESOLVED DUPLICATE of bug 624672
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-12 05:35 UTC by dhole
Modified: 2017-11-17 17:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dhole 2017-11-12 05:35:15 UTC
dev-python/whoosh-2.7.4 with the doc USE flag fails to build if dev-python/sphinxcontrib-websupport is not installed.

Reproducible: Always

Steps to Reproduce:
emerge dev-python/whoosh-2.7.4 with doc enabled without python/sphinxcontrib-websupport installed in the system
Actual Results:  
dev-python/whoosh fails to build.  The error indicates that sphinxcontrib-websupport was not found:

```
* python3_4: running distutils-r1_run_phase python_compile_all
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/sphinx-build", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3030, in <module>
    @_call_aside
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3014, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 3043, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 968, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 854, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'sphinxcontrib-websupport' distribution was not found and is required by Sphinx
 * ERROR: dev-python/whoosh-2.7.4::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 2674:  Called distutils-r1_src_compile
 *   environment, line  796:  Called _distutils-r1_run_common_phase 'python_compile_all'
 *   environment, line  287:  Called multibuild_foreach_variant 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 1507:  Called _multibuild_run 'distutils-r1_run_phase' 'python_compile_all'
 *   environment, line 1505:  Called distutils-r1_run_phase 'python_compile_all'
 *   environment, line  784:  Called python_compile_all
 *   environment, line 1794:  Called die
 * The specific snippet of code:
 *           sphinx-build -b html -c docs/source/ docs/source/ docs/source/build/html || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/whoosh-2.7.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/whoosh-2.7.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/whoosh-2.7.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/whoosh-2.7.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/whoosh-2.7.4/work/Whoosh-2.7.4'
 * S: '/var/tmp/portage/dev-python/whoosh-2.7.4/work/Whoosh-2.7.4'

>>> Failed to emerge dev-python/whoosh-2.7.4, Log file:
```

Expected Results:  
dev-python/whoosh should pull python/sphinxcontrib-websupport when the doc USE flag is enabled.

python/sphinxcontrib-websupport should probably be added as a compile dependency to dev-python/whoosh when the "doc" USE flag is enabled.

Notice that this will generate a circular dependency between dev-python/sphinxcontrib-websupport and dev-python/whoosh due to the following:
- dev-python/sphinxcontrib-websupport depends on  dev-python/whoosh
- dev-python/whoosh with doc depends on dev-python/sphinxcontrib-websupport

The circular dependency is easily broken by emerging dev-python/whoosh without doc, emerging dev-python/sphinxcontrib-websupport and finally re-emerging dev-python/whoosh with doc.

These kinds of circular dependencies happen in other packages when the "doc" USE flag is enabled, and can be also broken by first installing the packages without the "doc" USE flag.
Comment 1 Mike Gilbert gentoo-dev 2017-11-13 19:56:20 UTC
This is probably a missing dependency in dev-python/sphinx itself.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-11-17 17:05:03 UTC

*** This bug has been marked as a duplicate of bug 624672 ***