Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62560 - Cyclical dependency between samba and cups
Summary: Cyclical dependency between samba and cups
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 66632 69746 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-01 15:18 UTC by Jan Van Uytven
Modified: 2004-11-12 04:00 UTC (History)
5 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 Jan Van Uytven 2004-09-01 15:18:33 UTC
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"
Comment 1 David Klempner 2004-09-03 21:23:51 UTC
Remarking that I get the same issue.
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2004-09-14 10:41:00 UTC
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.
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2004-09-22 06:09:06 UTC
indeed it should only be a RDEPEND, fixed.
Comment 4 Christian Andreetta (RETIRED) gentoo-dev 2004-10-08 05:38:41 UTC
*** Bug 66632 has been marked as a duplicate of this bug. ***
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2004-11-02 06:20:50 UTC
*** Bug 69746 has been marked as a duplicate of this bug. ***
Comment 6 Simone Gotti (RETIRED) gentoo-dev 2004-11-05 10:55:01 UTC
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.

Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2004-11-12 04:00:44 UTC
you are right, moved samba to PDEPEND.