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

Bug 352524

Summary: Improve suggestions on how to solve use dependency problems with optional dependencies
Product: Portage Development Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 300071    

Description Petteri Räty (RETIRED) gentoo-dev 2011-01-23 18:20:08 UTC
pena betelgeuse # emerge -pv cryptsetup

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy ">=dev-libs/libgpg-error-1.10[static-libs]".
!!! One of the following packages is required to complete your request:
- dev-libs/libgpg-error-1.10 (Change USE: +static-libs)
(dependency required by "sys-fs/cryptsetup-1.2.0-r1" [ebuild])
(dependency required by "cryptsetup" [argument])
pena betelgeuse # USE="-static" emerge -pv cryptsetup

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

Calculating dependencies... done!
[ebuild     U ] sys-fs/cryptsetup-1.2.0-r1 [1.1.3-r1] USE="-nls (-selinux) -static% (-dynamic%*)" 512 kB

Total: 1 package (1 upgrade), Size of downloads: 512 kB

In here the manual solution provided should be listed in the first output.

Portage 2.2.0_alpha19 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.12.2-r0, 2.6.37-gentoo i686)
System uname: Linux-2.6.37-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
ccache version 3.1.3 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/ccache:     3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers: (sys-kernel/linux-headers)
Repositories: gentoo openrc wschlich-testing finnish dev-jokey sunrise betelgeuse
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1 googleearth"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="fi en"
MAKEOPTS="-j8 -s"
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="/mnt/checkouts/overlays/openrc /mnt/checkouts/overlays/wschlich-testing /mnt/checkouts/overlays/finnish /mnt/checkouts/overlays/jokey /mnt/checkouts/overlays/sunrise /mnt/checkouts/overlays/betelgeuse"
USE="a52 aac acl acpi alsa audiofile bash-completion bluetooth branding bzip2 cairo caps cdb cddb cdparanoia cdr cli consolekit cracklib crypt cups custom-cxxflags cxx dbus dri dts dvd dvdr dvdread emboss exif fam ffmpeg firefox gdu gif glib hal iconv idn ipv6 java jpeg kde kdehiddenvisibility lcms libnotify lm_sensors logitech-mouse mad mikmod mjpeg mmx mng modules mp3 mp4 mpeg mudflap ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support readline rtc samba semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs system-sqlite theora threads tiff truetype udev unicode usb userlocales vim-syntax vorbis win32codecs x264 x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zeroconf 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 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" 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="fi en" NETBEANS_MODULES="ruby ide webcommon nb harness java websvccommon gsf" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none 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 Sebastian Luther (few) 2011-01-23 18:58:55 UTC
Are you aware of the --autounmask option? The comment it provides should contain a hint to the static use flag of cryptsetup.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2011-01-24 19:56:44 UTC
(In reply to comment #1)
> Are you aware of the --autounmask option? The comment it provides should
> contain a hint to the static use flag of cryptsetup.

If that option is able to solve such situations then the output should document it instead of people being required to know it.
Comment 3 Sebastian Luther (few) 2011-01-28 21:52:39 UTC

*** This bug has been marked as a duplicate of bug 255482 ***