Print this page
7661 illumos should provide 64bit perl modules
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/env/illumos.sh
+++ new/usr/src/tools/env/illumos.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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
23 23 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
24 24 # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
25 +# Copyright 2016 RackTop Systems.
25 26 #
26 27
27 28 # Configuration variables for the runtime environment of the nightly
28 29 # build script and other tools for construction and packaging of
29 30 # releases.
30 31 # This example is suitable for building an illumos workspace, which
31 32 # will contain the resulting archives. It is based off the onnv
32 33 # release. It sets NIGHTLY_OPTIONS to make nightly do:
33 34 # DEBUG build only (-D, -F)
34 35 # do not bringover from the parent (-n)
35 36 # runs 'make check' (-C)
36 37 # checks for new interfaces in libraries (-A)
37 38 # runs lint in usr/src (-l plus the LINTDIRS variable)
38 39 # sends mail on completion (-m and the MAILTO variable)
39 40 # creates packages for PIT/RE (-p)
40 41 # checks for changes in ELF runpaths (-r)
41 42 # build and use this workspace's tools in $SRC/tools (-t)
42 43 #
43 44 # - This file is sourced by "bldenv.sh" and "nightly.sh" and should not
44 45 # be executed directly.
45 46 # - This script is only interpreted by ksh93 and explicitly allows the
46 47 # use of ksh93 language extensions.
47 48 #
48 49 export NIGHTLY_OPTIONS='-FnCDAlmprt'
49 50
50 51 # CODEMGR_WS - where is your workspace at
51 52 #export CODEMGR_WS="$HOME/ws/illumos-gate"
52 53 export CODEMGR_WS="`git rev-parse --show-toplevel`"
53 54
54 55 # Maximum number of dmake jobs. The recommended number is 2 + NCPUS,
55 56 # where NCPUS is the number of logical CPUs on your build system.
56 57 function maxjobs
57 58 {
58 59 nameref maxjobs=$1
59 60 integer ncpu
60 61 integer -r min_mem_per_job=512 # minimum amount of memory for a job
61 62
62 63 ncpu=$(builtin getconf ; getconf 'NPROCESSORS_ONLN')
63 64 (( maxjobs=ncpu + 2 ))
64 65
65 66 # Throttle number of parallel jobs launched by dmake to a value which
66 67 # gurantees that all jobs have enough memory. This was added to avoid
67 68 # excessive paging/swapping in cases of virtual machine installations
68 69 # which have lots of CPUs but not enough memory assigned to handle
69 70 # that many parallel jobs
70 71 if [[ $(/usr/sbin/prtconf 2>'/dev/null') == ~(E)Memory\ size:\ ([[:digit:]]+)\ Megabytes ]] ; then
71 72 integer max_jobs_per_memory # parallel jobs which fit into physical memory
72 73 integer physical_memory # physical memory installed
73 74
74 75 # The array ".sh.match" contains the contents of capturing
75 76 # brackets in the last regex, .sh.match[1] will contain
76 77 # the value matched by ([[:digit:]]+), i.e. the amount of
77 78 # memory installed
78 79 physical_memory="10#${.sh.match[1]}"
79 80
80 81 ((
81 82 max_jobs_per_memory=round(physical_memory/min_mem_per_job) ,
82 83 maxjobs=fmax(2, fmin(maxjobs, max_jobs_per_memory))
83 84 ))
84 85 fi
85 86
86 87 return 0
87 88 }
88 89
89 90 maxjobs DMAKE_MAX_JOBS # "DMAKE_MAX_JOBS" passed as ksh(1) name reference
90 91 export DMAKE_MAX_JOBS
91 92
92 93 # path to onbld tool binaries
93 94 ONBLD_BIN='/opt/onbld/bin'
94 95
95 96 # PARENT_WS is used to determine the parent of this workspace. This is
96 97 # for the options that deal with the parent workspace (such as where the
97 98 # proto area will go).
98 99 export PARENT_WS=''
99 100
100 101 # CLONE_WS is the workspace nightly should do a bringover from.
101 102 export CLONE_WS='ssh://anonhg@hg.illumos.org/illumos-gate'
102 103
103 104 # The bringover, if any, is done as STAFFER.
104 105 # Set STAFFER to your own login as gatekeeper or developer
105 106 # The point is to use group "staff" and avoid referencing the parent
106 107 # workspace as root.
107 108 # Some scripts optionally send mail messages to MAILTO.
108 109 #
109 110 export STAFFER="$LOGNAME"
110 111 export MAILTO="$STAFFER"
111 112
112 113 # If you wish the mail messages to be From: an arbitrary address, export
113 114 # MAILFROM.
114 115 #export MAILFROM="user@example.com"
115 116
116 117 # The project (see project(4)) under which to run this build. If not
117 118 # specified, the build is simply run in a new task in the current project.
118 119 export BUILD_PROJECT=''
119 120
120 121 # You should not need to change the next three lines
121 122 export ATLOG="$CODEMGR_WS/log"
122 123 export LOGFILE="$ATLOG/nightly.log"
123 124 export MACH="$(uname -p)"
124 125
125 126 #
126 127 # The following macro points to the closed binaries. Once illumos has
127 128 # totally freed itself, we can remove this reference.
128 129 #
129 130 # Location of encumbered binaries.
130 131 export ON_CLOSED_BINS="$CODEMGR_WS/closed"
131 132
132 133 # REF_PROTO_LIST - for comparing the list of stuff in your proto area
133 134 # with. Generally this should be left alone, since you want to see differences
134 135 # from your parent (the gate).
135 136 #
136 137 export REF_PROTO_LIST="$PARENT_WS/usr/src/proto_list_${MACH}"
137 138
138 139
139 140 export ROOT="$CODEMGR_WS/proto/root_${MACH}"
140 141 export SRC="$CODEMGR_WS/usr/src"
141 142 export MULTI_PROTO="no"
142 143
143 144 #
144 145 # build environment variables, including version info for mcs, motd,
145 146 # motd, uname and boot messages. Mostly you shouldn't change this except
146 147 # when the release slips (nah) or you move an environment file to a new
147 148 # release
148 149 #
149 150 export VERSION="`git describe --long --all HEAD | cut -d/ -f2-`"
150 151
151 152 #
152 153 # the RELEASE and RELEASE_DATE variables are set in Makefile.master;
153 154 # there might be special reasons to override them here, but that
154 155 # should not be the case in general
155 156 #
156 157 # export RELEASE='5.11'
157 158 # export RELEASE_DATE='October 2007'
158 159
159 160 # proto area in parent for optionally depositing a copy of headers and
160 161 # libraries corresponding to the protolibs target
161 162 # not applicable given the NIGHTLY_OPTIONS
162 163 #
163 164 export PARENT_ROOT="$PARENT_WS/proto/root_$MACH"
164 165 export PARENT_TOOLS_ROOT="$PARENT_WS/usr/src/tools/proto/root_$MACH-nd"
165 166
166 167 # Package creation variables. You probably shouldn't change these,
167 168 # either.
168 169 #
169 170 # PKGARCHIVE determines where the repository will be created.
170 171 #
171 172 # PKGPUBLISHER_REDIST controls the publisher setting for the repository.
172 173 #
173 174 export PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly"
174 175 # export PKGPUBLISHER_REDIST='on-redist'
175 176
176 177 # Package manifest format version.
177 178 export PKGFMT_OUTPUT='v1'
178 179
179 180 # we want make to do as much as it can, just in case there's more than
180 181 # one problem.
181 182 export MAKEFLAGS='k'
182 183
183 184 # Magic variables to prevent the devpro compilers/teamware from checking
184 185 # for updates or sending mail back to devpro on every use.
185 186 export SUNW_NO_UPDATE_NOTIFY='1'
186 187 export UT_NO_USAGE_TRACKING='1'
187 188
188 189 # Build tools - don't change these unless you know what you're doing. These
189 190 # variables allows you to get the compilers and onbld files locally.
190 191 # Set BUILD_TOOLS to pull everything from one location.
191 192 # Alternately, you can set ONBLD_TOOLS to where you keep the contents of
192 193 # SUNWonbld and SPRO_ROOT to where you keep the compilers. SPRO_VROOT
193 194 # exists to make it easier to test new versions of the compiler.
194 195 export BUILD_TOOLS='/opt'
195 196 #export ONBLD_TOOLS='/opt/onbld'
196 197 export SPRO_ROOT='/opt/SUNWspro'
197 198 export SPRO_VROOT="$SPRO_ROOT"
198 199
199 200 # Disable shadow compilation by default.
200 201 export CW_NO_SHADOW='1'
201 202
202 203 # This goes along with lint - it is a series of the form "A [y|n]" which
203 204 # means "go to directory A and run 'make lint'" Then mail me (y) the
204 205 # difference in the lint output. 'y' should only be used if the area you're
205 206 # linting is actually lint clean or you'll get lots of mail.
206 207 # You shouldn't need to change this though.
207 208 #export LINTDIRS="$SRC y"
208 209
209 210 # Set this flag to 'n' to disable the use of 'checkpaths'. The default,
210 211 # if the 'N' option is not specified, is to run this test.
211 212 #CHECK_PATHS='y'
212 213
213 214 # POST_NIGHTLY can be any command to be run at the end of nightly. See
214 215 # nightly(1) for interactions between environment variables and this command.
↓ open down ↓ |
180 lines elided |
↑ open up ↑ |
215 216 #POST_NIGHTLY=
216 217
217 218 # Comment this out to disable support for IPP printing, i.e. if you
218 219 # don't want to bother providing the Apache headers this needs.
219 220 export ENABLE_IPP_PRINTING=
220 221
221 222 # Comment this out to disable support for SMB printing, i.e. if you
222 223 # don't want to bother providing the CUPS headers this needs.
223 224 export ENABLE_SMB_PRINTING=
224 225
226 +# Comment this out to disable building of 32bit perl modules, i.e
227 +# if you're running a distro that only provides 64bit perl.
228 +export ENABLE_32BIT_PERL=
229 +
230 +# Comment this out to disable building of 64bit perl modules, i.e
231 +# if you're running a distro that doesn't provide 64bit perl.
232 +export ENABLE_64BIT_PERL=
233 +
225 234 # If your distro uses certain versions of Perl, make sure either Makefile.master
226 235 # contains your new defaults OR your .env file sets them.
227 236 # These are how you would override for building on OmniOS r151012, for example.
228 237 #export PERL_VERSION=5.16.1
229 -#export PERL_ARCH=i86pc-solaris-thread-multi-64int
238 +#export PERL_VARIANT=-thread-multi
230 239 #export PERL_PKGVERS=-5161
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX