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

Bug 105278

Summary: clamav-0.86.2.ebuild uses os specific command
Product: Gentoo Linux Reporter: Tobias Hahn <tobhahn>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 105281    

Description Tobias Hahn 2005-09-08 09:45:54 UTC
The clamav ebuild creates user and group clamav using enewuser/enewgroup. After
doing so, it calls 

pwconv || die

which IMHO is a Linux specific command converting from /etc/passwd to
/etc/shadow, i.e. not portable. Even under Linux it assumes everybody is using
shadow passwords. It breaks compilation on darwin/osx since darwin uses a
completely different user management (netinfo). If there is the need to do
something like pwconv, it should automatically be done by enewuser. User and
group creation should be done in a consistent manner across all ebuilds.

Most ebuilds that add new users seem to be able to do without pwconv. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-09-08 12:09:51 UTC
You're right, there's no need for pwconv. Removed in CVS, thanks.