Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343219 - net-im/minbif-1.0.3: Bad perms, misplaced enewuser/enewgroup ?
Summary: net-im/minbif-1.0.3: Bad perms, misplaced enewuser/enewgroup ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 07:44 UTC by Cyprien Nicolas (fulax)
Modified: 2012-07-24 17:43 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 Cyprien Nicolas (fulax) 2010-10-29 07:44:09 UTC
Salut Cedric,

I just emerged net-im/minbif-1.0.3, and saw the following failures during src_install:

...
chown: invalid user: `minbif:minbif'
fowners failed
>>> Completed installing minbif-1.0.3 into /var/tmp/portage/net-im/minbif-1.0.3/image/

Looking at the ebuild, the user and group are created in pkg_preinst. But pkg_preinst is ran after src_install, thus the fowners call fails.

Thus, after merge:

# ls -alH /var/lib/minbif
total 8.0K
drwxr-xr-x  2 minbif root 4.0K Oct 29 09:24 .
drwxr-xr-x 47 root   root 4.0K Oct 29 09:24 ..
-rw-r--r--  1 root   root    0 Oct 29 09:24 .keep_net-im_minbif-0

The group is not set, but worst, the perms are not 700 but 755 !?

Re-emerging the package didn't change anything, apart from removing the "invalid user" message.


Checking info in the devmanual [1] make me thinks that it is not correct; enewuser should be in pkg_setup if needed during src_compile OR src_install.

[1] http://devmanual.gentoo.org/ebuild-writing/users-and-groups/index.html
Comment 1 Pacho Ramos gentoo-dev 2012-07-24 17:43:59 UTC
+*minbif-1.0.5 (24 Jul 2012)
+
+  24 Jul 2012; Pacho Ramos <pacho@gentoo.org> +files/minbif-1.0.5-gcc47.patch,
+  +files/minbif-1.0.5-glib-single-includes.patch, +minbif-1.0.5.ebuild:
+  Version bump, also fix gcc-4.7 and glib-2.32 compilation, and create
+  user/group properly (#343219 by fulax).
+