Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57867 - Patch: Adds commandline option --cache-dir to let the user choose a different cache location
Summary: Patch: Adds commandline option --cache-dir to let the user choose a different...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-07-21 08:56 UTC by Martin Parm
Modified: 2004-08-23 04:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds --cache-dir= (genkernel-cachedir.patch,5.70 KB, patch)
2004-07-21 08:57 UTC, Martin Parm
Details | Diff
Adds --cache-dir= (genkernel-cachedir.patch,6.51 KB, patch)
2004-07-21 15:19 UTC, Martin Parm
Details | Diff
Adds --cache-dir= (genkernel-cachedir.patch,6.25 KB, patch)
2004-08-07 15:05 UTC, Martin Parm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Parm 2004-07-21 08:56:56 UTC
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.
Comment 1 Martin Parm 2004-07-21 08:57:32 UTC
Created attachment 35888 [details, diff]
Adds --cache-dir=

This patch was made on genkernel-3.0.2c
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-07-21 11:48:33 UTC
Hrm; looking at the patch you've added it seems you've missed a hunk to define cache_replace.
Comment 3 Martin Parm 2004-07-21 15:18:06 UTC
Ups, sorry about that. I guess I was a little to quick with that one ;-)
Comment 4 Martin Parm 2004-07-21 15:19:02 UTC
Created attachment 35922 [details, diff]
Adds --cache-dir=

This patch was made with genkernel-3.0.2c
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-07-29 13:52:13 UTC
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 '/'.
Comment 6 Martin Parm 2004-08-07 15:05:54 UTC
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.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-08-23 04:53:38 UTC
Patch in 3.0.2f; please reopen this bug if you have any problems with it. Thanks!