Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134106 - enhancement proposal for vixie-cron, to deal with 'emerge' command
Summary: enhancement proposal for vixie-cron, to deal with 'emerge' command
Status: RESOLVED DUPLICATE of bug 53934
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Cron Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-23 06:37 UTC by Hubert Mercier (RETIRED)
Modified: 2007-09-13 20:01 UTC (History)
1 user (show)

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 Hubert Mercier (RETIRED) gentoo-dev 2006-05-23 06:37:20 UTC
Hi !

I just had a little trouble the last days, while trying to install a new server. Used to dcron, I decided to use vixie-cron, which seemed to be a more complete implementation of the cron daemon.

I just emerged vixie-cron, without any problem. Launched it too, no problem. And then, I imported my template crontab, used for ages with dcron, without any problem. One of the lines in this crontab looks like :

00 05 * * * emerge --sync

Classical... But : no way to make it work with vixie-cron. No error in logs, nothing ! I searched for a quite (very) long time, but finished to understand what was happening : PATH was fixed, in the beginning of the crontab, to :

PATH=/bin:/usr/bin:/sbin:/usr/sbin

But, /usr/bin/emerge is just a symbolic link to /usr/lib/portage/bin/emerge ! And, therefore, vixie-cron refuses to run the script, where dcron just does it fine ! To correct this behaviour, I had to modify the PATH line as follows :

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/lib/portage/bin/

And, at least, this worked !

This is not really a bug, but this made me waste a lot of time. Since I don't know how the devs usually deal with such "problems", I didn't modify anything. But maybe just a line added to pkg_postinst could help users with this package ? Or, even better, a commented line in the system crontab : /etc/crontab ?
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-13 20:01:55 UTC

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