Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320887 - dev-lang/python-3.1.2-r3 failed to emerge with
Summary: dev-lang/python-3.1.2-r3 failed to emerge with
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-21 15:35 UTC by Maxim Macovei
Modified: 2011-10-30 23:15 UTC (History)
1 user (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 Maxim Macovei 2010-05-21 15:35:15 UTC
After usual monthly System Security Updates using emerge world, emerge failed on dev-lang/python-3.1.2-r3 with an confusing error like : PYTHON(): Main active version of Python not set

Actually eselect python list shows the version that's currently active.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge portage
3. emerge python

Actual Results:  
>>> Emerging (1 of 1) dev-lang/python-3.1.2-r3
 * Python-3.1.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                 [ ok ]
 * python-gentoo-patches-3.1.2-r5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                  [ ok ]
 * This profile has not been tested thoroughly and is not considered to be
 * a supported server profile at this time.  For a supported server
 * profile, please check the Hardened project (http://hardened.gentoo.org).

 * This profile is merely a convenience for people who require a more
 * minimal profile, yet are unable to use hardened due to restrictions in
 * the software being used on the server. This profile should also be used
 * if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
 * applies to you, then it doesn't and you should probably be using
 * Hardened, instead.

 * CPV:  dev-lang/python-3.1.2-r3
 * REPO: gentoo
 * USE:  elibc_glibc gdbm kernel_linux ncurses readline ssl threads userland_GNU wide-unicode x86 xml
 * ERROR: dev-lang/python-3.1.2-r3 failed:
 *   PYTHON(): Main active version of Python not set
 *
 * Call stack:
 *                ebuild.sh, line  54:  Called pkg_setup
 *   python-3.1.2-r3.ebuild, line  51:  Called python_pkg_setup
 *            python.eclass, line 335:  Called PYTHON '--ABI'
 *            python.eclass, line 1320:  Called die
 * The specific snippet of code:
 *                              die "${FUNCNAME}(): Main active version of Python not set"
 *
 * If you need support, post the output of 'emerge --info =dev-lang/python-3.1.2-r3',
 * the complete build log and the output of 'emerge -pqv =dev-lang/python-3.1.2-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.1.2-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.1.2-r3/temp/die.env'.
 * S: '/var/tmp/portage/dev-lang/python-3.1.2-r3/work/Python-3.1.2'

>>> Failed to emerge dev-lang/python-3.1.2-r3, Log file:

>>>  '/var/tmp/portage/dev-lang/python-3.1.2-r3/temp/build.log'

 * Messages for package dev-lang/python-3.1.2-r3:

 * ERROR: dev-lang/python-3.1.2-r3 failed:
 *   PYTHON(): Main active version of Python not set
 *
 * Call stack:
 *                ebuild.sh, line  54:  Called pkg_setup
 *   python-3.1.2-r3.ebuild, line  51:  Called python_pkg_setup
 *            python.eclass, line 335:  Called PYTHON '--ABI'
 *            python.eclass, line 1320:  Called die
 * The specific snippet of code:
 *                              die "${FUNCNAME}(): Main active version of Python not set"
 *
 * If you need support, post the output of 'emerge --info =dev-lang/python-3.1.2-r3',
 * the complete build log and the output of 'emerge -pqv =dev-lang/python-3.1.2-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.1.2-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.1.2-r3/temp/die.env'.
 * S: '/var/tmp/portage/dev-lang/python-3.1.2-r3/work/Python-3.1.2'


Expected Results:  
install a new python version :)

emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/server, gcc-4.4.3, glibc-2.11.1-r0, 2.6.32-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r6-i686-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 20 May 2010 19:30:20 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.5-r2
dev-python/pycrypto: 2.1.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.2-r3, 4.4.3-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /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"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.secured.md/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j12"
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://mirror.secured.md/gentoo-portage"
USE="acl apache2 bzip2 cli cracklib crypt cxx dri fortran ftp gd gdbm gif gpm iconv imap jpeg logrotate mhash modules mudflap mysql mysqli ncurses nls nptl nptlonly ntpl ntplonly ogg openmp pam pcre perl php png pppd python readline reflection session snmp spl ssl sysfs tcpd truetype unicode x86 xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

python-updater
 * Starting Python Updater...
 * Main active version of Python:  2.6
 * Active version of Python 2:     2.6
 * Active version of Python 3:     (None)
 * No packages need to be reinstalled.


eselect python list
Available Python interpreters:
  [1]   python2.4
  [2]   python2.5
  [3]   python2.6 *
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-05-21 19:03:19 UTC
It was fixed some time ago.