<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>97796</bug_id>
          
          <creation_ts>2005-07-03 02:40 0000</creation_ts>
          <short_desc>moduledb of module-rebuild should be in /var/lib instead of /usr/share</short_desc>
          <delta_ts>2005-07-05 06:42:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>betelgeuse@gentoo.org</reporter>
          <assigned_to>johnm@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-07-03 02:40:09 0000</bug_when>
            <thetext>R_MODULES=&quot;${ROOT}/usr/share/module-rebuild/moduledb&quot;

/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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-07-03 02:42:47 0000</bug_when>
            <thetext>/usr/share:
http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREARCHITECTUREINDEPENDENTDATA
/var/lib:
http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLIBVARIABLESTATEINFORMATION</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>johnm@gentoo.org</who>
            <bug_when>2005-07-05 03:17:05 0000</bug_when>
            <thetext>that is of course assuming we follow the FHS. Which (strictly speaking) we dont.
Will look at this sometime.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-07-05 03:27:40 0000</bug_when>
            <thetext>We don&apos;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).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-07-05 03:30:11 0000</bug_when>
            <thetext>I can make patches for this, if you are not interested.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>johnm@gentoo.org</who>
            <bug_when>2005-07-05 04:27:29 0000</bug_when>
            <thetext>fixed in cvs. please try 0.5 shortly.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2005-07-05 05:41:15 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>johnm@gentoo.org</who>
            <bug_when>2005-07-05 06:42:26 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>