Summary: | app-portage/gentoolkit improvement for revdep-rebuild | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
Status: | IN_PROGRESS --- | ||
Severity: | minor | CC: | barzog, dschridde+gentoobugs |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=382009 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to use /tmp if /var/cache dir is gone |
Description
Agostino Sarubbo
2011-03-09 14:20:36 UTC
Created attachment 271029 [details, diff]
Patch to use /tmp if /var/cache dir is gone
Patch to fix -- will default to /tmp if the /var/cache/revdep-rebuild dir is deleted for some reason.
Patched version of revdep-rebuild now available in my overlay. jamesbroadhead.googlecode.com/hg/portage-overlay any progress here? Paul, I found this in the python version of revdep. It just errors if the cache dir doesn't exist. in cache.py's save_cache(): # TODO: Don't blindly make the cache directory, see Bug 203414 # if not os.path.exists(temp_path): # os.makedirs(temp_path) So, what specifically do we need to do if anything. For the python version, it is not a fatal error, it just does not save the information. What we need to do is the following: 1. Verify that /var/cache is not a symlink (if it is, we error and point to instructions on how to bind mount: http://dev.gentoo.org/~fuzzyray/revdep-rebuild-symlink.txt) 2. If is not a symlink, we can create it and make sure that is is owned by root with read/write/execute (0700) permissions only. current code does a makedirs if it doesn't exist. Will see about checking symlink condition |