[Ocfs2-users] 1.2.4 symbols

Randy Ramsdell rramsdell at livedatagroup.com
Mon Feb 12 13:41:13 PST 2007


Joel Becker wrote:
> On Fri, Feb 09, 2007 at 04:55:21PM -0500, Randy Ramsdell wrote:
>   
>> Ok.  But do different vendors or at least the top three define different
>> locations?
>>
>> Looking at the source from the ocfs2 package.
>>
>> I find:
>>
>> endor/rhel4/ocfs2.spec-generic:EXTRA_MODLIB="${RPM_BUILD_ROOT}/lib/modules/%{kver}/extra"
>> vendor/rhel4/ocfs2.spec-generic:EXTRA_MODLIB="${RPM_BUILD_ROOT}/lib/modules/%{kver}smp/extra"
>> vendor/rhel4/ocfs2.spec-generic:EXTRA_MODLIB="${RPM_BUILD_ROOT}/lib/modules/%{kver}hugemem/extra"
>> vendor/rhel4/ocfs2.spec-generic:EXTRA_MODLIB="${RPM_BUILD_ROOT}/lib/modules/%{kver}largesmp/extra"
>>
>> So this looks like it is defined in the ocfs2 source although the vendor
>> suppile modules are from a kernel compile as you say.
>>     
>
> 	Nononono.  This is me *catching up* to make modules_install.
> "make modules_install" doesn't use my EXTRA_MODLIB value.  This is my
> specfile storing off where we're going to copy modules from.  Then they
> copy them to the appropriate place in the vendor's tree.
> 	That is (all paths are the installed paths, not the packaging
> paths prefixed at RPM_BUILD_ROOT):
>
>     1) Actual module location is defined by vendor's kernel and is
> rooted at /lib/modules/$(uname -r)
>     2) Running "make modules_install" will put the modules at
> /lib/modules/$(uname -r)/extra.
>
>     3) I define EXTRA_MODLIB to point to this, so I can then...
>
>     4) Copy from /lib/modules/$(uname -r)/extra to
> /lib/modules/$(uname -r)/kernel/fs/ocfs2.
>
> 	It's a completely manual process that gets our modules to the
> kernel/fs/ocfs2 location in our RPMs.
> 	Why does SLES have them already in kernel/fs/ocfs2?  Because
> they are not building them externally.  They patch the kernel sources
> directly, and the kbuild infrastructure then treats them as "regular"
> modules, not "external" modules.
>
> Joel
>
>   

Very nice explanation which explains everything, thanks. Since this be
the case and assuming you want users to compile from scratch, would an
install howto be in order? I would write a simple howto.

Thanks,
Randy Ramsdell



More information about the Ocfs2-users mailing list