Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148726 - dev-python/4suite-1.0_beta3 doesn't compile with python 2.5
Summary: dev-python/4suite-1.0_beta3 doesn't compile with python 2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 207062 216393 (view as bug list)
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2006-09-22 19:20 UTC by Patrick McLean
Modified: 2008-04-15 17:28 UTC (History)
3 users (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 Patrick McLean gentoo-dev 2006-09-22 19:20:26 UTC
Doesn't even get to compiling, dies in src_unpack, here's the output:

>>> Unpacking 4Suite-XML-1.0b3.tar.gz to /tmp/portage/portage/4suite-1.0_beta3/work
 * Applying 1.0_b3-add_root_opt.diff ...                                                                                                                                                       [ ok ]
Traceback (most recent call last):
  File "setup.py", line 113, in <module>
    core.setup(**kwargs)
  File "/usr/lib/python2.5/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/tmp/portage/portage/4suite-1.0_beta3/work/4Suite-1.0b3/Ft/Lib/DistExt/PackageManager.py", line 122, in __init__
    Dist.Dist.__init__(self, attrs)
  File "/tmp/portage/portage/4suite-1.0_beta3/work/4Suite-1.0b3/Ft/Lib/DistExt/Dist.py", line 102, in __init__
    Distribution.__init__(self, attrs)
  File "/usr/lib/python2.5/distutils/dist.py", line 255, in __init__
    getattr(self.metadata, "set_" + key)(val)
  File "/usr/lib/python2.5/distutils/dist.py", line 1185, in set_requires
    distutils.versionpredicate.VersionPredicate(v)
  File "/usr/lib/python2.5/distutils/versionpredicate.py", line 104, in __init__
    raise ValueError("empty package restriction")
ValueError: empty package restriction
>>> Source unpacked.
>>> Compiling source in /tmp/portage/portage/4suite-1.0_beta3/work/4Suite-1.0b3 ...
Traceback (most recent call last):
  File "setup.py", line 113, in <module>
    core.setup(**kwargs)
  File "/usr/lib/python2.5/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/tmp/portage/portage/4suite-1.0_beta3/work/4Suite-1.0b3/Ft/Lib/DistExt/PackageManager.py", line 122, in __init__
    Dist.Dist.__init__(self, attrs)
  File "/tmp/portage/portage/4suite-1.0_beta3/work/4Suite-1.0b3/Ft/Lib/DistExt/Dist.py", line 102, in __init__
    Distribution.__init__(self, attrs)
  File "/usr/lib/python2.5/distutils/dist.py", line 255, in __init__
    getattr(self.metadata, "set_" + key)(val)
  File "/usr/lib/python2.5/distutils/dist.py", line 1185, in set_requires
    distutils.versionpredicate.VersionPredicate(v)
  File "/usr/lib/python2.5/distutils/versionpredicate.py", line 104, in __init__
    raise ValueError("empty package restriction")
ValueError: empty package restriction

!!! ERROR: dev-python/4suite-1.0_beta3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die


Portage 2.1.2_pre1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 23 Sep 2006 02:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.29
dev-lang/python:     2.4.3-r3, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts/addons /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/gnome /usr/share/hwdata"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/sound /etc/terminfo /etc/texmf/web2c /etc/udev /usr/kde /usr/share/gnome/apps /usr/share/gnome/bonobo /usr/share/gnome/capplets /usr/share/gnome/cursor-fonts /usr/share/gnome/fonts /usr/share/gnome/help /usr/share/gnome/html /usr/share/gnome/panel /usr/share/gnome/ui /usr/share/gnome/vfolders /usr/share/gnome/vino /usr/share/gnome/wm-properties /var/local"
CXXFLAGS="-march=pentium2 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_CA en_GB en_US en fr zh_CN zh_TW"
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="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/diskless /usr/local/chutzpah"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac accessibility acpi ada alsa amr aoss arts asf audiofile bash-completion berkdb bitmap-fonts bmpx bonobo boost branding bzip2 cairo caps cdparanoia cdr cli client-only colordiff cpudetection crypt css ctype cups curl custom-cflags dbus divx djvu dlloader doc dri dts dv dvd dvdr dvdread dvi eds effects elibc_glibc emacs emboss emf encode esd evo evolution examples exif expat fam fat ffmpeg fftw firefox flac foomaticdb fortran ftp gb gcc-libffi gcj gd gdbm gif gimp gimpprint glibc-omitfp glitz glut gmail gmedia gmp gnome gnomedb gnuplot gnustep gnutls gpgme gphoto2 gpm grammar gstreamer gtk gtkhtml guile gzip hal haskell hfs i8x0 icq icu idea idn ieee1394 ifp image imagemagick imap imlib imlib2 inkjar input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_vmmouse input_devices_void input_devices_wacom ipod ipv6 jabber java jfs jpeg jpeg2k junit kde kernel_linux largeterminal latex lcms ldap libg++ libgda libnotify libwww linguas_en linguas_en_CA linguas_en_GB linguas_en_US linguas_fr linguas_zh_CN linguas_zh_TW live lzo mad math matroska mikmod mjpeg mmap mmx mng mono motif mozdevelop mozilla mozsvg mp3 mp4 mpeg mule musepack mysql nautilus ncurses netboot network nfs nis nls no-old-linux no_wxgtk1 nonfsv4 nptl nptlonly objc odbc ogg openal opengl pam pam_console pascal patented pcre pda pdf perl php plugin png posix postgres povray ppds pppd print python qt3 qt4 quicktime quotas radeon rdesktop readline real realmedia reflection rtc ruby samba scanner sdk sdl session shorten silverxp sndfile sox speex spell spl sql sqlite ssl stream subversion svg tcltk tcpd tetex tga theora tiff totem transcode truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_epson video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_nvidia video_cards_r128 video_cards_radeon video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vidix vim-with-x vorbis win32codecs wmf wxwindows x264 xanim xemacs xine xml xml2 xorg xpm xprint xscreensaver xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 brad walker 2006-12-27 22:06:24 UTC
this bad line in setup.py causes the error:
     'requires': 'Python (>2.2.1)',

distutils expects a sequence of strings but instead gets a sequence of characters and can't interpret the requirement constraint.

this isn't beta3's only problem, though. i tried making 'requires' a list by adding this to the ebuild:
	sed -e "s/'Python (>2.2.1)'/\['Python (>2.2.1)'\]/" -i setup.py

it only throws a new bizarre error:
>>> Unpacking 4Suite-XML-1.0b3.tar.gz to /var/tmp/portage/dev-python/4suite-1.0_beta3-r1/work
 * Applying 1.0_b3-add_root_opt.diff ...                                  [ ok ]
error in 4Suite setup command: field 'timestamp' must be int or long, not float
>>> Source unpacked.

these problems have been addressed by upstream. one should probably ditch 1.0 pre-releases and use 1.0.2 available at bug #159259.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2006-12-28 16:59:05 UTC
Version bump 1.0.2 solved this issue as well.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-22 17:30:14 UTC
*** Bug 207062 has been marked as a duplicate of this bug. ***
Comment 4 Rob Cakebread (RETIRED) gentoo-dev 2008-04-15 17:28:44 UTC
*** Bug 216393 has been marked as a duplicate of this bug. ***