[gobolinux-users] Re: Problem with CUPS recipe/package
ccalica at gmail.com
Tue Aug 16 03:06:19 GMT 2005
On 8/15/05, Hisham Muhammad <hisham.hm at gmail.com> wrote:
> We're doing it this crazy way so that the actual var-files will be
> under /System/Variable. Reasons: so that can be potentially a separate
> partition and to allow sharing.
> I see at least two problems with our current approach:
> - If /Programs/App/Variable already exists during a compilation,
> previously existing contents will get mixed with new files.
> - Sharing won't work 100% if some prefixes use /Programs/App/Variable
> and that does not expose a full view of /System/Variable.
> Here's my not-fully-thought-out proposal:
> - Programs install to /Programs/App/1.0/Variable.
> - Var-files are copied to /Programs/App/1.0/Resources/Defaults/Variable.
> - Var-files are copied to /System/Variable (with some sensible
> behavior regarding overwriting)
> - /Programs/App/1.0/Variable is removed, and becomes a symlink to
** one correction. It is /Programs/App/Variable. No version.
I like it, mostly. First off, deploying files into Variable. We some
support with Recipe Resources/Defaults/Variable but I don't think its
implemented right. Is that the right mechanism? If so lets discuss
how it should work.
Second, is sharing in Variable really needed though? If it isn't, I'd
prefer Variable be symlinks to /S/Variable based on Defaults/Variable.
This keeps /P/App/Variable less cluttered and easier to navigate.
Conversely, at best /P/App/Variable will never be perfect so sharing
is much simplier.
- Programs install to /Programs/App/Variable.
- Var-files are copied to /Programs/App/1.0/Resources/Defaults/Variable.
- Copy Recipes's Resources/Defaults/Variable (all of Defaults?) over
- /P/App/Variable cleared
- Recurse /Programs/App/1.0/Resources/Defaults/Variable
- Var-files are copied to /System/Variable (with some sensible
behavior regarding overwriting)
- symlink /P/App/Variable to file in /System/Variable
This keeps the program specific Variable less cluttered.
> - Simpler semantics, like a simplified Share.
> - /System/Variable can still be a separate partition
> - No package management for files under /System/Variable. I really
> don't think it is necessary, because those files are site-specific (a
> bit like tmp-files, they're "local state" files). We should be able to
> deploy var-files, but I don't think we need to manage them the same
> way we do for executables, libraries, headers, etc.
Carlo J. Calica
More information about the gobolinux-users