Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282271 - Syntax error in TextTools.py of =dev-python/egenix-mx-base-2.0.5
Summary: Syntax error in TextTools.py of =dev-python/egenix-mx-base-2.0.5
Status: RESOLVED DUPLICATE of bug 280376
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-22 08:29 UTC by Guenther Brunthaler
Modified: 2009-08-22 18:23 UTC (History)
0 users

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 Guenther Brunthaler 2009-08-22 08:29:25 UTC
When trying to emerge =dev-libs/libxml2-2.7.3 under AMD64 with Python 2.6, the build and install phases seem to finish without errors.

However, obviously when running the qmerge phase, a syntax error is reported when byte-compiling the module "TextTools.py".

Although this does not make the actual emerge operation fail, it seems highly likely that "TextTools.py" will not work later, leading to build or runtime failures in other ebuilds which require a working "TextTools.py".

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 =dev-libs/libxml2-2.7.3

Actual Results:  
<<<          dir /usr/share/doc/libxml2-python-2.7.3
<<<          dir /usr/share/doc/libxml2-2.7.3
 * Cleaning orphaned Python bytecode from /usr/lib64/python2.6/site-packages ..
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * Byte compiling python modules for python-2.6 .. ...
Compiling //usr/lib64/python2.6/site-packages/mx/TextTools/TextTools.py ...
SyntaxError: ('invalid syntax', ('//usr/lib64/python2.6/site-packages/mx/TextTools/TextTools.py', 170, 26, 'def replace(text,what,with,start=0,stop=None,\n'))
                                                                                   [ !! ]
>>> Regenerating /etc/ld.so.cache...


Expected Results:  
No such an an error message.
Comment 1 Guenther Brunthaler 2009-08-22 08:31:36 UTC
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5-xquad-9.115 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-xquad-9.115-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 22 Aug 2009 04:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
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.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:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -DNDEBUG -pipe -fno-stack-check"
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/local/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/host-variants/ /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /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=amdfam10 -O2 -DNDEBUG -pipe -fno-stack-check"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps=y"
FEATURES="ccache distlocks fixpackages notitles prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="/usr/local/portage/distfiles/local /usr/local/portage/distfiles /usr/local/portage/distfiles/precious /usr/local/portage/distfiles/mnt http://lug.mtu.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://gentoo.in.th/ http://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.twaren.net/Linux/Gentoo/"
LANG="de_AT.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en@boldquot en@quot"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9"
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="/usr/local/portage/layman/mscgen /usr/local/portage/layman/xworld /usr/local/portage/layman/simplux /usr/local/portage/layman/xworld_attic /usr/local/portage/layman/xworld_serviced /usr/local/portage/layman/xworld_hotfixes /usr/local/portage/layman/xworld_thirdparty /usr/local/portage/layman/xworld_experimental /usr/local/portage/overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acpi alsa amd64 apache2 arts aspell audiofile bash-completion berkdb branding bzip2 cairo caps cddb cdr cleartype cli cracklib crypt css cups curl custom-cflags custom-cxxflags dbus dri dts dv dvd dvdr dvdread ecc emboss encode evo exif expat faac faad ffmpeg fftw firefox flac foomaticdb fortran freetype ftp fuse gd gdbm gif gimp glade glut gmp gphoto2 gpm gtk gtk2 hal iconv id3tag idea ieee1394 imagemagick imlib isdnlog jack java6 javascript jbig jp2 jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdexdeltas kipi kpathsea ladspa lame lash lcms ldap libcaca libclamav libnotify libsamplerate logrotate lzma lzo mad matroska mikmod mmap mmx mmxext mng mp3 mp4 mpeg mudflap mule multilib musepack musicbrainz ncurses nls nodrm nptl nptlonly nsplugin oav ocamlopt odbc offensive ofx ogg openal opengl openmp pam pcre pdf perl pic png ppds pppd pulseaudio python qt qt3 qt3support qt4 quicktime readline reflection samba sasl screen sdl session sharedmem slang smartcard sndfile sox speex spell spl sqlite sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcltk tetex theora threads threadsafe tiff tk truetype unicode usb userlocales utf8 vcd vde vorbis wxwindows x264 xcb xft xinetd xml xorg xosd xpm xrandr xscreensaver xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="emu10k1" 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 joystick keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en@boldquot en@quot" USERLAND="GNU" VIDEO_CARDS="dummy radeon v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Guenther Brunthaler 2009-08-22 08:45:49 UTC
Renamed bug title - it turned out that the complaining source text TextTools.py belongs to =dev-python/egenix-mx-base-2.0.5 rather than to =dev-libs/libxml2-2.7.3

However, the actual issue still remains:

1. emerge -av1 =dev-python/egenix-mx-base-2.0.5
2. emerge -av1 =dev-libs/libxml2-2.7.3

Although TextTools.py belongs to the first ebuild, it is the second one which displays the error messages.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-22 18:23:32 UTC

*** This bug has been marked as a duplicate of bug 280376 ***