[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

2734.0. "Multiple backing trees" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Tue Dec 17 1996 22:54

Date Of Receipt: 	17-DEC-1996 19:44:49.01
From: 	US2RMC::"jmw@zk3.dec.com"
To: 	odehelp@zk3.dec.com
CC: 	jmw@zk3.dec.com
Subj: 	Multiple backing trees

Howdy,

I did an ODE command:

	% bsh ls

and got back:

	Multiple backing trees:

	1) /usr/sde/osf1/build/cfe/src/kernel/bsd
	2) /usr/sde/osf1/build/ptaos.bl4/src/kernel/bsd
	Select backing directory:  

where (presumably) I'm supposed to reply either "1" or "2".

My question is: If I change directories to the tree that I used to
back my sandbox and then "cd" to the equivalent sub-directory, I don't
see anything that indicates that multiple backing trees are being used.
I then guessed that I might find something interesting if I looked at
the common directory hierarchy (/usr/sde/osf1/build) -- i.e. prior to
the divergence down the "cfe" or "ptaos.bl4" branch -- that might
indicate two backing trees, but I didn't see anything there either.

How can one tell, for a given directory in one's sandbox, how many
backing trees it has ?  Thanks.

-- Jonathan Wistar (DTN 381-6418)

% Received: 	from omailhub1.zk3.dec.com by us2rmc.zko.dec.com (5.65/rmc-22feb94) id AA17185; Tue, 17 Dec 96 16:14:18 -0500
	from joisey.zk3.dec.com by hunch.zk3.dec.com; (5.65v3.2/1.1.8.2/11Mar96-0342PM) id AA30344; Tue, 17 Dec 1996 16:10:47 -0500
	from localhost by joisey.zk3.dec.com (5.65v3.2/1.1.10.5/31May96-0558PM) id AA17574; Tue, 17 Dec 1996 16:10:11 -0500
% Message-Id: 	<9612172110.AA17574@joisey.zk3.dec.com>
% To: 	odehelp@zk3.dec.com
% Cc: 	jmw@zk3.dec.com
% Subject: 	Multiple backing trees
% Date: 	Tue, 17 Dec 96 16:10:10 -0500
% From: 	jmw@zk3.dec.com
% X-Mts: 	smtp
T.RTitleUserPersonal
Name
DateLines
2734.1Re: Multiple backing treesAOSG::FILTERAutomatic Posting Software - mail to flume::puckWed Dec 18 1996 14:5978
Date Of Receipt: 	18-DEC-1996 11:33:42.60
From: 	FLUME::jmf "Joshua M. Friedman Digital UNIX"
To: 	jmw@DEC:.zko.flume
CC: 	odehelp@DEC:.zko.flume
Subj: 	Re:  Multiple backing trees

Jonathan,

The environment variable used by 'make' (called by 'build') and the
other ode commands, including 'bsh', is:

	SOURCEDIR

From within your workon environment, use either
	sbinfo SOURCEDIR
    or 
	echo $SOURCEDIR
and you'll see this value.  It is a PATH type of variable, listing the
1 or more backingtrees in use.

'make' will always look first in your current directory, and then in
that relative directory in each backingtree whenever it needs to find
source files or dependencies.  This does not apply to .o files in the
obj tree, but does apply to sources, and also to headers and libraries,
since SOURCEDIR is used to derive values for INCDIRS & LIBDIRS.

(See the output of "sbinfo" for a full list of environment variables).

Note that all source directories from within a given sandbox configuration
have the same number of backing directories listed.

Hope that answers your questions.		-josh


p.s. Brenda (who is out on maternity leave) has been removed from
odehelp; thanks for pointing this out.


----------
From jmw  Tue Dec 17 16:11:10 1996
Delivery-Date: Tue, 17 Dec 96 16:11:28 -0500
To: odehelp
Cc: jmw@zk3.dec.com
Subject: Multiple backing trees
Date: Tue, 17 Dec 96 16:10:10 -0500
From: jmw
X-Mts: smtp

Howdy,

I did an ODE command:

	% bsh ls

and got back:

	Multiple backing trees:

	1) /usr/sde/osf1/build/cfe/src/kernel/bsd
	2) /usr/sde/osf1/build/ptaos.bl4/src/kernel/bsd
	Select backing directory:  

where (presumably) I'm supposed to reply either "1" or "2".

My question is: If I change directories to the tree that I used to
back my sandbox and then "cd" to the equivalent sub-directory, I don't
see anything that indicates that multiple backing trees are being used.
I then guessed that I might find something interesting if I looked at
the common directory hierarchy (/usr/sde/osf1/build) -- i.e. prior to
the divergence down the "cfe" or "ptaos.bl4" branch -- that might
indicate two backing trees, but I didn't see anything there either.

How can one tell, for a given directory in one's sandbox, how many
backing trees it has ?  Thanks.

-- Jonathan Wistar (DTN 381-6418)