Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410873 - dev-python/jinja-2.6 USE=doc - File "/var/tmp/portage/dev-python/jinja-2.6/work/Jinja2-2.6/jinja2/environment.py", line 571 /// u'\xff\xff\xff\xff'.encode('iso-8859-15') /// SyntaxError: invalid syntax
Summary: dev-python/jinja-2.6 USE=doc - File "/var/tmp/portage/dev-python/jinja-2.6/wo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-05 12:40 UTC by Ian Abbott
Modified: 2012-05-01 08:35 UTC (History)
1 user (show)

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


Attachments
Build log (build.log,18.91 KB, text/plain)
2012-04-05 12:41 UTC, Ian Abbott
Details
emerge --info (emerge--info.txt,4.87 KB, text/plain)
2012-04-05 12:43 UTC, Ian Abbott
Details
ebuild patch (jinja.patch,682 bytes, patch)
2012-05-01 06:16 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2012-04-05 12:40:27 UTC
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.
Comment 1 Ian Abbott 2012-04-05 12:41:16 UTC
Created attachment 307881 [details]
Build log
Comment 2 Ian Abbott 2012-04-05 12:43:13 UTC
Created attachment 307883 [details]
emerge --info
Comment 3 Ian Abbott 2012-04-05 13:05:19 UTC
# USE="doc" emerge -pqv =dev-python/jinja-2.6
[ebuild   R   ] dev-python/jinja-2.6  USE="doc* -examples -i18n -vim-syntax"
Comment 4 Arfrever Frehtes Taifersar Arahesis 2012-04-05 22:06:44 UTC
Running of sphinx-build-2.* is not needed. Syntax can be automatically fixed.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2012-04-07 11:26:35 UTC
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.
Comment 6 Arfrever Frehtes Taifersar Arahesis 2012-04-07 18:16:55 UTC
I have described solution implemented in Progress Overlay.
Comment 7 Torsten Kaiser 2012-04-20 10:35:54 UTC
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
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2012-05-01 06:16:36 UTC
Created attachment 310547 [details, diff]
ebuild patch

now I get it.
Comment 9 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-05-01 08:35:18 UTC
+  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
+