jinja2-2.1.1 will emerge OK with -doc, but not with doc turned on. Reproducible: Always Actual Results: [During emerge ...] running build_ext building 'jinja2._speedups' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/jinja2 i686-pc-linux-gnu-gcc -pthread -DNDEBUG -O2 -march=i686 -pipe -fPIC -I/usr/include/python2.6 -c jinja2/_speedups.c -o build/temp.linux-i686-2.6/jinja2/_speedups.o i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -O2 -march=i686 -pipe build/temp.linux-i686-2.6/jinja2/_speedups.o -L/usr/lib -lpython2.6 -o build/lib.linux-i686-2.6/jinja2/_speedups.so * Applying jinja2-2.0_no_docs.patch ... [ ok ] make -j2 html mkdir -p _build/html _build/doctrees sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v0.6.1 Exception occurred: File "/usr/lib/python2.6/site-packages/sphinx/builders/html.py", line 104, in init_templates self.templates.init(self, self.theme) TypeError: init() takes exactly 2 arguments (3 given) The full traceback has been saved in /var/tmp/portage/dev-python/jinja2-2.1.1/temp/sphinx-err-otUWbY.log, if you want to report the issue to the author. Please also report this if it was a user error, so that a better error message can be provided next time. Send reports to sphinx-dev@googlegroups.com. Thanks! make: *** [html] Error 1 * * ERROR: dev-python/jinja2-2.1.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2970: Called die * The specific snippet of code: * PYTHONPATH=../ emake html || die "Error building docs"; * The die message: * Error building docs * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/jinja2-2.1.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/jinja2-2.1.1/temp/environment'. * >>> Failed to emerge dev-python/jinja2-2.1.1, Log file: >>> '/var/tmp/portage/dev-python/jinja2-2.1.1/temp/build.log' * GNU info directory index is up-to-date. Expected Results: Successful emerge. See bug 285937 for what led to this. http://bugs.gentoo.org/show_bug.cgi?id=285937
The sphinx package involved in this is dev-python/sphinx-0.6.1-r1.
I updated dependencies of dev-python/jinja2-2.2.1.
This error has been fixed in jinja2-2.1.1-r1 as Bug 277462 But Bug 285307 stabled the -r0 version that is still broken. And updating the dependencys of jinja2-2.2.1 does not fix jinja2-2.1.1
(In reply to comment #3) You can safely install dev-python/jinja2-2.2.1. (We will request stabilization of dev-python/jinja2-2.2.1 soon.)