Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308193 - dev-python/apptools-3.3.0 does not compile
Summary: dev-python/apptools-3.3.0 does not compile
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:
Depends on:
Blocks:
 
Reported: 2010-03-07 12:20 UTC by Andrzej Szary
Modified: 2010-03-15 03:37 UTC (History)
0 users

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


Attachments
Patch that fixes this bug. (compile_apptools.patch,410 bytes, patch)
2010-03-07 12:28 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-07 12:20:30 UTC
dev-python/apptools does not compile

Reproducible: Always

Steps to Reproduce:
1.emerge apptools

Actual Results:  
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 2) dev-python/apptools-3.3.0
 * AppTools-3.3.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                           [ ok ]
 * checking ebuild checksums ;-) ...                                                                               [ ok ]
 * checking auxfile checksums ;-) ...                                                                              [ ok ]
 * checking miscfile checksums ;-) ...                                                                             [ ok ]
 * CPV:  dev-python/apptools-3.3.0
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
>>> Unpacking source...
>>> Unpacking AppTools-3.3.0.tar.gz to /var/tmp/portage/dev-python/apptools-3.3.0/work
>>> Source unpacked in /var/tmp/portage/dev-python/apptools-3.3.0/work
>>> Preparing source in /var/tmp/portage/dev-python/apptools-3.3.0/work/AppTools-3.3.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/apptools-3.3.0/work/AppTools-3.3.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/apptools-3.3.0/work/AppTools-3.3.0 ...
 * Building of dev-python/apptools-3.3.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 134, 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/apptools-3.3.0 failed:
 *   Building failed with CPython 2.6 in distutils_building() function
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2852:  Called distutils_src_compile
 *   environment, line  771:  Called python_execute_function 'distutils_building'
 *   environment, line 1841:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";
 * 
 * If you need support, post the output of 'emerge --info =dev-python/apptools-3.3.0',
 * the complete build log and the output of 'emerge -pqv =dev-python/apptools-3.3.0'.
 * The complete build log is located at '/var/tmp/portage/dev-python/apptools-3.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/apptools-3.3.0/temp/environment'.
 * S: '/var/tmp/portage/dev-python/apptools-3.3.0/work/AppTools-3.3.0'

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


Portage 2.1.8.1 (default/linux/amd64/10.0/desktop, gcc-4.4.3, 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: Fri, 05 Mar 2010 12:30:01 +0000
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
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.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/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=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 apm battery berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dhclient dhcpcd dri dts dvd dvdr eds emboss encode evo fam firefox flac flash fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 java jpeg kde lapack latex ldap libnotify lm_sensors 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 wifi x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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 Andrzej Szary 2010-03-07 12:28:10 UTC
Created attachment 222455 [details, diff]
Patch that fixes this bug.

Myckel Habets suffestions:
"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-08 12:37:02 UTC
Bug fix is not in the Gentoo tree... (reopen)
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2010-03-15 03:37:03 UTC
Fixed in cvs. Thanks.