Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 160653 - dev-python/soappy-0.12.0 does not build with python 2.5
Summary: dev-python/soappy-0.12.0 does not build with python 2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2007-01-07 11:30 UTC by Christophe Saout
Modified: 2007-01-07 23:02 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 Christophe Saout 2007-01-07 11:30:53 UTC
>>> Compiling source in /var/tmp/portage/dev-python/soappy-0.12.0/work/SOAPpy-0.12.0 ...
Traceback (most recent call last):
  File "setup.py", line 8, in <module>
    from SOAPpy.version import __version__
  File "/var/tmp/portage/dev-python/soappy-0.12.0/work/SOAPpy-0.12.0/SOAPpy/__init__.py", line 5, in <module>
    from Client      import *
  File "/var/tmp/portage/dev-python/soappy-0.12.0/work/SOAPpy-0.12.0/SOAPpy/Client.py", line 46
    from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

!!! ERROR: dev-python/soappy-0.12.0 failed.
Call stack:
  ebuild.sh, line 1593:   Called dyn_compile
  ebuild.sh, line 951:   Called src_compile
  ebuild.sh, line 1282:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die


Reproducible: Always

Steps to Reproduce:
1. have python 2.5 installer
2. emerge soappy





Portage 2.1.2_rc4-r6 (!../usr/local/portage/profiles/default-linux/amd64/2006.1/no-symlinks/no-lib32, gcc-4.2.0-alpha20061212/amd64-hardenednopie, glibc-2.5-r0, 2.6.18-cs4-xenU x86_64)
=================================================================
System uname: 2.6.18-cs4-xenU x86_64 Dual Core AMD Opteron(tm) Processor 270
Gentoo Base System version 1.12.8
Last Sync: Sun, 07 Jan 2007 10:50:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.5-r1
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.9
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -frename-registers -fweb -mno-tls-direct-seg-refs -D_FORTIFY_SOURCE=1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon64 -pipe -frename-registers -fweb -mno-tls-direct-seg-refs -D_FORTIFY_SOURCE=1"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer multilib-strict sandbox sfperms strict"
GENTOO_MIRRORS="scp://websrv2/usr/portage/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://213.186.33.38/gentoo-distfiles/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=both"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://trumpetti.ip6.atm.tut.fi/gentoo-portage/"
USE="X aalib acl acpi amd64 apache2 authdaemond berkdb bitmap-fonts bzip2 cairo caps cli cracklib crypt curl devmap dlloader dri droproot dynamic elf encode exif fam fontconfig fortran gcj gd gdbm gif gmp gnutls gpm graphviz gs guile hardened iconv idn imap ipv6 isdnlog java jpeg kerberos lcms ldap libg++ libgda libwww maildir mcal mono mysql ncurses nfs nfsv4 nls nptl nptlonly ocaml odbc oggvorbis pam pcre pdf pdflib perl php pic png postgres postscript ppds pppd python quotas readline reflection rpc sasl session snmp source spamassassin spl sqlite ssl svg tcl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vhosts webdav xattr xcb xinerama xml xml2 xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Bryan Østergaard (RETIRED) gentoo-dev 2007-01-07 15:27:05 UTC
Fixed, thanks for reporting.
Comment 2 Christophe Saout 2007-01-07 19:37:50 UTC
Thanks, that was quick.

But unfortunately, CVS messed up the patch file:

tuek:/var/tmp/portage/dev-python/soappy-0.12.0/work/SOAPpy-0.12.0/SOAPpy # patch -p1 --dry-run < /usr/portage/dev-python/soappy/files/soappy-0.12.0-python-2.5-compat.patch 
patching file Client.py
Hunk #1 FAILED at 40.
1 out of 1 hunk FAILED -- saving rejects to file Client.py.rej
patching file GSIServer.py
Hunk #1 FAILED at 43.
1 out of 1 hunk FAILED -- saving rejects to file GSIServer.py.rej
patching file Server.py
Hunk #1 FAILED at 40.
1 out of 1 hunk FAILED -- saving rejects to file Server.py.rej
patching file Types.py
Hunk #1 FAILED at 33.
1 out of 1 hunk FAILED -- saving rejects to file Types.py.rej

Reason: CVS replaced the CVS tag with the tag from the portage tree:

diff -urN SOAPpy.orig/Client.py SOAPpy/Client.py
--- SOAPpy.orig/Client.py       2005-02-21 21:27:09.000000000 +0100
+++ SOAPpy/Client.py    2007-01-07 15:46:13.000000000 +0100
@@ -40,11 +40,11 @@
 ################################################################################
 """

+from __future__ import nested_scopes
+
 ident = '$Id: soappy-0.12.0-python-2.5-compat.patch,v 1.1 2007/01/07 15:26:14 kloeri Exp $'
 from version import __version__

Comment 3 Bryan Østergaard (RETIRED) gentoo-dev 2007-01-07 20:11:58 UTC
Sorry about that. After screwing up the patch 3 more times (yay me) I think I finally got it right :)

The fixed patch should hit rsync servers in 60 minutes or so.
Comment 4 Christophe Saout 2007-01-07 23:02:50 UTC
Works fine, thanks!