Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307609 - dev-python/traits-3.2.0 doesn't compile, dev-python/traitsgui-3.1.0 doesn't either
Summary: dev-python/traits-3.2.0 doesn't compile, dev-python/traitsgui-3.1.0 doesn't e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2010-03-03 12:54 UTC by Andrzej Szary
Modified: 2010-03-15 03:36 UTC (History)
1 user (show)

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


Attachments
Patch that fixes this bug. (compile_traits.patch,404 bytes, patch)
2010-03-06 22:20 UTC, Myckel Habets
Details | Diff
Patch that fixes dev-python/traitsgui-3.1.0 bug (compile_traitsgui.patch,410 bytes, patch)
2010-03-07 10:49 UTC, Andrzej Szary
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Szary 2010-03-03 12:54:06 UTC
dev-python/traits does not compile...

Reproducible: Always

Steps to Reproduce:
1.emerge traits
2.
3.

Actual Results:  
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/traits-3.2.0
 * Traits-3.2.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                               [ ok ]
 * checking auxfile checksums ;-) ...                                                                              [ ok ]
 * checking miscfile checksums ;-) ...                                                                             [ ok ]
 * CPV:  dev-python/traits-3.2.0                                                                                         
 * REPO: gentoo                                                                                                          
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU                                                            
>>> Unpacking source...                                                                                                  
>>> Unpacking Traits-3.2.0.tar.gz to /var/tmp/portage/dev-python/traits-3.2.0/work                                       
>>> Source unpacked in /var/tmp/portage/dev-python/traits-3.2.0/work                                                     
>>> Preparing source in /var/tmp/portage/dev-python/traits-3.2.0/work/Traits-3.2.0 ...                                   
>>> Source prepared.                                                                                                     
>>> Configuring source in /var/tmp/portage/dev-python/traits-3.2.0/work/Traits-3.2.0 ...                                 
>>> Source configured.                                                                                                   
>>> Compiling source in /var/tmp/portage/dev-python/traits-3.2.0/work/Traits-3.2.0 ...                                   
 * Building of dev-python/traits-3.2.0 with CPython 2.6...                                                               
python2.6 setup.py build -b build-2.6                                                                                    
warning: build_py: byte-compiling is disabled, skipping.                                                                 
warning: install_lib: byte-compiling is disabled, skipping.                                                              
zip_safe flag not set; analyzing archive contents...                                                                     
Traceback (most recent call last):                                                                                       
  File "setup.py", line 162, in <module>                                                                                 
    zip_safe = False,                                                                                                    
  File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup                                                      
    _setup_distribution = dist = klass(attrs)                                                                            
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 221, in __init__                                    
    self.fetch_build_eggs(attrs.pop('setup_requires'))                                                                   
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 245, in fetch_build_eggs                            
    parse_requirements(requires), installer=self.fetch_build_egg                                                         
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 538, in resolve                                       
    dist = best[req.key] = env.best_match(req, self, installer)                                                          
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 780, in best_match                                    
    return self.obtain(req, installer) # try and download/install                                                        
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 792, in obtain                                        
    return installer(requirement)                                                                                        
  File "/usr/lib64/python2.6/site-packages/setuptools/dist.py", line 293, in fetch_build_egg                             
    return cmd.easy_install(req)                                                                                         
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 471, in easy_install                
    return self.install_item(spec, dist.location, tmpdir, deps)                                                          
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 501, in install_item                
    dists = self.install_eggs(spec, download, tmpdir)                                                                    
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 680, in install_eggs                
    return self.build_and_install(setup_script, setup_base)                                                              
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 962, in build_and_install           
    eggs.append(self.install_egg(dist.location, setup_base))                                                             
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 718, in install_egg                 
    (os.path.basename(egg_path),os.path.dirname(destination)))                                                           
  File "/usr/lib64/python2.6/distutils/cmd.py", line 358, in execute                                                     
    util.execute(func, args, msg, dry_run=self.dry_run)                                                                  
  File "/usr/lib64/python2.6/distutils/util.py", line 399, in execute                                                    
    apply(func, args)                                                                                                    
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 1024, in unpack_and_compile         
    self.byte_compile(to_compile)                                                                                        
  File "/usr/lib64/python2.6/site-packages/setuptools/command/easy_install.py", line 1036, in byte_compile               
    byte_compile(to_compile, optimize=0, force=1, dry_run=self.dry_run)                                                  
  File "/usr/lib64/python2.6/distutils/util.py", line 453, in byte_compile                                               
    raise DistutilsByteCompileError('byte-compiling is disabled.')                                                       
distutils.errors.DistutilsByteCompileError: byte-compiling is disabled.                                                  
 * ERROR: dev-python/traits-3.2.0 failed:                                                                                
 *   Building failed with CPython 2.6 in distutils_building() function                                                   
 *                                                                                                                       
 * Call stack:                                                                                                           
 *     ebuild.sh, line   54:  Called src_compile                                                                         
 *   environment, line 2759:  Called distutils_src_compile                                                               
 *   environment, line  726:  Called python_execute_function 'distutils_building'                                        
 *   environment, line 1790:  Called die                                                                                 
 * The specific snippet of code:                                                                                         
 *                       die "${failure_message}";                                                                       
 *                                                                                                                       
 * If you need support, post the output of 'emerge --info =dev-python/traits-3.2.0',
 * the complete build log and the output of 'emerge -pqv =dev-python/traits-3.2.0'.
 * The complete build log is located at '/var/tmp/portage/dev-python/traits-3.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/traits-3.2.0/temp/environment'.
 * S: '/var/tmp/portage/dev-python/traits-3.2.0/work/Traits-3.2.0'

>>> Failed to emerge dev-python/traits-3.2.0, Log file:

>>>  '/var/tmp/portage/dev-python/traits-3.2.0/temp/build.log'

 * Messages for package dev-python/traits-3.2.0:

 * ERROR: dev-python/traits-3.2.0 failed:
 *   Building failed with CPython 2.6 in distutils_building() function
 *
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2759:  Called distutils_src_compile
 *   environment, line  726:  Called python_execute_function 'distutils_building'
 *   environment, line 1790:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 *
 * If you need support, post the output of 'emerge --info =dev-python/traits-3.2.0',
 * the complete build log and the output of 'emerge -pqv =dev-python/traits-3.2.0'.
 * The complete build log is located at '/var/tmp/portage/dev-python/traits-3.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/traits-3.2.0/temp/environment'.
 * S: '/var/tmp/portage/dev-python/traits-3.2.0/work/Traits-3.2.0'

Expected Results:  
traits (mayavi dependency) installed on the system...

Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================                                  
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6500_@_2.10GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 03 Mar 2010 12:00:01 +0000                                                   
app-shells/bash:     4.1_p2                                                                          
dev-lang/python:     2.6.4-r1, 3.1.1-r1                                                              
dev-util/cmake:      2.8.0-r2                                                                        
sys-apps/baselayout: 2.0.1                                                                           
sys-apps/openrc:     0.6.0-r1                                                                        
sys-apps/sandbox:    2.2                                                                             
sys-devel/autoconf:  2.13, 2.65                                                                      
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                                        
sys-devel/binutils:  2.20-r1                                                                         
sys-devel/gcc:       4.3.4, 4.4.3                                                                    
sys-devel/gcc-config: 1.4.1                                                                          
sys-devel/libtool:   2.2.6b                                                                          
virtual/os-headers:  2.6.32                                                                          
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                       
ACCEPT_LICENSE="* -@EULA"                                                                            
CBUILD="x86_64-pc-linux-gnu"                                                                         
CFLAGS="-march=nocona -O2 -pipe"                                                                     
CHOST="x86_64-pc-linux-gnu"                                                                          
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                           
CXXFLAGS="-march=nocona -O2 -pipe"                                                                                        
DISTDIR="/usr/portage/distfiles"                                                                                          
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                     
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                              
LANG="en_GB.UTF-8"                                                                                                        
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en pl"
MAKEOPTS="-j3"
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 --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 battery berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg kde lapack latex ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php png policykit ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb v4l v4l2 vim-with-x vorbis x264 xml xorg xulrunner xv xvid 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 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Myckel Habets 2010-03-06 22:20:17 UTC
Created attachment 222367 [details, diff]
Patch that fixes this bug.

The bug was caused by a requirement for setupdocs in setup.py. Because the ebuild does not install setupdocs if the doc use flag is not set the build code still expects it to be needed and tries to install it himself, but fails in that.

The patch removes the requirement from the setup.py and puts portage back in control of taking care of dependencies. Like it should be!
Comment 2 Andrzej Szary 2010-03-07 10:49:33 UTC
Created attachment 222445 [details, diff]
Patch that fixes dev-python/traitsgui-3.1.0 bug
Comment 3 Andrzej Szary 2010-03-07 10:56:20 UTC
(In reply to comment #1)
> Created an attachment (id=222367) [details]
> Patch that fixes this bug.

Thank you, it solved my problem...
Same bug applies to dev-python/traitsgui-3.1.0 (also mayavi dependency).
I heave posted patch for this one. Should I open new bug for traitsgui also?
Comment 4 Myckel Habets 2010-03-07 11:37:11 UTC
(In reply to comment #3)

> Thank you, it solved my problem...
> Same bug applies to dev-python/traitsgui-3.1.0 (also mayavi dependency).
> I heave posted patch for this one. Should I open new bug for traitsgui also?
> 

Yes, I suggest to do so. When I saw the file I was a little confused about me having missed something.
Comment 5 Sebastian Pipping gentoo-dev 2010-03-08 04:18:00 UTC
Please don't close a bug before a bug is in the Gentoo tree.  I check just checked, it's not in.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/traits/
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/traitsgui/

Reopening.
Comment 6 Sebastian Pipping gentoo-dev 2010-03-08 04:19:07 UTC
@python
Low hanging fruit here, go get it ;-)
Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2010-03-15 03:36:40 UTC
Fixed in cvs. Thanks.