Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247083 - dev-python/nevow-0.9.32 for python-2.6 friendliness was: (live ebuild for python-2.6 compliance)
Summary: dev-python/nevow-0.9.32 for python-2.6 friendliness was: (live ebuild for py...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Python Gentoo Team
URL: http://divmod.org/trac/wiki/DivmodNevow/
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2008-11-16 16:08 UTC by Mike Kazantsev
Modified: 2009-05-16 21:32 UTC (History)
1 user (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 Mike Kazantsev 2008-11-16 16:08:59 UTC
Current stable version of nevow (0.9.31) is not compliant with python-2.6, because it defines "with" functions, which is a reserved word for python 2.6 (and later), resulting in syntax error right on bytecode generation.

The problem is fixed upstream hovewer, just haven't made it to any tag yet.

Reproducible: Always

Steps to Reproduce:
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2008-11-16 17:01:40 UTC
I think the fixes should be backported instead of adding a live ebuild.
Comment 2 Thomas Raschbacher gentoo-dev 2008-11-17 08:43:05 UTC
can anyone find out if they intend to release a fixed version soon?
Comment 3 Mike Kazantsev 2008-11-19 01:54:33 UTC
(In reply to comment #2)
> can anyone find out if they intend to release a fixed version soon?

Just found it's announcement on today's mailing lists

http://divmod.org/trac/attachment/wiki/SoftwareReleases/Nevow-0.9.32.tar.gz?format=raw
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-01-07 14:24:08 UTC
I've put a bumped ebuild in my overlay:

http://hg.xavamedia.nl/portage/file/tip/dev-python/nevow/nevow-0.9.32.ebuild

Can we get this in the tree?
Comment 5 Jesus Rivero (RETIRED) gentoo-dev 2009-03-01 09:49:43 UTC
Hello, 

    dev-python/nevow-0.9.32 is already in the tree. This version fixes this issues. Closing bug now. Thanks a lot guys for reporting this one.

   Best regards,
Comment 6 Steve Arnold archtester gentoo-dev 2009-04-15 07:06:40 UTC
I hate to complain, but 0.9.32 still fails with python 2.6, at least for me:

>>> Compiling source in /var/tmp/portage/dev-python/nevow-0.9.32/work/Nevow-0.9.32 ...
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    import setupcommon
  File "/var/tmp/portage/dev-python/nevow-0.9.32/work/Nevow-0.9.32/setupcommon.py", line 2, in <module>
    from nevow import __version__ as version
  File "/var/tmp/portage/dev-python/nevow-0.9.32/work/Nevow-0.9.32/nevow/__init__.py", line 10, in <module>
    from twisted.python.components import registerAdapter
  File "//usr/lib64/python2.6/site-packages/twisted/python/components.py", line 38, in <module>
    from zope.interface.adapter import AdapterRegistry
  File "/usr/lib64/python2.6/site-packages/zope/interface/adapter.py", line 195
    for with, objects in v.iteritems():
           ^
SyntaxError: invalid syntax


Portage 2.2_rc30 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.8_p20080602-r1,                                                                                                                                    
 2.6.28.7 x86_64)
=================================================================
System uname: Linux-2.6.28.7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_480                                                                                                                                    
0+-with-gentoo-2.0.0
Timestamp of tree: Sun, 12 Apr 2009 09:45:02 +0000
distcc 3.0 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2, 2.6.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.9
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.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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/shu                                                                                                                                    
tdown /usr/lib64/fax /usr/share/bufrtables /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/                                                                                                                                    
eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php                                                                                                                                    
/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-ac                                                                                                                                    
tive/ /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=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distcc distlocks fixpackages multilib-strict parallel-                                                                                                                                    
fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfet                                                                                                                                    
ch userpriv usersandbox"
GENTOO_MIRRORS="http://kuroshin.arnolds.bogus/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="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 --exclu                                                                                                                                    
de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://kuroshin.arnolds.bogus/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib accessibility acl acpi ada alsa amd64 ansi ao a
rtworkextra aspell avahi avi bitmap-fonts bluetooth bonobo browserplugin bzip2 c
airo caps cddb cdparanoia cdr clamav cli cracklib crypt cups curl daap dbus dga 
directfb divx4linux djvu dri dts dv dvd dvdr dvdread dynagraph emacs enchant enc
ode evo exif faac faad fam fame fbcon ffmpeg firefox3 fits flac fontconfig fortr
an freetype freetype2 gb gd gdbm geos gif gimp glib gmp gnome gnutls gphoto2 gpm
 gps graphviz grass gs gstreamer gtk gtkhtml gtkspell guile hal howl iconv icq i
d3tag ieee1394 imagemagick imap imlib ipv6 isdnlog jabber jack jasper java jbig 
jikes jpeg jpeg2k jpg junit ladspa lame lapack lash latex lcms ldap libnotify li
bsamplerate lirc lm_sensors logrotate mad midi mmx motif mp3 mpeg mplayer mudfla
p multilib mysql mythtv nas nautilus ncurses netcdf nfs nls nolvmstatic nptlonly
 nsplugin numeric ogdi ogg oggvorbis opengl openmp oss pam pcre pda pdf perl pkc
s11 plotutils png postgres pppd pulseaudio python qt qt3support qt4 quicktime re
adline reflection rtc ruby samba sasl sdl seamonkey session slp smartcard sndfil
e snmp spamassassin spell spl sse sse2 ssl subtitles svg sysfs tcl tcpd theora t
hreads tiff timidity tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2
 vcd vorbis wavpack wifi xanim xcb xext xine xml xorg xpm xulrunner xv xvid xvmc
 zeo zlib zvbi" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym
 copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat li
near meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2
_MODULES="actions alias auth_digest 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 l
Comment 7 David Ripton 2009-04-17 14:22:46 UTC
Steve, the problem you're seeing (using "with" as a local variable name, which is no longer allowed in Python 2.6) is actually in net-zope/zopeinterface, now nevow itself.  zopeinterface-3.0.1, which is marked stable, has this problem.  zopeinterface-3.0.1-r1 and 3.4.1 have fixed it, but they're marked unstable.  So you need to emerge a newer zopeinterface, and then re-emerge nevow, and all should work.

Devs, please consider marking net-zone/zopeinterface-3.0.1-r1 stable.
Comment 8 Patrick Lauer gentoo-dev 2009-04-18 14:28:19 UTC
Gah. Stop mixing arch and ~arch ebuilds!
Took me about 5 minutes to see how you can even manage to trigger a failure with this, and then it's mostly your own fault :)
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-16 21:32:26 UTC
This bug seems to be fixed.