Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97796 - moduledb of module-rebuild should be in /var/lib instead of /usr/share
Summary: moduledb of module-rebuild should be in /var/lib instead of /usr/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-03 02:40 UTC by Petteri Räty (RETIRED)
Modified: 2005-07-05 06:42 UTC (History)
0 users

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 Petteri Räty (RETIRED) gentoo-dev 2005-07-03 02:40:09 UTC
R_MODULES="${ROOT}/usr/share/module-rebuild/moduledb"

/usr/share is only for static data. /var/lib should be used for changing data. If I wanted, I should be able to mount /usr read-only.
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2005-07-05 03:17:05 UTC
that is of course assuming we follow the FHS. Which (strictly speaking) we dont.
Will look at this sometime.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-07-05 03:27:40 UTC
We don't strictly follow FHS, but I think this thing is followed also on Gentoo.
There is a question about this in the end of mentoring quiz (12).
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2005-07-05 03:30:11 UTC
I can make patches for this, if you are not interested.
Comment 5 John Mylchreest (RETIRED) gentoo-dev 2005-07-05 04:27:29 UTC
fixed in cvs. please try 0.5 shortly.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2005-07-05 05:41:15 UTC
I think you should have moved the moduledb from /usr/share to /var/lib in the
ebuild. Now everyone has to repopulate their moduledb and the old moduledb is
left as a cruft to the system.
Comment 7 John Mylchreest (RETIRED) gentoo-dev 2005-07-05 06:42:26 UTC
I considered doing that actually, but decided to make a clean break away from it.
There are two parts to this. the eclass linux-mod and the module-rebuild script.
in this case, the eclass handles what should be done re: the moduledb database.

if module-rebuild hasnt already repopulated then it moves the old database to
the new location. when this goes stable, it would be prefered that we
re-populate than to move the original one.

in any case, it removes the old cruft.