Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307297 - dev-python/pyfltk-1.1.5 has syntax errors in the source code
Summary: dev-python/pyfltk-1.1.5 has syntax errors in the source code
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sébastien Fabbro (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 307613
Blocks: 306113
  Show dependency tree
 
Reported: 2010-03-01 11:12 UTC by Thomas Kahle (RETIRED)
Modified: 2010-07-11 12:38 UTC (History)
2 users (show)

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


Attachments
build log of pyfltk (pyfltk.log,11.11 KB, text/plain)
2010-03-01 19:13 UTC, Thomas Kahle (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kahle (RETIRED) gentoo-dev 2010-03-01 11:12:53 UTC
After merge this is printed

 * Compilation and optimization of Python modules for CPython 2.6 ...
Compiling /usr/lib/python2.6/site-packages/fltk/__init__.py ...
Sorry: IndentationError: ('unexpected indent', ('/usr/lib/python2.6/site-packages/fltk/__init__.py', 591, 8, '        return val\n'))    [ !! ]
>>> Auto-cleaning packages...

... which can be reproduced on the python shell:

>>> import fltk
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/fltk/__init__.py", line 591
    return val
   ^
IndentationError: unexpected indent
>>>

And it is also visible in the source code: 
-----------------------------------
588 #give ownership back to Python
589    self.this.own()
590
591        return val
----------------------------------

This is on a mostly stable system with python-2.6.4-r1.

Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-01 18:08:20 UTC
Please post the output of `emerge --info` and `emerge -ptv pyfltk` and attach the build log.
Comment 2 Thomas Kahle (RETIRED) gentoo-dev 2010-03-01 19:13:54 UTC
Created attachment 221645 [details]
build log of pyfltk

# emerge -pvt pyfltk

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

Calculating dependencies... done!
[ebuild   R   ] dev-python/pyfltk-1.1.5  USE="-doc" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


# emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32.8 i686)
=================================================================                           
System uname: Linux-2.6.32.8-i686-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 01 Mar 2010 10:30:01 +0000                                            
ccache version 2.4 [enabled]                                                                  
app-shells/bash:     4.0_p35                                                                  
dev-java/java-config: 2.1.10                                                                  
dev-lang/python:     2.6.4-r1                                                                 
dev-python/pycrypto: 2.1.0_beta1                                                              
dev-util/ccache:     2.4-r7                                                                   
dev-util/cmake:      2.6.4-r3                                                                 
sys-apps/baselayout: 2.0.1                                                                    
sys-apps/openrc:     0.6.0-r1                                                                 
sys-apps/sandbox:    1.6-r2                                                                   
sys-devel/autoconf:  2.13, 2.63-r1                                                            
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.3, 1.11.1                                            
sys-devel/binutils:  2.18-r3                                                                  
sys-devel/gcc:       4.3.4                                                                    
sys-devel/gcc-config: 1.4.1                                                                   
sys-devel/libtool:   2.2.6b                                                                   
virtual/os-headers:  2.6.30-r1                                                                
ACCEPT_KEYWORDS="x86"                                                                         
ACCEPT_LICENSE="*"                                                                            
CBUILD="i686-pc-linux-gnu"                                                                    
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"                                          
CHOST="i686-pc-linux-gnu"                                                                     
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                    
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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-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"                                                                                                
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"                                                            
DISTDIR="/usr/portage/distfiles"                                                                                  
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"                                                 
GENTOO_MIRRORS="http://gentoo.tiscali.nl/"                                                                        
LANG="en_US.UTF-8"                                                                                                
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                 
LINGUAS="en en_US de ja es fr it"                                                                                 
MAKEOPTS="-j3"                                                                                                    
PKGDIR="/usr/portage/packages"                                                                                    
PORTAGE_CONFIGROOT="/"                                                                                            
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"                                                                          
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="/usr/local/portage/layman/sunrise /usr/local/portage/tom-overlay /home/tom/gentoo/sci /home/tom/gentoo/sage-on-gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa anthy apache2 avahi bash-completion berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cjk cli consolekit cracklib crypt ctype cups curl cxx daap dbus djvu dri dts dvd dvdr eds emacs encode evo expat fam fbcon ffmpeg firefox flac fortran ftp gd gdbm gif gimp glut gmp gnutls gpm graphviz gstreamer gtk guile hal hdaps iconv ieee1394 imagemagick imap imlib ipod ipv6 java javascript jpeg kde latex ldap leim libnotify lm_sensors m17n-lib mad migemo mikmod mime mmx mng modules mp3 mp4 mpeg mplayer mudflap mule musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin obex ocaml ogg oggvorbis openal opengl openmp pam pcmcia pcre pdf perl php plasma plotutils png policykit ppds pppd python qt3support qt4 quicktime readline reflection samba sasl sdl semantic-desktop session slang smartcard spell spl sqlite sqlite3 sse ssl startup-notification svg sysfs tcpd texlive theora threads thunar tiff tk truetype uim unicode usb v4l v4l2 visualization vorbis wicd wifi win32codecs wxwindows x264 x86 xcb xcomposite xft xine xinerama xml xorg xulrunner xv xvid zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US de ja es fr it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2010-03-03 04:54:42 UTC
Works fine here on ~amd64. It could be a swig problem, since __init__.py is swig generated, but I tried with swig-1.3.36 which is probably the one you have installed on x86 and it worked fine as well.
Could you try with swig-1.3.40?
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2010-03-03 13:08:37 UTC
(In reply to comment #3)
> Works fine here on ~amd64. It could be a swig problem, since __init__.py is
> swig generated, but I tried with swig-1.3.36 which is probably the one you have
> installed on x86 and it worked fine as well.
> Could you try with swig-1.3.40?

Indeed, the problem is not present with >=swig-1.3.38, but 1.3.36 fails. 




Comment 5 Thomas Kahle (RETIRED) gentoo-dev 2010-03-03 13:24:53 UTC
I asked for stabilization of a newer version of swig in bug 307297
Comment 6 Florian Berger 2010-06-22 09:56:03 UTC
Just ran into that issue. :-/

Well, would it make sense for the pyfltk ebuild to DEPEND on >=swig-1.3.38 then?

Florian
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-11 12:38:18 UTC
I have updated dependency on swig.