author | Glenn Lagasse <glenn.lagasse@sun.com> |
Wed, 07 Apr 2010 16:26:57 -0700 | |
changeset 804 | d2c6e4ff2961 |
parent 800 | 1418b9ba8340 |
child 919 | 999ceaea57d4 |
permissions | -rw-r--r-- |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
1 |
# |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
2 |
# CDDL HEADER START |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
3 |
# |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
7 |
# |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
11 |
# and limitations under the License. |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
12 |
# |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
18 |
# |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
19 |
# CDDL HEADER END |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
20 |
# |
804
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
21 |
# Copyright (c) 2007, 2010 Oracle and/or its affiliates. All rights reserved. |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
22 |
# |
1
b2e7e362ef44
new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
23 |
|
b2e7e362ef44
new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
24 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
25 |
Welcome to the mercurial source repository for the Caiman Project: |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
26 |
Slim Install, Distribution Constructor, Snap Upgrade and Auto Installer. |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
27 |
This source also includes the libraries needed for the Caiman Project. |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
28 |
-------------------------------------------------------------------- |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
29 |
|
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
30 |
To setup a machine for building this source repository: |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
31 |
------------------------------------------------------- |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
32 |
1. Get the SunStudio compilers via the Image Packaging System (IPS). To install |
800
1418b9ba8340
Bug 14959: README: Step 3 (required IPS packages) - pkg names should be updated
Luis de Bethencourt <luis.debethencourt@sun.com>
parents:
773
diff
changeset
|
33 |
run the command "pfexec pkg install developer/sunstudioexpress" |
1
b2e7e362ef44
new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
34 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
35 |
2. Get the OS/Net Build Tools via the Image Packaging System (IPS). To install |
800
1418b9ba8340
Bug 14959: README: Step 3 (required IPS packages) - pkg names should be updated
Luis de Bethencourt <luis.debethencourt@sun.com>
parents:
773
diff
changeset
|
36 |
run the command "pfexec pkg install developer/build/onbld" |
1
b2e7e362ef44
new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
37 |
|
687
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
38 |
3. Install required IPS packages: |
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
39 |
|
804
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
40 |
developer/swig |
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
41 |
system/boot/wanboot/internal |
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
42 |
system/library/install/libinstzones |
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
43 |
system/library/libdiskmgt/header-libdiskmgt |
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
44 |
system/zones/internal |
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
45 |
text/gnu-gettext |
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
46 |
|
d2c6e4ff2961
15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents:
800
diff
changeset
|
47 |
To get these packages, run "pfexec pkg install <package>" |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
48 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
49 |
To setup the repository to be built: |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
50 |
------------------------------------ |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
51 |
1. cd usr/src in the repository |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
52 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
53 |
2. cp tools/env/developer.sh .; chmod +w developer.sh. |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
54 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
55 |
Some environment variables which might need to be changed: |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
56 |
*You should - set the path to your repository defined by CODEMGR_WS. |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
57 |
*You may - need to change the SPRO_ROOT variable to point to your |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
58 |
installed compilers. Likely locations are: |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
59 |
/opt/SUNWspro |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
60 |
/opt/sunstudio12.1 |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
61 |
/opt/SunStudioExpress (default) |
687
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
62 |
*If your compilers are not installed into /opt/SUNWspro, you will need |
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
63 |
to run the command "ln -s /opt/SunStudioExpress /opt/SUNWspro". |
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
64 |
For more information, see bug 11378: |
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
65 |
http://defect.opensolaris.org/bz/show_bug.cgi?id=11378 |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
66 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
67 |
3. Copy the nightly build script found in /opt/onbld/bin into the |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
68 |
usr/src directory. |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
69 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
70 |
cp /opt/onbld/bin/nightly .; chmod +w nightly |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
71 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
72 |
In the nightly script there are three places |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
73 |
where getopts is called. You need to add a "+" to two of them. |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
74 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
75 |
while getopts +inS:tV: FLAG |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
76 |
^ |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
77 |
and |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
78 |
|
687
affa28c47b7a
13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents:
572
diff
changeset
|
79 |
while getopts +0AaBCDdFfGIilMmNnOoPpRrS:TtUuWwXxz FLAG $NIGHTLY_OPTIONS |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
80 |
^ |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
81 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
82 |
If you choose not to set these, you will see warning messages |
560
a55736d02592
9028 Update gate README to include links to compilers and ON build tools
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
254
diff
changeset
|
83 |
regarding building tools. It won't affect your build otherwise. |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
84 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
85 |
For more information see bug 849 - |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
86 |
http://defect.opensolaris.org/bz/show_bug.cgi?id=849 |
560
a55736d02592
9028 Update gate README to include links to compilers and ON build tools
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
254
diff
changeset
|
87 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
88 |
To build this repository use the following steps: |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
89 |
------------------------------------------------- |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
90 |
1. cd usr/src in the repository |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
91 |
|
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
92 |
2. To build, run: ./nightly developer.sh |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
93 |
This updates the source from the Mercurial repository. |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
94 |
|
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
95 |
If you do not wish to do a Mercurial pull as part of the nightly run, |
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
96 |
use the -n option. |
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
97 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
98 |
./nightly -n developer.sh |
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
99 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
100 |
|
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
101 |
-------------------------------------------------------------------- |
1
b2e7e362ef44
new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
102 |
Notes: |
2
fce704dce9e9
modified README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
1
diff
changeset
|
103 |
|
151
80b508d743ec
1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents:
99
diff
changeset
|
104 |
Please send questions, comments, contributions to: |
572
a6e9fc0bf533
9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents:
560
diff
changeset
|
105 |
caiman-discuss (at) opensolaris.org |