Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546280 - dev-python/sphinx-1.3.1: incorrect version of pygments specified in RDEPEND
Summary: dev-python/sphinx-1.3.1: incorrect version of pygments specified in RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-11 20:01 UTC by A. Wilcox (awilfox)
Modified: 2015-04-19 13:45 UTC (History)
0 users

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 A. Wilcox (awilfox) 2015-04-11 20:01:41 UTC
This install of Gentoo is running without the amd64 keyword on VPS for enhanced stability.  However, certain packages are necessary to accept the amd64 keyword on, and sphinx is one of them.

sphinx-1.3.1.ebuild correctly states that ">=dev-python/pygments-2.0" is required; however, pygments was not unkeyworded so 2.0.1 was installed.  This was an insufficient version for sphinx:

pkg_resources.ContextualVersionConflict: (Pygments 2.0rc0.dev20150411 (/usr/lib64/python3.3/site-packages), Requirement.parse('Pygments>=2.0'), {'Sphinx'})

Keywording it and upgrading to 2.0.2 fixed this error.

Reproducible: Always

Steps to Reproduce:
1. echo 'dev-python/sphinx ~amd64' >> /etc/portage/package.accept_keywords
2. emerge sphinx
3. sphinx-build
Actual Results:  
pkg_resources.ContextualVersionConflict: (Pygments 2.0rc0.dev20150411 (/usr/lib64/python3.3/site-packages), Requirement.parse('Pygments>=2.0'), {'Sphinx'})

Expected Results:  
It should have generated the documentation I requested.

This fixes it:

--- sphinx-1.3.1.ebuild.old     2015-04-11 20:22:58.448351137 +0000
+++ sphinx-1.3.1.ebuild 2015-04-11 20:23:04.618351153 +0000
@@ -23,7 +23,7 @@
 RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        >=dev-python/docutils-0.11[${PYTHON_USEDEP}]
        >=dev-python/jinja-2.3[${PYTHON_USEDEP}]
-       >=dev-python/pygments-2.0[${PYTHON_USEDEP}]
+       >=dev-python/pygments-2.0.2[${PYTHON_USEDEP}]
        >=dev-python/six-1.4[${PYTHON_USEDEP}]
        >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
        =dev-python/alabaster-0.7*[${PYTHON_USEDEP}]
Comment 1 Mike Gilbert gentoo-dev 2015-04-19 13:36:20 UTC
So the problem is that the bitbucket snapshot we are fetching has this version:

Pygments 2.0rc0.dev20150411
Comment 2 Mike Gilbert gentoo-dev 2015-04-19 13:45:45 UTC
+  19 Apr 2015; Mike Gilbert <floppym@gentoo.org> sphinx-1.3.1.ebuild:
+  Update dependnecy on pygments, bug 546280.