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

Bug 149904

Summary: net-p2p/amule ebuild should not create /home/p2p
Product: Gentoo Linux Reporter: Roman Polach <rpolach>
Component: New packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED DUPLICATE    
Severity: trivial    
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Roman Polach 2006-10-02 16:34:31 UTC
net-p2p/amule (and e.g. net-p2p/mldonkey) ebuild
in pkg_preinst() enewuser creates new user with /home/p2p home dir.
This is confusing to have /home/p2p as only "special user" home
along with regular user homes in /home/*.
Most other packages creates home directory in /var/* (like net-p2p/freenet),
so I think net-p2p/amule and net-p2p/mldonkey should do so too.
Comment 1 Arthur Hagen 2006-10-10 17:02:11 UTC
(In reply to comment #0)
> net-p2p/amule (and e.g. net-p2p/mldonkey) ebuild
> in pkg_preinst() enewuser creates new user with /home/p2p home dir.

I can not confirm this behaviour.  What's the version of amule in question, and what's your USE flags for amule (e.g. "equery uses amule")?

If it did that, it would be bad for other reasons, like the common situation of /home being an NFS automount, in which case root would not be able to create new directories there.
Comment 2 Roman Polach 2006-10-11 00:55:47 UTC
my USE flags are "amuled" on one machine and "remote" on another...
I use amule-2.1.3...
this piece of code is from amule-2.1.3 ebuild, it shows enewuser command
causing the problem clearly:

pkg_preinst() {
	if use amuled || use remote; then
		enewgroup p2p
		enewuser p2p -1 -1 /home/p2p p2p
	fi
}

in 2.1.2 there is similar code with only formatting difference:

pkg_preinst() {
	if use amuled || use remote; then
	    enewgroup p2p
	enewuser p2p -1 -1 /home/p2p p2p
	fi
}
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-01-02 07:41:47 UTC

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