Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285307 - Stabilize dev-python/jinja2-2.2.1 and dev-python/sphinx-0.6.1-r1
Summary: Stabilize dev-python/jinja2-2.2.1 and dev-python/sphinx-0.6.1-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on: 263948
Blocks: 284990 285115
  Show dependency tree
 
Reported: 2009-09-17 11:33 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2010-03-27 17:53 UTC (History)
8 users (show)

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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-17 11:33:42 UTC
amd64 and x86: Please stabilize dev-python/sphinx-0.6.1-r1.

ppc and ppc64: Please stabilize dev-python/jinja2 (any version) and dev-python/sphinx-0.6.1-r1.
Comment 1 Markus Meier gentoo-dev 2009-09-19 11:12:24 UTC
amd64/x86 stable
Comment 2 Aleksander Balicki 2009-09-22 19:36:19 UTC
they have circular dependencies:

emerge -vuDaN world

These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge      ] media-gfx/imagemagick-6.5.2.9
[nomerge      ]  gnome-base/librsvg-2.22.3
[nomerge      ]   gnome-extra/libgsf-1.14.11
[nomerge      ]    dev-python/pygtk-2.14.1-r1
[nomerge      ]     dev-python/pycairo-1.8.8 [1.8.2] USE="doc%* svg%*"
[nomerge      ]      dev-python/sphinx-0.6.1-r1  USE="doc -test"
[ebuild  N    ]       dev-python/jinja2-2.1.1  USE="doc -examples -i18n -test"
[ebuild  N    ]        dev-python/sphinx-0.6.1-r1  USE="doc -test"

 * Error: circular dependencies:

('ebuild', '/', 'dev-python/sphinx-0.6.1-r1', 'merge') depends on
  ('ebuild', '/', 'dev-python/jinja2-2.1.1', 'merge') (buildtime)
('ebuild', '/', 'dev-python/jinja2-2.1.1', 'merge') depends on
  ('ebuild', '/', 'dev-python/sphinx-0.6.1-r1', 'merge') (buildtime)

Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-22 19:38:47 UTC
(In reply to comment #2)

You should temporarily disable "doc" USE flag.
Comment 4 Linear Systems Tech Svcs. 2009-09-23 00:37:38 UTC
(In reply to comment #3)
> (In reply to comment #2)
> 
> You should temporarily disable "doc" USE flag.
> 

Maybe "temporarily" isn't the right word there.  At least not for amd64.
After having installed both of them with the "-doc" USE flag, I went back and tried to build jinja2 with "doc" and got:
--------------------------------------------------------------------------------
...
 * Applying jinja2-2.0_no_docs.patch ...                                  [ ok ]
make -j5 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/lib64/python2.5/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-2gTo6n.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 3025:  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
--------------------------------------------------------------------------------

I went to try to build sphinx with "doc" and got:

--------------------------------------------------------------------------------
 * Cleaning orphaned Python bytecode from /usr/lib64/python2.5/site-packages/sphinx ..
>>> Original instance of package unmerged safely.
 * Byte compiling python modules for python-2.5 .. ...                    [ ok ]

 * Messages for package dev-python/sphinx-0.6.1-r1:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 * 	/usr/lib64/python2.5/site-packages/sphinx/locale/__init__.pyc
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * None of the installed packages claim the file(s).
 * 
 * Package 'dev-python/sphinx-0.6.1-r1' merged despite file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
--------------------------------------------------------------------------------

Noting that it still *did* merge sphinx, I went back and tried to emerge jinja2 again and got the same error as above.
Comment 5 Christian Knieling 2009-09-23 07:23:16 UTC
(In reply to comment #4)

I can confirm that dev-python/jinja2-2.1.1 won't be emerged on amd64 using "doc".
<----------------------------------->
Running Sphinx v0.6.1
Exception occurred:
  File "/usr/lib64/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-s7W_kJ.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
<----------------------------------->

But dev-python/sphinx-0.6.1-r1 got through using "doc" after emerging jinja w/o "doc".

<----------------------------------->
# emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 23 Sep 2009 02:45:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="[internal-mirror]"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://[internal-mirror]"
USE="acl acpi alsa amd64 arts bash-completion berkdb bzip2 bzlib cli cracklib crypt cups dbus doc dri fortran gdbm gpm iconv isdnlog jpeg jpeg2k ldap mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl svg sysfs tcpd tiff unicode usb vorbis xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
<----------------------------------->
Comment 6 Łukasz Michalik 2009-09-23 07:49:20 UTC
jinja2 deps upon doc? ( >=dev-python/docutils-0.4 >=dev-python/sphinx-0.3 ), but makefile in docs/ says that it can only use sphinx for doc generation.
Comment 7 mephinet 2009-09-23 13:12:58 UTC
The TypeError is fixed by jinja2_docs_sphinx.patch, which is applied by jinja2-2.1.1-r1.ebuild.

So please stabilize dev-python/jinja2-2.1.1-r1.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-23 14:44:05 UTC
(In reply to comment #6)

It doesn't matter, because dev-python/sphinx-0.6.3 depends on >=dev-python/docutils-0.4, but anyway I changed dependencies.
Comment 9 Christoph Junghans (RETIRED) gentoo-dev 2009-09-24 08:24:04 UTC
I can confirm the bug from Comment #2 on x86 as well.
dev-python/jinja2-2.1.1-r1 works fine for me.
Comment 10 Christian Faulhammer (RETIRED) gentoo-dev 2009-09-24 08:46:23 UTC
x86 stable
Comment 11 Brent Baude (RETIRED) gentoo-dev 2009-09-26 13:34:10 UTC
sphinx fails test on ppc64 like so:

>>> Source compiled.
Running Sphinx test suite...
..........info: not running latex, the titlesec.sty package doesn't seem to be installed
...............................F................S..............
======================================================================
FAIL: test_build.test_html(<etree13.ElementTree.ElementTree object at 0x1218c710>, 'subdir/includes.html', './/pre/span', 'line 2')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/nose/case.py", line 183, in runTest
    self.test(*self.arg)
  File "/var/tmp/portage/dev-python/sphinx-0.6.1-r1/work/Sphinx-0.6.1/tests/test_build.py", line 154, in check_xpath
    '%r in file %s' % (path, fname))
AssertionError: did not find any node matching xpath './/pre/span' in file subdir/includes.html
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-26 13:40:20 UTC
(In reply to comment #11)

Can you reproduce it with dev-python/sphinx-0.6.3?
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-03 23:06:17 UTC
dev-python/jinja2-2.2.1 will be stabilized in bug #287618.
dev-python/sphinx-0.6.3 will be stabilized in bug #287617.