I was installing a new system, and I was just emerging kde when it failed on samba-3.0.6-r2, claiming it needed cups. I then tried to emerge cups-1.1.21_rc2, only to have it claim samba as a dependency. tombstone ~ # emerge -p samba These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-print/cups-1.1.21_rc2 [ebuild N ] net-fs/samba-3.0.6-r2 tombstone ~ # emerge -p cups These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-fs/samba-3.0.6-r2 [ebuild N ] net-print/cups-1.1.21_rc2 One can fix this problem by issuing: USE="-samba" emerge cups emerge samba emerge cups Reproducible: Always Steps to Reproduce: 1. Put gentoo on a machine 2. After the first reboot, emerge kde 3. Actual Results: Conflict - the build failed with samba complaining about needing cups. Trying to emerge cups revealed it requires samba, resulting in a cyclical dependency. Expected Results: Emerged kde. Gentoo Base System version 1.5.3 Portage 2.0.50-r10 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r3) ================================================================= System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) MP 1900+ Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apache2 apm arts audiofile avi berkdb bidi bzlib calendar canna cdr cjk crypt cscope cups curl dbm dga directfb divx4linux dvd dvdr encode esd ethereal evo fbcon flac flash flatfile foomaticdb freetds freewnn ftp gb gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 iconv icq imagemagick imap imlib innodb jabber java jikes jpeg junit kde kerberos ldap lesstif libg++ libwww mad maildir mbox mcal mhash mikmod mime ming mmap mmx motif mozilla mpeg msn mssql mysql mysqli ncurses nls odbc offensive oggvorbis opengl oss pam pcntl pcre pda pdflib perl php plotutils png posix postgres python qt quicktime readline samba sasl scanner sdl session shared simplexml slang snmp soap sockets spell ssl svg svga tcltk tcpd tetex tiff tokenizer truetype unicode usb vhosts wmf wxwindows x86 xine xinerama xml xml2 xmlrpc xmms xpm xsl xv xvid zlib"
Remarking that I get the same issue.
I have the same problem too on a clean installation. The question is: Does cups REALLY needs samba for the compilation without any lose of capabilities? I've compiled it without samba and it worked well with samba too after his emerge. For example the program "cupsaddsmb"was compiled without samba installed. I've digged in the configure script of cups and there's nothing related to samba that is searched, and at compilation time no sambalib or other is used. So I think that samba IS NOT a DEPEND but probably only an RDEPEND but until emerge doesn't manage it correctly (for example emerging it AFTER cups) it should be removed. An user that wants to use cups over samba know that samba is needed. The other little problem is that probably no one noticed this because "samba" isn't inserted in the IUSE o cups. I hope this will help and I'm just curious to know if you agree with my opinions.
indeed it should only be a RDEPEND, fixed.
*** Bug 66632 has been marked as a duplicate of this bug. ***
*** Bug 69746 has been marked as a duplicate of this bug. ***
This bug isn't fixed. I'm having the same problems. I've talked with vapier on #gentoo-dev and noticed that RDEPEND and DEPEND has the same weight. so it gives the same problems as before A working solution is to put "samba" in PDEPEND in the cups ebuild.
you are right, moved samba to PDEPEND.