Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372569 - emerge output is confusing in the case of unsatisfied deps
Summary: emerge output is confusing in the case of unsatisfied deps
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 391893 (view as bug list)
Depends on:
Blocks: autounmask
  Show dependency tree
 
Reported: 2011-06-22 12:12 UTC by Alan McKinnon
Modified: 2012-12-26 10:32 UTC (History)
3 users (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 Alan McKinnon 2011-06-22 12:12:41 UTC
Consider the following two emerge commands:

nazgul home # USE="dillo" emerge -pv claws-mail

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] net-libs/libetpan-1.0  USE="berkdb gnutls sasl ssl -debug -ipv6 -liblockfile" 0 kB
[ebuild  N     ] x11-libs/fltk-2.0_pre6970-r1  USE="jpeg opengl png xft xinerama zlib -cairo -debug -doc" 0 kB
[ebuild  N     ] www-client/dillo-2.2  USE="gif jpeg png ssl -doc -ipv6" 0 kB
[ebuild   R    ] mail-client/claws-mail-3.7.9-r1  USE="crypt dbus dillo* gnutls imap ldap session spell ssl startup-notification -bogofilter -doc -ipv6 -nntp -pda -smime -spamassassin -xface" 0 kB

Total: 4 packages (3 new, 1 reinstall), Size of downloads: 0 kB

The following USE changes are necessary to proceed:
#required by www-client/dillo-2.2, required by mail-client/claws-mail-3.7.9-r1[dillo], required by claws-mail (argument)
>=x11-libs/fltk-2.0_pre6970-r1 -cairo

NOTE: This --autounmask behavior can be disabled by setting
      EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.
nazgul home # emerge -pv fltk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] x11-libs/fltk-2.0_pre6970-r1  USE="cairo jpeg opengl png xft xinerama zlib -debug -doc" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


The first fails because dillo's needs wrt fltk are not met, the stated reason is in fact correct. The second is what emerge will do if fltk is merged on it's own.

The "[ebuild  N     ]" lines are *different* (USE=-cairo) with no changes to package.use.

The first output appears to be listing what portage *needs* to do to successfully emerge claws-mail, but AFAIK emerge output has always been to show what portage *will* do if the command is run as stated.

The first interpretation is confusing, I cannot see why it failed - it begs the question "Why is emerge telling me to set "USE=-cairo" when it just told me that is exactly how it is going to build the package?

The second interpretation makes more sense: I can see what portage would do if the emerge ran, compare it to the error and know for sure how to deal with it.

Currently I can see that portage claims I need a package.use entry, but I can't see why I need it, and the evidence points to me actually not needing it.

Reproducible: Always

Steps to Reproduce:
1. emerge -pv claws-mail (with default USE)
2. emerge -pv fltk (with default USE)
3. compare output
Actual Results:  
confusing output the appears to contradict itself

Expected Results:  
Clear unambiguous output that is not contradictory

emerge --info
Portage 2.2.0_alpha41 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.39-ck x86_64)
=================================================================
System uname: Linux-2.6.39-ck-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 22 Jun 2011 07:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo enlightenment x11 alan
Installed sets: @alan-e17, @alan-fonts, @alan-gkrellm, @alan-icon-themes, @alan-kde, @alan-koffice, @alan-xorg, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula PUEL googleearth AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="/mnt/distfiles/ ftp://ftp.is.co.za/mirror/gentoo.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US en_ZA"
MAKEOPTS="-j3 -l3"
PKGDIR="/var/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="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/enlightenment /var/portage/local/layman/x11 /var/portage/local/alan"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aiglx akonadi alsa amd64 ao apache2 archive audiofile avahi bash-completion berkdb bittorrent bluetooth bonjour branding bzip2 cairo cdda cddb cdr cisco cli consolekit cracklib crypt cups curl curlwrappers cviewer cvs cxx dbus dbx dga dialup dirac djvu dri dts dv dvb dvd dvdr dvdread encode etk evo ewl exif expat ffmpeg flac fontconfig foomaticdb fortran freetds ftp fuse gallium gd gdbm gdu gif gimp glib glitz gnokii gnutls gpm graphviz gs gstreamer gtk handbook iconv id3tag ieee1394 imagemagick imap imlib ipc ipod iproute2 irda irmc jabber java java6 javascript jbig jce jpeg jpeg2k kde keyring kig-scripting kipi lame lcms ldap lesstif libass libc_glibc libcaca libg++ libnotify libsamplerate libsndfile libwww lirc lm_sensors lua lzma mad maildir matroska mbox mcal messenger mikmod milter mime mmx mng modules mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli ncurses nepomuk netboot nfs nptl nsplugin ntp odbc offensive ogg openexr opengl openmp openssl openvpn pam pango passwordsave pch pcre pdf perl phonon plasma plotutils pmu png policykit posix postgres ppds pppd pptp profile qt3support qt4 quicktime readline reflection resolvconf samba sasl scanner schroedinger sdl semantic-desktop session slp smi sms solver speex spell spl sql sqlite sqlite3 sse sse2 ssl ssse3 startup-notification subversion svg sysfs syslog sysvipc tcl tcltk tcpd testbed tetex theora threads thumbnail tidy tiff tk truetype tunepimp udev unicode usb utempter v4l v4l2 vaapi vcd vdpau video vim-syntax vlc vnc vorbis vpx wavpack webkit wifi wma wmf wxwindows x264 xattr xcb xcomposite xine xinerama xinetd xml xorg xosd xpm xrender xscreensaver xulrunner xv xvid xvmc zeroconf zip 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_US en_ZA" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nouveau nv vesa" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2011-06-29 06:00:51 UTC
The new output is a result of --autounmask being enabled by default. I think it's fine as it is, though it might take some time for people to grow accustomed to.
Comment 2 Zac Medico gentoo-dev 2011-11-26 18:48:19 UTC
*** Bug 391893 has been marked as a duplicate of this bug. ***