[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

1814.0. "submitting links to a pool??" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Thu Sep 14 1995 14:42

Date Of Receipt: 	14-SEP-1995 13:39:33.41
From: 	SMURF::ALPHA::"[email protected]" "14-Sep-1995 1037"
To: 	[email protected]
CC: 	[email protected], [email protected], [email protected]
Subj: 	submitting links to a pool??

Hi Chuck,

I may have asked you this before, but here goes...

In the qaqc pool, there's a situation where we want to make a certain
subtree of the pool sortof autonomous with respect to the rest.  That is,
this subtree contains everything that it needs to run its own tests.

However, elsewhere in the pool (outside this subtree) there are tools
which we wish to incorporate in the subtree.  So, we were hoping that
rather than copy (and maintain) the tools, we could somehow submit a
symbolic link to the pool.  Is there a way to submit such a link to
the pool?

Make sense?

Thanks,
--steve


T.RTitleUserPersonal
Name
DateLines
1814.1Re: submitting links to a pool??AOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Sep 14 1995 17:5412
Date Of Receipt: 	14-SEP-1995 16:05:19.13
From: 	SMURF::FLUME::jmcg "Jim McGinness"
To: 	[email protected]
CC: 	odehelp@DEC:.zko.flume
Subj: 	Re:  submitting links to a pool??

Won't VPATH do what you need?  There are some assumptions that have
been built up about ODE trees that would be broken if the source
tree itself contained links.

 -- jmcg

1814.2Re: submitting links to a pool??AOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Sep 14 1995 18:5856
Date Of Receipt: 	14-SEP-1995 17:37:13.47
From: 	SMURF::FLUME::jmf "Joshua M. Friedman OSF/UNIX SDE  14-Sep-1995 1735"
To: 	[email protected]
CC: 	[email protected], [email protected], [email protected]
Subj: 	Re: submitting links to a pool??

Steve, I agree with Jim; VPATH is definitely the appropriate mechanism
to accomplish what you want.  At the top of each make file that need to
access "linked" sources, just put a directive like this; here I've shown
how to have more than one alternate directory for make to look in:
          
          VPATH    =     ${MAKETOP}/path/a:${MAKETOP}/path/b:../path/c

where path/a and path/b are relative to src (MAKETOP is the directory
which contains the Makeconf file, and gets automatically defined by make),
and path/c is "dot-relative" to the current directory.

-josh

------
Date: Thu, 14 Sep 1995 16:03:44 -0400
From: Jim McGinness <jmcg>
To: [email protected]
Subject: Re:  submitting links to a pool??
Cc: odehelp

Won't VPATH do what you need?  There are some assumptions that have
been built up about ODE trees that would be broken if the source
tree itself contained links.

 -- jmcg
------

> 
> Hi Chuck,
> 
> I may have asked you this before, but here goes...
> 
> In the qaqc pool, there's a situation where we want to make a certain
> subtree of the pool sortof autonomous with respect to the rest.  That is,
> this subtree contains everything that it needs to run its own tests.
> 
> However, elsewhere in the pool (outside this subtree) there are tools
> which we wish to incorporate in the subtree.  So, we were hoping that
> rather than copy (and maintain) the tools, we could somehow submit a
> symbolic link to the pool.  Is there a way to submit such a link to
> the pool?
> 
> Make sense?
> 
> Thanks,
> --steve
> 



1814.3Re: submitting links to a pool??AOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Sep 14 1995 20:0237
Date Of Receipt: 	14-SEP-1995 18:01:32.81
From: 	SMURF::ALPHA::"[email protected]" "14-Sep-1995 1459"
To: 	"Joshua M. Friedman, OSF/UNIX SDE 381-1548" <[email protected]>
CC: 	[email protected], [email protected], [email protected]
Subj: 	Re: submitting links to a pool??

Hi Josh,

I don't think that this will do exactly what we want because we're supposedly
going to donate the contents of this tree to the CDE partners.  When we copy
or tar up the tree, the VPATH would, in this case, reference nonexistent
files.

With a symbolic link, we can cause cp or tar to get the referenced file
instead of the link.  This is the kind of behavior that we want.

So, we effectively want to have a way to generate "snapshots" of this
subtree such that there will be no unfulfilled references.

If there's no other facility for this kind of thing, I reckon we'll have
to bite the bullet and manually sync the two files.

Thanks much,
--steve

) Steve, I agree with Jim; VPATH is definitely the appropriate mechanism
) to accomplish what you want.  At the top of each make file that need to
) access "linked" sources, just put a directive like this; here I've shown
) how to have more than one alternate directory for make to look in:
)           
)           VPATH    =     ${MAKETOP}/path/a:${MAKETOP}/path/b:../path/c
) 
) where path/a and path/b are relative to src (MAKETOP is the directory
) which contains the Makeconf file, and gets automatically defined by make),
) and path/c is "dot-relative" to the current directory.
) 

1814.4Re: submitting links to a pool??AOSG::FILTERAutomatic Posting Software - mail to flume::puckThu Sep 14 1995 21:0350
Date Of Receipt: 	14-SEP-1995 19:32:17.04
From: 	SMURF::FLUME::jmf "Joshua M. Friedman OSF/UNIX SDE  14-Sep-1995 1930"
To: 	[email protected]
CC: 	[email protected], [email protected], [email protected]
Subj: 	Re: submitting links to a pool??

Steve, another way to accomplish what you want is that the sources live
in one place, and any other place that needs that source, instead of
using the VPATH directive in the Makefile, can tar-copy the sources
or make symlinks during the build process.  These would not be part of
the submit pool, but would appear in the build tree, and would, I
believe, accomplish what you want, without compromising the integrity
of the ODE source control model.

-josh

> 
> Hi Josh,
> 
> I don't think that this will do exactly what we want because we're supposedly
> going to donate the contents of this tree to the CDE partners.  When we copy
> or tar up the tree, the VPATH would, in this case, reference nonexistent
> files.
> 
> With a symbolic link, we can cause cp or tar to get the referenced file
> instead of the link.  This is the kind of behavior that we want.
> 
> So, we effectively want to have a way to generate "snapshots" of this
> subtree such that there will be no unfulfilled references.
> 
> If there's no other facility for this kind of thing, I reckon we'll have
> to bite the bullet and manually sync the two files.
> 
> Thanks much,
> --steve
> 
> ) Steve, I agree with Jim; VPATH is definitely the appropriate mechanism
> ) to accomplish what you want.  At the top of each make file that need to
> ) access "linked" sources, just put a directive like this; here I've shown
> ) how to have more than one alternate directory for make to look in:
> )           
> )           VPATH    =     ${MAKETOP}/path/a:${MAKETOP}/path/b:../path/c
> ) 
> ) where path/a and path/b are relative to src (MAKETOP is the directory
> ) which contains the Makeconf file, and gets automatically defined by make),
> ) and path/c is "dot-relative" to the current directory.
> )