Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 331689

Summary: dev-python/django[doc] fails to build documentation with >=dev-python/sphinx-1.0
Product: Gentoo Linux Reporter: Paweł Metelski <pabou88>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: xmw
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paweł Metelski 2010-08-08 21:32:07 UTC
In development version, django/trunk/docs/_ext/djangodocs.py contains:
    try:
        from sphinx.domains.std import option_desc_re # Sphinx >= 1.0
    except:
        from sphinx.directives.desc import option_desc_re # Sphinx < 1.0
but in 1.2.1 there is only:
    from sphinx.directives.desc import option_desc_re
Since sphinx >= 1.0 is already in portage, I guess ebuild should look like this:
...
DEPEND="${RDEPEND}
        doc? ( >=dev-python/sphinx-0.3  <dev-python/sphinx-1.0)
...

Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS=~amd64 USE=doc emerge django
2.
3.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-08-08 21:36:22 UTC
Please attach the build.log and environment files mentioned at the end of the build. (plus config.log if applicable).

Michael
Comment 2 Paweł Metelski 2010-08-08 21:51:52 UTC
I don't have time for dealing with your lazy, formulaic answers.
This is the exact error message:
 
  File "/var/tmp/portage/dev-python/django-1.2.1/work/Django-1.2.1/docs/_ext/djangodocs.py", line 215, in parse_django_adminopt_node
    from sphinx.directives.desc import option_desc_re
ImportError: No module named desc

I provided you with a simple, obvious solution. Commit it or resolve bug as invalid.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2010-08-09 00:40:18 UTC
the sphinx range would be >=0.6 and up, although that's irrelevant since the tree only contains ~1.0 like versions.

Also, @pawel, learn civility.  Michael's request is generally a valid one, having the full TB/test failure logs is useful for when dealing with either pkgs you're not familiar with, or dealing w/ users doing stupid things.

Either way, be less of a dick, kthnx.

Reopening, the rough delta mentioned in #c0 is correct although I'm concerned about a few other things in there for sphinx1.0...
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-22 19:58:50 UTC
dev-python/django-1.2.3 is now in the tree and fixes this bug.

http://code.djangoproject.com/changeset/13446
http://code.djangoproject.com/changeset/13602
There were too many changes, so older versions of dev-python/django now depend on =dev-python/sphinx-0.6*. Generation of documentation in these versions of dev-python/django will be disabled, when =dev-python/sphinx-0.6* is ready for deletion.