Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661556 - dev-python/pycairo-1.16.3-r1[doc] may pick unsupported python version to run sphinx
Summary: dev-python/pycairo-1.16.3-r1[doc] may pick unsupported python version to run ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-19 00:09 UTC by Alexander Miller
Modified: 2018-07-21 13:09 UTC (History)
1 user (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 Alexander Miller 2018-07-19 00:09:42 UTC
After adding python3_6 to PYTHON_TARGETS, dev-python/pycairo-1.16.3-r1 failed to build with USE=doc:

[...]
 * python3_6: running distutils-r1_run_phase python_compile_all
make -j5 -C docs 
make: Entering directory '/tmp/portage/dev-python/pycairo-1.16.3-r1/work/pycairo-1.16.3/docs'
python -m sphinx -b html -n . _build
/usr/bin/python3.6: No module named sphinx
make: *** [Makefile:2: all] Error 1
make: Leaving directory '/tmp/portage/dev-python/pycairo-1.16.3-r1/work/pycairo-1.16.3/docs'
 * ERROR: dev-python/pycairo-1.16.3-r1::gentoo failed (compile phase):
 *   emake failed

Rebuilding dev-python/sphinx with the new PYTHON_TARGETS resolved the issue.
This should be fixed in the ebuild however.

The simple solution is to DEPEND on dev-python/sphinx[${PYTHON_USEDEP}] and be done with it.

A solution that doesn't force all implemetations for sphinx would be more complex; something like this may work (not tested):
  DEPEND="doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
  python_check_deps() {
    ! use doc || has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
  }
Comment 1 Jonas Stein gentoo-dev 2018-07-21 13:09:55 UTC
Thank you for the report. Please recompile and *attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:unconfirmed) afterwards.