Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301270 - sys-devel/prelink: /etc/prelink.cache should be relocated to /var
Summary: sys-devel/prelink: /etc/prelink.cache should be relocated to /var
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 375833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-17 11:06 UTC by haarp
Modified: 2011-07-22 18:33 UTC (History)
2 users (show)

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 haarp 2010-01-17 11:06:45 UTC
In my opinion, it does more sense to keep the prelink cache in /var/lib instead of /etc, where it currently is. sys-apps/preload also keeps its cache in /var/lib.
Comment 1 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-01-17 11:57:19 UTC
perhaps /var/cache would be even better. its a cache, afterall....

however, it may live in /etc/ to guarantee is exsistance during boot. /var may be on a network file system...
reassigning to maintainer.
Comment 2 SpanKY gentoo-dev 2010-01-17 14:32:14 UTC
yes, that is exactly why it's in /etc and not /var ... same goes for /etc/ld.so.cache

all the other files used to calculate that are stored in /var already

you're certainly free to pass the --cache-file= to whatever file you want on your system and change the crontab script ... only piece missing is whether portage let's you pass custom options to its hooks
Comment 3 haarp 2010-01-17 14:40:13 UTC
Ok, thanks for the info. But in that case, the preload cache should also go into /etc to keep things consistent, shouldn't it?
Comment 4 SpanKY gentoo-dev 2010-01-17 15:06:28 UTC
i dont know what you're talking about.  prelink.cache already is in /etc/.
Comment 5 haarp 2010-01-17 15:07:58 UTC
Nope, I meant the preLOAD cache (sys-apps/preload), which currently resided in /var/lib
Comment 6 SpanKY gentoo-dev 2010-01-17 15:29:49 UTC
thanks for clarifying ... preload isnt really the same though.  its cache isnt used implicitly by the C library, it's used by a daemon.  in order for the daemon to be up and running, things like /var need to be mounted.

i'm just guessing though as we dont maintain that package
Comment 7 haarp 2010-01-28 12:56:22 UTC
Hmm. Is there a way to allow the user to choose the location of the caches? Maybe a config file?

While I agree that it makes sense to keep the cache in /etc, it is not the way the filesystem layout was meant to be. It may only be a minor issue, but kind of hurts the perfection :)
Comment 8 SpanKY gentoo-dev 2010-01-28 20:56:00 UTC
doesnt /etc/conf.d/prelink already support whatever options you want ?
Comment 9 haarp 2010-01-28 21:24:04 UTC
In theory it should. But the cron script doesn't seem to pay attention to that file, and prelink has no init script or something like that. The point of that config file eludes me.
Comment 10 haarp 2010-01-28 21:45:13 UTC
Ok, disregard my last comment. It actually works with the cron script. I just had to create the dir that contains the cache file. prelink won't do that itself.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2010-09-19 09:08:01 UTC
Closing then.
Comment 12 SpanKY gentoo-dev 2011-07-22 17:31:05 UTC
*** Bug 375833 has been marked as a duplicate of this bug. ***
Comment 13 Alexander Zubkov 2011-07-22 18:31:53 UTC
> doesnt /etc/conf.d/prelink already support whatever options you want ?
No, conf.d/prelink does not suppor "moving" of prelink.cahe, see changes needed in my patch here: https://bugs.gentoo.org/show_bug.cgi?id=375833

Also, I think that prelink info is saved in the binaries and prelink.cache is only needed to recalculate info during prelink run. So there is no need for it during boot. So why it is in /etc?
Comment 14 Alexander Zubkov 2011-07-22 18:33:08 UTC
I propose reopening of the bug.