On Fri, 6 Jul 2001, David Grierson wrote:
> [...] you could do something similar with the automount maps under
> most Unices. However I don't think that's what's being discussed here. What
> was being asked was "is there some way of having (e.g.) $ARCH in a config
> spec and ClearCase just handles what is going on? Especially for binaries
> which are stored in ClearCase."
>
> I'm afraid that I have to agree with Christian & Brandon on this one. This
> is one for the build system [...]
Hey! I didn't even say anything :):)
If anything, I'd rather take the other view. I did something similar to
what Peter Mueller described: I set up a "/local" partition which gets
mounted everywhere. Underneath I had /local/$ARCH and /local/common, and I
had a nightly crontab script that would compare the contents of
/local/$ARCH and centralize identical components into /local/common,
putting appropriate symlinks into /local/$ARCH. /usr/local (a machine
specific location) is a symlink pointing to /local/$ARCH.
Doing this has the advantage of needing to configure stuff only once,
especially emacs elisp stuff, pinerc's, perl modules and similar crap.
In a similar fashion, I never installed things directly into /usr/local,
but instead installed them into package and version specific subdirs, ala
/usr/local/pkg/$package. The policy was that build and configuration
scripts must use the package and version specific path, but for the
convenience of interactive shell users, I had symlinks pointing to
selected (current) versions from /usr/local/{bin,lib,man,...} to the
package specific dirs of the same name. Again, this was maintained by
scripts.
It did occur to me that one could use clearcase, but in the end I decided
against it because:
1) I didn't want to become _that_ dependent on ClearCase
2) The setup is fragile
3) MVFS is just too slow.
The absence of a $ARCH variable in config specs isn't really a problem, as
you could use the same "trick" as above: simply have /usr/local be a
symlink to /view/local_$ARCH/vob/local where local_$ARCH is a view that
selects $ARCH's branch first, then a common branch....
-- cg- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 22:03:51 EDT