Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295350 - sys-apps/portage- depclean fails because of a rdep not built with proper USE flag
Summary: sys-apps/portage- depclean fails because of a rdep not built with pro...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
Depends on:
Reported: 2009-12-01 17:41 UTC by Marcus Becker
Modified: 2022-10-20 02:43 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Becker 2009-12-01 17:41:39 UTC
I noticed today, that cmake likes curl with gnutls USE flag compiled. Apparently this use flag is not set in the default/linux/amd64/10.0/desktop profile

That resulted in depclean not working properly:

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *   >=net-misc/curl-7.16.7[gnutls] pulled in by:
 *     dev-util/cmake-2.8.0

After compiling net-misc/curl with gnutls USE flag it works fine

So either the dev-util/cmake or the profile needs to be changed

Reproducible: Always

Steps to Reproduce:
1. emerge -DupvN world
2. emerge -p --depclean

Actual Results:  
Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *   >=net-misc/curl-7.16.7[gnutls] pulled in by:
 *     dev-util/cmake-2.8.0

Expected Results:  
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   699
Packages in world:    49
Packages in system:   50
Required packages:    699
Number to remove:     0

disi-desktop ~ # emerge --info
Portage (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r6 x86_64)
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Dec 2009 03:00:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=native -pipe"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apm audio beagle berkdb branding bzip2 cairo cdr clamav cli cracklib crypt css cvs dbus dga dri dts dvd dvdr dvdread eds emboss encode evo extras fam fbcondecor ffmpeg firefox flac fortran gdbm gif git glitz gnome gpm gstreamer gtk hal iconv java jpeg libnotify mad mikmod mmx mmxext modules mono mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdf perl png ppds pppd python quicktime readline reflection samba sdl session spell spl sql sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcpd thunar tiff truetype unicode usb vcd video vorbis wmf x264 xcb xine xml xorg xpm xulrunner xv xvid 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 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 mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Comment 1 Pacho Ramos gentoo-dev 2010-01-03 20:28:06 UTC
This is not our fault, we don't have to enable any extra USE flag in desktop profile for fixing this (it would simply hide the problem since all people would get libcurl built with gnutls even not needing it)

Maybe portage could give a hint about what to do (instead of simply fail) when a built-time depend was built with unproper USE flag (this wouldn't occur with RDEPENDs since they are calculated by default when running "emerge -uDN world"
Comment 2 Zac Medico gentoo-dev 2010-01-03 20:34:50 UTC
It's actually a RDEPEND since cmake-2.8.0.ebuild sets RDEPEND=${DEPEND}:*checkout*/gentoo-x86/dev-util/cmake/cmake-2.8.0.ebuild?rev=1.2
Comment 3 Pacho Ramos gentoo-dev 2010-01-03 21:28:40 UTC
Ups, yes, sorry