Emerging dev-python/jinja-2.6 with the "doc" USE-flag fails during generation of documentation with a syntax error in "jinja2/environment.py". It appears to end up running sphinx-build-3.2 to build the html documentation, but it ought to be running sphinx-build-2.7 to avoid the syntax error. Reproducible: Always Steps to Reproduce: Step 1 may be needed to resolve circular dependencies, otherwise skip step 1. 1. USE="-doc" emerge -1 =dev-python/jinja-2.6 2. USE="doc" emerge -1 =dev-python/jinja-2.6 Actual Results: See build log.
Created attachment 307881 [details] Build log
Created attachment 307883 [details] emerge --info
# USE="doc" emerge -pqv =dev-python/jinja-2.6 [ebuild R ] dev-python/jinja-2.6 USE="doc* -examples -i18n -vim-syntax"
Running of sphinx-build-2.* is not needed. Syntax can be automatically fixed.
frankly I'm not sure what Arfrever means in this instance. Have you emerged sphinx itself with python3 capability. i.e. USE_PYTHON="2.7 3.1 3.2" emerge sphinx. If not, then it may error as such, but not sure.
I have described solution implemented in Progress Overlay.
Could the fix from the overlay be committed to the main tree? I'm still seeing this error each time I try an emerge -auDNV world. Timestamp of tree: Fri, 20 Apr 2012 10:00:01 +0000
Created attachment 310547 [details, diff] ebuild patch now I get it.
+ 01 May 2012; Kacper Kowalik <xarthisius@gentoo.org> -jinja-2.5.5.ebuild, + jinja-2.6.ebuild: + Fix building docs with python3 wrt #410873 by Ian Abbott <ian@abbott.org>. + Thanks to Arfrever and Ian Delaney for solution and patch respectively. Drop + old +