Re: [cciug] Derived object and version at the same time

From: A Better Solution, Inc. (cciug@abs-consulting.com)
Date: Mon Jan 03 2000 - 00:56:53 EST


Dan,

There are probably several opinions on this, many can be site specific....
I'll give my general opinion on this, but it might not apply there.. here goes:

Have a compile directory say /vobs/project/src" where foo.c and maybe foo.h
reside...
Have a well known directory of "good objects" at say "/vobs/project/lib" or
"/vobs/project/objects"...

Compile (hopefully with clearmake) in to the src directory where
*.o (*.out) are derived objects but are NOT elements...
this allows compiles without performing any checkouts. Developers can
compile freely without disturbing others as this would be a view private
area (for the objects that is..)..

When objects are "worthy" of a checkin in perform the of the object to the
archive area like so
from /vobs/project/objects:

cleartool ci -nc -from /vobs/project/src/foo.o foo.o

  (or is it "to".... I'm writing from a hotel again...)

The only trick is to make sure that your link path in your makefiles looks
in /vobs/project/src before /vobs/project/objects...
NOW you get your view private objects first.. (what you want) otherwise you
get the well know stuff...(most likely - hopefully - the result of a night
build)...

Even if you can't make this adjustment in the makefile... you can still use
the benifits of a nightly build to bring compile times down.. still avoid
having to perform massive checkouts to build... and can still minimize the
checkin of binaries to only those that are deemed "worthy"

Hope this helps
  -Charles

--- VOB Corleone
       "One day.. and this day may never come... I might ask you for a favor.."

           A Better Solution, Inc.
----------------------------------------------------
Charles Clarke III ClearCase Consultant
A Better Solution, Inc. (770) 252-1500 x22 [phone]
50 Springridge Ct.
Newnan, Ga. 30265 (770) 252-1501 [fax]
                                                 Email:
charles@abs-consulting.com
                                                 http://www.abs-consulting.com

At 06:29 AM 1/4/00 +0200, you wrote:

>Hi,
>
>I am moving a project to ClearCase environment and I came to the following
>problem:
>We defined executables (.out) as versioned elements and create them whithin
>clearmake as derived objects.
>
>My problem is that executable files as versions are read only. I have two
>possibilities:
>1) Check out the executable, compile +ACY- link, Checkin
>or
>2) Check out the executable, compile+ACY- link, Checkin, Change protection to
>include write permissions for group
>
>Second scenario seems better because it allows winkin.
>
>I am not sure what is the recommended way to work with entities that are
>elements and derived objects at the same time.
>Any ideas ?
>
>Thanks,
>Dan Lupu
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

--- VOB Corleone
       "One day.. and this day may never come... I might ask you for a favor.."

           A Better Solution, Inc.
----------------------------------------------------
Charles Clarke III ClearCase Consultant
A Better Solution, Inc. (770) 252-1500 x22 [phone]
50 Springridge Ct.
Newnan, Ga. 30265 (770) 252-1501 [fax]
                                                 Email:
charles@abs-consulting.com
                                                 http://www.abs-consulting.com

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:16 EDT