Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 431788

Summary: dev-python/ipython-0.13 does not correctly calculate USE dependencies
Product: Gentoo Linux Reporter: Dustin C. Hatch <dustin>
Component: New packagesAssignee: Python Gentoo Team <python>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Dustin C. Hatch 2012-08-17 23:12:50 UTC
The built-with-use dependency logic for dev-python/ipython-0.13 doesn't seem quite right. My first attempt at emerging ipython resulted in this common USE-required message:

The following USE changes are necessary to proceed:
#required by dev-python/ipython-0.13, required by ipython (argument)
>=dev-lang/python-3.2.3-r1 sqlite

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).

After making the appropriate change in /etc/portage/package.use/ipython, I ran emerge -av ipython again, and dependency calculation was successful. Indeed, the emerge proceeded to build and install all of the necessary packages, however, it stopped before emerging ipython with the following error:

 * Please rebuild dev-lang/python:2.7 with the following USE flags enabled: readline sqlite
 * ERROR: dev-python/ipython-0.13 failed (setup phase):
 *   Please rebuild dev-lang/python:2.7 with the following USE flags enabled: readline sqlite
 * Call stack:
 *, line   85:  Called pkg_setup
 *, line  319:  Called python_pkg_setup
 *   python.eclass, line  470:  Called python_execute_function '-q' 'python_pkg_setup_check_USE_flags'
 *   python.eclass, line 1107:  Called python_pkg_setup_check_USE_flags
 *   python.eclass, line  453:  Called die
 * The specific snippet of code:
 *   					die "Please rebuild ${python_atom} with the following USE flags enabled: ${PYTHON_USE_WITH}"
 * If you need support, post the output of `emerge --info '=dev-python/ipython-0.13'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/ipython-0.13'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/ipython-0.13/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/ipython-0.13/temp/die.env'.
 * Working directory: '/var/tmp/portage/dev-python/ipython-0.13'
 * S: '/var/tmp/portage/dev-python/ipython-0.13/work/ipython-0.13'

Okay, no big deal, I can add readline to my USE flags for Python, but why wasn't this listed at the beginning?

Reproducible: Always

emerge --info::

Portage (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r2, 3.5.1-gentoo x86_64)
System uname: Linux-3.5.1-gentoo-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 17 Aug 2012 07:00:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.1.5, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo dustin mozilla
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/dustin /var/lib/layman/mozilla"
USE="3dnow 3dnowext X acl alsa amd64 avahi bash-completion berkdb bzip2 caps cli consolekit cracklib crypt cxx dbus dri dvd fortran gdbm gnome-keyring gpm gstreamer gtk iconv ipv6 jpeg kerberos ldap libnotify mmx mmxext mng modules mudflap multilib ncurses nls nptl ogg opengl openmp pam pcre png policykit pppd python readline samba sasl session spell sse sse2 ssl startup-notification svg tcpd theora udev unicode vaapi vorbis zeroconf 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="gensplash" ELIBC="glibc" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-18 15:19:13 UTC
PYTHON_USE_WITH="readline sqlite"
Comment 2 Mike Gilbert gentoo-dev 2012-08-18 22:14:28 UTC
We would need to migrate to a solution like PYTHON_TARGETS to properly express the dependency.
Comment 3 Mike Gilbert gentoo-dev 2013-05-07 16:11:29 UTC
Should be fixed in >=dev-python/ipython-0.13.1-r1.