Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190055 - app-admin/tenshi: chown fails in "fowners tenshi:root /var/lib/tenshi"
Summary: app-admin/tenshi: chown fails in "fowners tenshi:root /var/lib/tenshi"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Andrea Barisani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 15:24 UTC by Raphael Marichez (Falco) (RETIRED)
Modified: 2007-09-10 14:38 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 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-08-24 15:24:26 UTC
Hi,

during the install phase:

chown: cannot access `/var/tmp/portage/app-admin/tenshi-0.6/image//var/lib/tenshi': No such file or directory


because var/lib/tenshi/ doesn't exist yet at this moment. (perhaps call "keepdir" before "fowners"?). This affects at least tenshi-0.[678]

I guess user tenshi needs write access to be able to start.
Comment 1 Andrea Barisani (RETIRED) gentoo-dev 2007-08-24 16:13:05 UTC
Check the actual perms after installation, it's just a warning due to Makefile. The ebuild sets proper permission and everything works fine. Re-open if not the case. Cheers.
Comment 2 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-09-10 14:09:46 UTC
AFAICT it has nothing to do with any Makefile, but with the ebuild.

The creation of /var/lib/tenshi resides in pkg_setup() but *only* if the user "tenshi" does not exist.

The chown of /var/lib/tenshi resides in src_install(). Hence the warning if the tenshi user already exists.

The resulting image/ directory will have a "root:root" /var/lib/tenshi.

- emerge tenshi
- unmerge tenshi : the directory is deleted
- emerge tenshi again : it doesn't want to start



[sleipnir:~]1# /etc/init.d/tenshi start
 * Caching service dependencies ...[ ok ]
 * Service tenshi starting
 * Service sysklogd starting
 * Service sysklogd started
[ERROR] could not open pid file /var/lib/tenshi/tenshi.pid: Permission denied
 at /usr/sbin/tenshi line 720.                                                                                                           [ !! ]
 * ERROR:  tenshi failed to start
Comment 3 Andrea Barisani (RETIRED) gentoo-dev 2007-09-10 14:38:49 UTC
Right, I didn't unmerge completely but only updated. So I didn't reproduce the problem.

Anyway fix works for me in 0.8-r1.

Thanks