Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574926 - dev-lang/python-3.3.3: python_optimize tries to use yet-to-be-installed python3.3 binary
Summary: dev-lang/python-3.3.3: python_optimize tries to use yet-to-be-installed pytho...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 22:29 UTC by Jacob Godserv
Modified: 2016-02-18 19:07 UTC (History)
0 users

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


Attachments
build.log.bz2 (build.log.bz2,36.78 KB, application/x-bzip)
2016-02-16 22:33 UTC, Jacob Godserv
Details
python-3.3.3.ebuild.patch (python-3.3.3.ebuild.patch,787 bytes, patch)
2016-02-18 15:39 UTC, Jacob Godserv
Details | Diff
python-3.3.3.ebuild.patch r2 (python-3.3.3.ebuild.patch,786 bytes, patch)
2016-02-18 15:47 UTC, Jacob Godserv
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Godserv 2016-02-16 22:29:39 UTC
Python 3.3 almost finishes installing, but fails here:

....
Generating grammar tables from /home/javaJake/prefix/var/tmp/portage/dev-lang/python-3.3.3/image//home/javaJake/prefix/usr/lib/python3.3/lib2to3/PatternGrammar.txt
Writing grammar tables to /home/javaJake/prefix/var/tmp/portage/dev-lang/python-3.3.3/image//home/javaJake/prefix/usr/lib/python3.3/lib2to3/PatternGrammar3.3.3.final.0.pickle
/home/javaJake/prefix/var/tmp/portage/dev-lang/python-3.3.3/temp/environment: line 3490: /home/javaJake/prefix/usr/bin/python3.3: No such file or directory
 * ERROR: dev-lang/python-3.3.3::gentoo_prefix failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called __call-ebuildshell 'src_install'
 *   environment, line  347:  Called src_install
 *   environment, line 4266:  Called python_export 'python3.3' 'EPYTHON' 'PYTHON' 'PYTHON_SITEDIR'
 *   environment, line 3490:  Called die
 * The specific snippet of code:
 *                   PYTHON_SITEDIR=$("${PYTHON}" -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_lib())') || die;
 * 


Reproducible: Always

Steps to Reproduce:
1. emerge -1v python:3.3::gentoo_prefix



Portage 2.2.20-prefix (python 2.7.10-final-0, prefix/linux/amd64, gcc-4.8.5, unavailable, 2.6.32-358.el6.x86_64 x86_64)
=================================================================
System uname: Linux-2.6.32-358.el6.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2690_0_@_2.90GHz-with-centos-6.4-Final
KiB Mem:     8062532 total,   1522212 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo_prefix: Mon, 15 Feb 2016 19:03:15 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.24 p1.3) 2.24
app-shells/bash:          4.3_p39::gentoo_prefix
dev-java/java-config:     2.2.0::gentoo_prefix
dev-lang/perl:            5.22.1::gentoo_prefix
dev-lang/python:          2.7.10::gentoo_prefix, 3.4.3-r5::local, 3.5.1::local
dev-util/cmake:           3.4.3::gentoo_prefix
dev-util/pkgconfig:       0.29::gentoo_prefix
sys-devel/autoconf:       2.69::gentoo_prefix
sys-devel/automake:       1.14.1::gentoo_prefix, 1.15::gentoo_prefix
sys-devel/binutils:       2.24-r2::gentoo_prefix
sys-devel/gcc:            4.8.5::gentoo_prefix
sys-devel/gcc-config:     1.8-r1::gentoo_prefix
sys-devel/libtool:        2.4.6-r1::gentoo_prefix
sys-devel/make:           4.1-r1::gentoo_prefix
sys-kernel/linux-headers: 4.4::gentoo_prefix (virtual/os-headers)
Repositories:

gentoo_prefix
    location: /home/javaJake/prefix/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync8.prefix.bitzolder.nl/gentoo-portage-prefix
    priority: -1000
    aliases: gentoo

local
    location: /home/javaJake/prefix/usr/local/portage
    masters: gentoo_prefix
    priority: 0

ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -O2 -pipe"
DISTDIR="/home/javaJake/prefix/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j6 -l3"
PKGDIR="/home/javaJake/prefix/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/javaJake/prefix/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/javaJake/prefix/var/tmp"
USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pcre prefix prefix-guest readline seccomp session ssl tcpd unicode xattr 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jacob Godserv 2016-02-16 22:33:11 UTC
Created attachment 425680 [details]
build.log.bz2
Comment 2 Daa Jaa 2016-02-18 13:25:18 UTC
You should pastebin /home/javaJake/prefix/var/tmp/portage/dev-lang/python-3.3.3/temp/environment at least around its line 3490
Comment 3 Jacob Godserv 2016-02-18 15:39:10 UTC
Created attachment 425834 [details, diff]
python-3.3.3.ebuild.patch

Turns out this is fixed in all current vanilla Gentoo python ebuilds. This patch backports the fix to Prefix's 3.3.3 ebuild.
Comment 4 Jacob Godserv 2016-02-18 15:47:43 UTC
Created attachment 425836 [details, diff]
python-3.3.3.ebuild.patch r2

Renamed PYVER to SLOT, as PYVER is not in this ebuild version.
Comment 5 Fabian Groffen gentoo-dev 2016-02-18 17:28:16 UTC
Thanks!  I applied your patch.  Question, why do you need python 3.3?
Comment 6 Jacob Godserv 2016-02-18 19:03:47 UTC
(In reply to Fabian Groffen from comment #5)
> Thanks!  I applied your patch.  Question, why do you need python 3.3?

It was a long-winded way of working around bug #57096 which resulted in numerous blockers that only just cleaned up in the last few weeks.
Comment 7 Fabian Groffen gentoo-dev 2016-02-18 19:07:39 UTC
ok, I suspected something like that.