Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327741 - app-portage/gentoolkit-0.3.0_rc10-r1: running eclean in cron is not reliable
Summary: app-portage/gentoolkit-0.3.0_rc10-r1: running eclean in cron is not reliable
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-11 02:33 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2011-12-02 05:10 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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-11 02:33:04 UTC
The default PATH inside a cron "shell" is: "/usr/bin:/bin" but emaint is /usr/sbin/emaint so you get this message that "emaint: command not found"

The flaw is in pkgindex.py because it just calls "emaint --fix binhost" and relies on the PATH. As a general caution, please don't hardcode it such that it breaks in Gentoo Prefix. :)

Thanks.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2010-07-15 05:01:00 UTC
Fixed in genscripts.


brian@big_daddy ~/Dev/genscripts/gentoolkit $ svn commit pym/gentoolkit/eclean/pkgindex.py
Authentication realm: <https://genscripts.googlecode.com:443> Google Code Subversion Repository
Password for 'brian.dolbec': 
Sending        pym/gentoolkit/eclean/pkgindex.py
Transmitting file data .
Committed revision 445.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2011-12-02 05:10:10 UTC
closing.  Has been fixed and released in the final -0.3.0 releases.