[gobolinux-devel] Re: Comments on Unmanaged and third party modules

Jonas Karlsson jonka750 at student.liu.se
Tue Aug 1 14:21:51 GMT 2006


2006/8/1, Hisham Muhammad <hisham.hm at gmail.com>:
> On 7/31/06, Jonas Karlsson <jonka750 at student.liu.se> wrote:
> > Experimenting a bit with Unmanaged together with trying out the idea of
> > making the kernel aware of third party modules.
> > First Unmanaged:
> > Why does the file Resources/UnmanagedFiles exist? Is there an idea that
> > the files should be removed when the program is removed/disabled?
> > Otherwise one could just copy from Resources/Unmanaged to / or am I
> > missing something? Maybe it is there for future uses?
>
> It exists for control by Compile. After building, Compile checks the
> leftovers in the sandbox and only accepts leftovers accepted in the
> UnmanagedFiles list. This way, we can control the build and not have
> accidental leftovers end up in the package.
>
Ok, that makes sense.

> > How about, if using UnionSandbox, mounting /System/Variable to
> > ${target}/Resources/Unmanaged/System/Variable?
>
> Listing the stuff you want to be in /S/V in the UnmanagedFiles file
> should get you the same result.
>
This was an idea since some programs want to install files into a /var
location. If I point it to R/Unmanaged (to have it create the files
correctly) the program might want to write to that directory while
running.
How would one configure a program so it writes to /S/Variable during
runtime, but the files get installed into R/Unmanaged?

> > About third party modules. When thinking about it, shouldn't
> > ${target}/Shared/Linux/ThirdPartyModules/${appname} be a better location
> > then ${target}/Shared/Compile/${appname}?
>
> Don't think so, because that would be a modules-specific path, and the
> approach I suggested hints at turning this into a more general
> "recompilation interdependency" mechanism. And the idea was, more
> precisely:
>
> ${target}/Shared/Compile/${parentapp}/${childapp}
>
> where $childapp is a file (e.g. Madwifi) and $parentapp is a directory
> (e.g. Linux) and that would mean: $childapp needs to be recompiled
> whenever $parentapp is. Actually, I think an additional directory
> would even be a good thing, too keep the Shared/Compile namespace
> clean for future additions:
>
> ${target}/Shared/Compile/Recompile/${parentapp}/${childapp}
>
I think you missed (or that I missed you post it) to include the
${parentapp} subdirectory, i.e. ${target}/Shared/Compile/${childapp}.
That's why I thought that I had a better solution. :)
I'm going to implement your last solution.

> > I'm also trying out installing the kernel module into Unmanaged. Is the
> > UnmanagedFiles file automatically generated or do I have to create it
> > manually?
>
> One thought: you probably won't want to write the kernel version
> explitictly in the UnmanagedFiles entries. One way to solve this would
> be to use paths like:
> /System/Kernel/Modules/Current/...
> but then it's a good thing to make sure /S/K/M/Current is sane. We can
> tweak Compile to ensure this link is correct before handling unmanaged
> files.
>
Roger!

-- 
/Jonas


More information about the gobolinux-devel mailing list