[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

699.0. "How do I do a build install?" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Tue Apr 19 1994 21:54

Date Of Receipt: 	19-APR-1994 20:00:44.69
From: 	WASTED::"[email protected]" "19-Apr-1994 1700"
To: 	[email protected]
CC: 	decwet::jdaddamio
Subj: 	How do I do a build install?

Hi,

I need to do a build install for some testing I'm doing. (Don't worry. I'm 
doing it to a private disk.)

I can't find any documentation about build install. I've tried reading
the Makefile and tried TOSTAGE=default, TOSTAGE=alpha, and TOSTAGE=/hard/path.

Can I get a couple hints? What I want to do is take a kernel I've built
and install it on a private disk.

thanks
John

T.RTitleUserPersonal
Name
DateLines
699.1Re: How do I do a build install?SMURF::FILTERAutomatic Posting Software - mail to flume::puckTue Apr 19 1994 21:5442
Date Of Receipt: 	19-APR-1994 20:40:28.75
From: 	FLUME::"[email protected]" "Grant Van Dyck"
To: 	decwet::jdaddamio (JOHN D'Addamio)
CC: 	[email protected], decwet::jdaddamio
Subj: 	Re: How do I do a build install?

If you want to change ownership and permissions as well, you'll need to do a
workon as root which will require a .sandboxrc as well as EDITOR and PRINCIPAL
environment variables set for root. Otherwise you can just do this as yourself. 
We'll assume csh here, adapt syntax for your shell.

setenv TOSTAGE path_to_top_of_install_tree
cd src/dir_of_choice
build install_all

or

build install_sometarget


Hope this helps.

> 
> I need to do a build install for some testing I'm doing. (Don't worry. I'm 
> doing it to a private disk.)
> 
> I can't find any documentation about build install. I've tried reading
> the Makefile and tried TOSTAGE=default, TOSTAGE=alpha, and TOSTAGE=/hard/path.
> 
> Can I get a couple hints? What I want to do is take a kernel I've built
> and install it on a private disk.
> 
> thanks
> John
> 


-- 
 Grant Van Dyck 		enet:    [email protected]	
 Release Engineering


699.2Re: How do I do a build install?SMURF::FILTERAutomatic Posting Software - mail to flume::puckTue Apr 19 1994 23:5710
Date Of Receipt: 	19-APR-1994 22:12:25.96
From: 	FLUME::jmcg "Jim McGinness"
To: 	decwet::jdaddamio
CC: 	FLUME::odehelp
Subj: 	Re:  How do I do a build install?

You also need to be sure to use disklabel to apply bootblocks to the disk
and to ensure that osf_boot exists on the target disk.
	-- jmcg

699.3Re: How do I do a build install?SMURF::FILTERAutomatic Posting Software - mail to flume::puckWed Apr 20 1994 10:1134
Date Of Receipt: 	20-APR-1994 08:21:49.84
From: 	FLAMBE::johnf "John Flanagan USG Test Johnf Tools Group  20-Apr-1994 0821"
To: 	JOHN D'Addamio <decwet::jdaddamio>
CC: 	[email protected], johnf@DEC:.zko.flambe
Subj: 	Re: How do I do a build install?

First, you need to be root when you're in the workon for the install 
phase to work correctly.  

Next, you need to set aside a place to be the top of the install tree.
Perhaps /usr/install_tree [make sure that directory exists]

In your workon, you want to type [in this example at least]:

               setenv TOSTAGE /usr/install_tree

and then:

               build install_target

If you're testing a kernel install, things don't work the same.  I have not
had much luck getting single parts of the kernel to install.  The way the
build does it is the same as above in terms of setting up the install area
and the TOSTAGE variable, but when it goes to install, it does the 
following:

              cd kernel; make -ckEF install


Good luck!


John

699.4Re: How do I do a build install?SMURF::FILTERAutomatic Posting Software - mail to flume::puckWed Apr 20 1994 12:2420
Date Of Receipt: 	20-APR-1994 10:40:34.32
From: 	FLAMBE::jmf "Joshua M. Friedman ULTRIX SDE"
To: 	decwet::jdaddamio, [email protected]
CC: 	
Subj: 	Re:  How do I do a build install?

John, one more tip which makes things easier.  Since 'build' tries
to track down your sandbox rc_files, making a symbolic link
from /.sandboxrc to your own ~/.sandboxrc will make it so that
root's sandboxes will be the same as your own; otherwise you
need to add the ''-rc rcfile'' argument to the build; so do the
following on your system, as root:

	# ln -s /usr/users/jdaddamio/.sandboxrc /

for example, then /.sandboxrc will allow root to always work as
if it were you.

-josh