Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124647 - net-dns/bind does not add named:named when installing binary package
Summary: net-dns/bind does not add named:named when installing binary package
Status: RESOLVED DUPLICATE of bug 124680
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 07:49 UTC by Mike Green
Modified: 2006-03-25 13:57 UTC (History)
0 users

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 Mike Green 2006-03-02 07:49:16 UTC
The ebuild for bind-9.3.2 uses enewuser/enewgroup during src_install(), which does not run when installing from a binary package.  As a result the named user/group is not created.  

Additionally, when installing it from a binary package it errors during the chown commands in pkg_config() but does not die from the error, the installer is left believing that the package is installed correctly if they do not notice the errors during emerging.  This might cause security concerns in some environments.

The enewgroup/enewuser commands should probably be moved to a function that is run during binary package installs also, such as pkg_setup().
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 07:54:31 UTC
(In reply to comment #0)
> The enewgroup/enewuser commands should probably be moved to a function that is
> run during binary package installs also, such as pkg_setup().

Nah, this belongs to pkg_preinst() 

Comment 2 Mike Green 2006-03-02 10:05:03 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > The enewgroup/enewuser commands should probably be moved to a function that is
> > run during binary package installs also, such as pkg_setup().
> 
> Nah, this belongs to pkg_preinst() 
> 

In this case pkg_preinst() would work, since there are no dependencies on the user/group already existing before src_install().

However, there are ebuilds that perform the various chown/fowners functions in src_install().  Some of them don't bother to check if the user/group already exists or not during src_install() (mail-filter/p2scan, mail-filter/postgrey, for examples).  Adding them in pkg_setup() would cover both situations, would it not?

Why encourage shoddy coding?
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-03-25 13:57:53 UTC

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