Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81387 - Samba's ebuild should list xinetd as a dependancy
Summary: Samba's ebuild should list xinetd as a dependancy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-09 10:03 UTC by Peter Hyman
Modified: 2005-10-14 06:36 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 Peter Hyman 2005-02-09 10:03:13 UTC
When users try and configure swat to run, a "connection refused" at localhost:901 error is persistent! In order to run swat, the xinetd module must also be installed. This should be a RDEPEND in the ebuild IMHO

Reproducible: Always
Steps to Reproduce:
1. emerge samba
2. change DISABLED = YES to NO in /etc/xinet.d/swat
3. try http://localhost:901

Actual Results:  
Browser reports "Connection Refused at localhost:901" or similar

Expected Results:  
Swat configuration utility is available

After emerging xinetd, the user must do

rc-update add xinetd default

emerging xinetd resolves the problem! So, even though swat is installed but
disabled by default, xinetd should be installed with it!
Comment 1 Chris Smith 2005-02-16 14:10:02 UTC
Swat isn't a necessary part of samba; the smb.conf can be edited with any text editor or via the IDEALX Management Console.
Maybe a "swat" use flag should be considered but I disagree with adding xinetd as a dependency for a default installation.
Comment 2 Peter Hyman 2005-02-16 14:24:11 UTC
Perhaps so, but swat IS delivered with Samba. And, if the user tries to get it working, it cannot work without the xinet dependency being resolved. To a newbie or uninitiated, this can cause some frustration. If you don't want to add the dependency, at least add an einfo message at the end of samba's install saying that to use swat, be sure xinetd is installed. JM2C
Comment 3 Michael Glauche (RETIRED) gentoo-dev 2005-03-03 02:38:40 UTC
how about a local use flag for samba ? if use "swat" -> then inlude xinetd in the RDEPEND ? Unfortunately there is no configure option in samba to disable swat completely ...
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2005-08-03 06:24:54 UTC
not sure yet how to handle this bug. I don't like forcing the xinetd dependency
though.
Comment 5 Jesse Adelman 2005-08-07 20:25:33 UTC
While indeed SWAT is often referenced in the samba docs to use for configuring
samba, it is an optional component and not required for full samba configuration
and functionality. I'm not against an optional SWAT USE flag which may force an
xinetd install, or a Portage magic "no xinetd just for SWAT" workaround, but I
don't use xinetd on my systems and would love to not have to surgically remove
the xinetd RDEPEND for every future bump. Thank you.
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2005-08-08 01:07:22 UTC
I vote for either
1) RTFM: leaving the ebuilds as they are
2) swat use flag: this is a bit tricky, since swat is mixed with docs. If one
uses '+swat -docs', care should be put in pkg_install to not remove swat
functionality while removing docs (so this is, maybe, the rise of new bugs(tm)
:-) ).
Comment 7 Wolf Giesen (RETIRED) gentoo-dev 2005-09-13 03:20:55 UTC
Yes, please do not make samba depend on (x)inetd. That's bloat. Christian's
suggestion is good, I think. Or maybe force "doc" on the user if he uses "swat" ;-)

Actually I'd think it would be sufficient to ewarn the user that in case he
wants tu use swat he should now emerge (x)inetd ...
Comment 8 Christian Andreetta (RETIRED) gentoo-dev 2005-10-14 06:36:13 UTC
samba-3.0.20b has 'swat' USE flag, which forces xinetd dependecy. Please reopen
if needed