I noticed that if i remove (or is not present) /var/cache/revdep-rebuild when i launch revdep-rebuild it fails. Example: devil ago # rm -fr /var/cache/revdep-rebuild/ devil ago # revdep-rebuild * Configuring search environment for revdep-rebuild * Unable to find a satisfactory location for temporary files (/var/cache/revdep-rebuild) Is a good idea edit revdep-rebuild and add a "check phase" of that dir and create a if it is not present?
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