This patch adds commandline option --cache-dir to let the user choose a different cache location. This gives the user greater flexibility. Possible situation that might want this patch : 1) Thu user wants to forcefully rebuild everything 2) /usr/share/genkernel might be read-only (e.g. on a diskless system) 3) The user want to switch between different versions of busybox, dietlib, etc. cached at different locations Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 35888 [details, diff] Adds --cache-dir= This patch was made on genkernel-3.0.2c
Hrm; looking at the patch you've added it seems you've missed a hunk to define cache_replace.
Ups, sorry about that. I guess I was a little to quick with that one ;-)
Created attachment 35922 [details, diff] Adds --cache-dir= This patch was made with genkernel-3.0.2c
I replaced --cache-dir with --cachedir since there's already --kerneldir=... and --tempdir=... Sidenote: Sed accepts other delimeters such as ':' so you can do 's:/path/:path:' without needing to escape '/'.
Created attachment 36982 [details, diff] Adds --cache-dir= Updated patch that works with genkernel-3.0.2e This patch also removes the debugline in cache_replace I forgot in the last patch and it supports udev that was added in genkernel-3.0.2e.
Patch in 3.0.2f; please reopen this bug if you have any problems with it. Thanks!