When emerging cheetah-0.9.18 on Gentoo with python 2.5 it emerges ok, but when emerging is in phase compiling bytecode, it gives me below posted actual results. Reproducible: Always Steps to Reproduce: 1. upgrade system to python 2.5 2. emerge =dev-python/cheetah-0.9.18 Actual Results: emerge =cheetah-0.9.18 ... * Byte compiling python modules for python-2.5 .. ... Compiling /usr/lib/python2.5/site-packages/Cheetah/NameMapper.py ... File "/usr/lib/python2.5/site-packages/Cheetah/NameMapper.py", line 146 from __future__ import generators SyntaxError: from __future__ imports must occur at the beginning of the file Compiling /usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py ... File "/usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py", line 15 from __future__ import generators SyntaxError: from __future__ imports must occur at the beginning of the file Compiling /usr/lib/python2.5/site-packages/Cheetah/NameMapper.py ... File "/usr/lib/python2.5/site-packages/Cheetah/NameMapper.py", line 146 from __future__ import generators SyntaxError: from __future__ imports must occur at the beginning of the file Compiling /usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py ... File "/usr/lib/python2.5/site-packages/Cheetah/Tests/NameMapper.py", line 15 from __future__ import generators SyntaxError: from __future__ imports must occur at the beginning of the file [ ok ] >>> dev-python/cheetah-0.9.18 merged. Expected Results: emerge =cheetah-0.9.18 ... * Byte compiling python modules for python-2.5 .. ... [ ok ] >>> dev-python/cheetah-0.9.18 merged. Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-rc5 i686) ================================================================= System uname: 2.6.27-rc5 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-60 Timestamp of tree: Tue, 09 Sep 2008 16:07:02 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=k8 -msse3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -mtune=k8 -msse3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://de-mirror.org/distro/gentoo/ http://gentoo.ynet.sk/pub " LANG="cs_CZ.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="cs en" MAKEOPTS="-j1 -s " PKGDIR="/usr/portage/packages" 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="/mnt/var/portg_tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/pythonhead /usr/portage/local/layman/sunrise /usr/portage/local/layman/gnome /usr/portage/local/layman/rbu" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa amr berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups cvs dbus dri dvd dvdr dvdread eds emboss encode esd evo fam fortran gdbm gif git gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kerberos laptop ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification subversion svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv 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" ELIBC="glibc" INPUT_DEVICES="evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="fbdev radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Confirmed. Python herd, you should probably make this a stable request for 2.0.1 and add this as a blocker for bug 178800. Alpha, ia64, ppc, sparc and x86 have 0.9.18 stable ATM.
Created attachment 165075 [details, diff] Change source code to get rid of python compilation error.
the patch file that made it in the portage tree is actually different from the one attached to this bugreport. The file in portage doesn't apply and src_unpack() fails, this is because the patch file contains references to a different origin file. $Id and $Revision in the patch are different from the expected values. Putting the .patch file attached here in place of the wrong one in the portage tree makes cheetah emerge happily on my system with python-2.5 only. I ran the unit tests included with cheetah and they all succeeded (this should be implemented in the ebuild test phase, currently empty). While we're at it, I'm doing all of this on Gentoo/HPPA. After solving the patch stuff, can you devs please keyword cheetah-0.9.18-r1 hppa and cheetah-2.0.1 ~hppa ? Thanks.
dev-python/cheetah-2.0.1 is the only version in the tree.