Print this page
5092 env files don't need to define LOCKNAME by default
5091 illumos.sh env file's LOCKNAME definition is busted
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/env/developer.sh
+++ new/usr/src/tools/env/developer.sh
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25
26 26 # Configuration variables for the runtime environment of the nightly
27 27 # build script and other tools for construction and packaging of releases.
28 28 # This script is sourced by 'nightly' and 'bldenv' to set up the environment
29 29 # for the build. This example is suitable for building a developers workspace,
30 30 # which will contain the resulting packages and archives. It is based off
31 31 # the onnv release. It sets NIGHTLY_OPTIONS to make nightly do:
32 32 # check ELF ABI/versioning (-A)
33 33 # runs 'make check' (-C)
34 34 # DEBUG and non-DEBUG builds (-D)
35 35 # runs lint in usr/src (-l plus the LINTDIRS variable)
36 36 # sends mail on completion (-m and the MAILTO variable)
37 37 # creates packages for PIT/RE (-p)
38 38 # checks for changes in ELF runpaths (-r)
39 39 #
40 40 NIGHTLY_OPTIONS="-ACDlmpr"; export NIGHTLY_OPTIONS
41 41
42 42 # This is a variable for the rest of the script - GATE doesn't matter to
43 43 # nightly itself
44 44 GATE=onnv-bugfixes; export GATE
45 45
46 46 # CODEMGR_WS - where is your workspace at (or what should nightly name it)
47 47 CODEMGR_WS="/builds/$GATE"; export CODEMGR_WS
48 48
49 49 # PARENT_WS is used to determine the parent of this workspace. This is
50 50 # for the options that deal with the parent workspace (such as where the
51 51 # proto area will go).
52 52 #
53 53 # If you use this, it must be local (or nfs): nightly cannot copy
54 54 # over ssh or http.
55 55 PARENT_WS="/ws/onnv-gate"; export PARENT_WS
56 56
57 57 # CLONE_WS is the workspace nightly should do a bringover from.
58 58 CLONE_WS="ssh://anonhg@onnv.sfbay.sun.com//export/onnv-clone"; export CLONE_WS
59 59
60 60 # CLOSED_CLONE_WS is the workspace from which nightly should acquire
61 61 # the usr/closed tree.
62 62 CLOSED_CLONE_WS="${CLONE_WS}/usr/closed"; export CLOSED_CLONE_WS
63 63
64 64 # The bringover, if any, is done as STAFFER.
65 65 # Set STAFFER to your own login as gatekeeper or developer
66 66 # The point is to use group "staff" and avoid referencing the parent
↓ open down ↓ |
66 lines elided |
↑ open up ↑ |
67 67 # workspace as root.
68 68 # Some scripts optionally send mail messages to MAILTO.
69 69 #
70 70 STAFFER=nobody; export STAFFER
71 71 MAILTO=$STAFFER; export MAILTO
72 72
73 73 # The project (see project(4)) under which to run this build. If not
74 74 # specified, the build is simply run in a new task in the current project.
75 75 BUILD_PROJECT=; export BUILD_PROJECT
76 76
77 -# You should not need to change the next four lines
78 -LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME
77 +# You should not need to change the next three lines
79 78 ATLOG="$CODEMGR_WS/log"; export ATLOG
80 79 LOGFILE="$ATLOG/nightly.log"; export LOGFILE
81 80 MACH=`uname -p`; export MACH
82 81
83 82 # When the -A flag is specified, and ELF_DATA_BASELINE_DIR is defined,
84 83 # the ELF interface description file resulting from the build is compared
85 84 # to that from the specified directory. This ensures that our object
86 85 # versioning evolves in a backward compatible manner.
87 86 #
88 87 # You should not need to change this unless you wish to use locally cached
89 88 # baseline files. If you use this, it must be local (or nfs): nightly cannot
90 89 # copy over ssh or http.
91 90 #
92 91 ELF_DATA_BASELINE_DIR="/ws/onnv-gate/usr/src/ELF-data-baseline.$MACH"; export ELF_DATA_BASELINE_DIR
93 92
94 93 # This is usually just needed if the closed tree is missing, or when
95 94 # building a project gate with the -O (cap oh) flag.
96 95 # ON_CRYPTO_BINS="$PARENT_WS/packages/$MACH/on-crypto.$MACH.tar.bz2"
97 96 # export ON_CRYPTO_BINS
98 97
99 98 # REF_PROTO_LIST - for comparing the list of stuff in your proto area
100 99 # with. Generally this should be left alone, since you want to see differences
101 100 # from your parent (the gate).
102 101 #
103 102 REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST
104 103
105 104 #
106 105 # build environment variables, including version info for mcs, motd,
107 106 # motd, uname and boot messages. Mostly you shouldn't change this except
108 107 # when the release slips (nah) or you move an environment file to a new
109 108 # release
110 109 #
111 110 ROOT="$CODEMGR_WS/proto/root_${MACH}"; export ROOT
112 111 SRC="$CODEMGR_WS/usr/src"; export SRC
113 112 VERSION="$GATE"; export VERSION
114 113
115 114 #
116 115 # the RELEASE and RELEASE_DATE variables are set in Makefile.master;
117 116 # there might be special reasons to override them here, but that
118 117 # should not be the case in general
119 118 #
120 119 # RELEASE="5.10.1"; export RELEASE
121 120 # RELEASE_DATE="October 2007"; export RELEASE_DATE
122 121
123 122 # proto area in parent for optionally depositing a copy of headers and
124 123 # libraries corresponding to the protolibs target
125 124 # not applicable given the NIGHTLY_OPTIONS
126 125 #
127 126 PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
128 127 PARENT_TOOLS_ROOT=$PARENT_WS/usr/src/tools/proto/root_$MACH-nd; export PARENT_TOOLS_ROOT
129 128
130 129 #
131 130 # Package creation variables. You probably shouldn't change these,
132 131 # either.
133 132 #
134 133 # PKGARCHIVE determines where repositories will be created.
135 134 #
136 135 # PKGPUBLISHER* control the publisher settings for those repositories.
137 136 #
138 137 PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly"; export PKGARCHIVE
139 138 # PKGPUBLISHER_REDIST="on-redist"; export PKGPUBLISHER_REDIST
140 139 # PKGPUBLISHER_NONREDIST="on-extra"; export PKGPUBLISHER_NONREDIST
141 140
142 141 # we want make to do as much as it can, just in case there's more than
143 142 # one problem.
144 143 MAKEFLAGS=k; export MAKEFLAGS
145 144
146 145 # Magic variable to prevent the devpro compilers/teamware from sending
147 146 # mail back to devpro on every use.
148 147 UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
149 148
150 149 # Build tools - don't set these unless you know what you're doing. These
151 150 # variables allows you to get the compilers and onbld files locally or
152 151 # through cachefs. Set BUILD_TOOLS to pull everything from one location.
153 152 # Alternately, you can set ONBLD_TOOLS to where you keep the contents of
154 153 # SUNWonbld and SPRO_ROOT to where you keep the compilers.
155 154 #
156 155 #BUILD_TOOLS=/opt; export BUILD_TOOLS
157 156 #ONBLD_TOOLS=/opt/onbld; export ONBLD_TOOLS
158 157 #SPRO_ROOT=/opt/SUNWspro; export SPRO_ROOT
159 158
160 159 # This goes along with lint - it is a series of the form "A [y|n]" which
161 160 # means "go to directory A and run 'make lint'" Then mail me (y) the
162 161 # difference in the lint output. 'y' should only be used if the area you're
163 162 # linting is actually lint clean or you'll get lots of mail.
164 163 # You shouldn't need to change this though.
165 164 #LINTDIRS="$SRC y"; export LINTDIRS
166 165
167 166 #
168 167 # Reference to IA32 IHV workspace, proto area and packages
169 168 #
170 169 #IA32_IHV_WS=/ws/${GATE}-ihv; export IA32_IHV_WS
171 170 #IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386; export IA32_IHV_ROOT
172 171 #IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly; export IA32_IHV_PKGS
173 172
174 173 #
175 174 # Reference to binary-only IA32 IHV packages
176 175 #
177 176 #IA32_IHV_BINARY_PKGS=/ws/${GATE}-ihv-bin
178 177 #export IA32_IHV_BINARY_PKGS
179 178
180 179 # Set this flag to 'n' to disable the automatic validation of the dmake
181 180 # version in use. The default is to check it.
182 181 #CHECK_DMAKE=y
183 182
184 183 # Set this flag to 'n' to disable the use of 'checkpaths'. The default,
185 184 # if the 'N' option is not specified, is to run this test.
186 185 #CHECK_PATHS=y
187 186
188 187 # Set this flag to 'y' to enable the use of elfsigncmp to validate the
189 188 # output of elfsign. Doing so requires that 't' be set in NIGHTLY_OPTIONS.
190 189 # The default is to not verify them.
191 190 #VERIFY_ELFSIGN=n
192 191
193 192 # BRINGOVER_FILES is the list of files nightly passes to bringover.
194 193 # If not set the default is "usr", but it can be used for bringing
195 194 # over deleted_files or other nifty directories.
196 195 #BRINGOVER_FILES="usr deleted_files"
197 196
198 197 # POST_NIGHTLY can be any command to be run at the end of nightly. See
199 198 # nightly(1) for interactions between environment variables and this command.
200 199 #POST_NIGHTLY=
↓ open down ↓ |
112 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX