Skip to content

Commit 9b9d834

Browse files
committed
Bug 1934958 - land NSS NSS_3_108_BETA3 UPGRADE_NSS_RELEASE, r=nss-reviewers,nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D234877
1 parent 95ab10f commit 9b9d834

File tree

15 files changed

+205
-91
lines changed

15 files changed

+205
-91
lines changed

security/nss/TAG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
NSS_3_108_BETA1
1+
NSS_3_108_BETA3

security/nss/automation/taskcluster/graph/src/extend.js

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ queue.filter(task => {
6161

6262
if (task.tests == "bogo" || task.tests == "tlsfuzzer") {
6363
// No windows
64-
if (task.platform == "windows2012-64" ||
65-
task.platform == "windows2012-32") {
64+
if (task.platform == "windows2022-64" ||
65+
task.platform == "windows2022-32") {
6666
return false;
6767
}
6868

@@ -140,7 +140,7 @@ queue.map(task => {
140140
}
141141

142142
// Windows is slow.
143-
if ((task.platform == "windows2012-32" || task.platform == "windows2012-64") &&
143+
if ((task.platform == "windows2022-32" || task.platform == "windows2012-64") &&
144144
task.tests == "chains") {
145145
task.maxRunTime = 7200;
146146
}
@@ -232,37 +232,37 @@ export default async function main() {
232232
image: LINUX_IMAGE,
233233
}, "--enable-fips --opt");
234234

235-
await scheduleWindows("Windows 2012 64 (debug, make)", {
236-
platform: "windows2012-64",
235+
await scheduleWindows("Windows 2022 64 (debug, make)", {
236+
platform: "windows2022-64",
237237
collection: "make",
238238
env: {USE_64: "1"}
239239
}, "build.sh");
240240

241-
await scheduleWindows("Windows 2012 32 (debug, make)", {
242-
platform: "windows2012-32",
241+
await scheduleWindows("Windows 2022 32 (debug, make)", {
242+
platform: "windows2022-32",
243243
collection: "make"
244244
}, "build.sh");
245245

246-
await scheduleWindows("Windows 2012 64 (opt)", {
247-
platform: "windows2012-64",
246+
await scheduleWindows("Windows 2022 64 (opt)", {
247+
platform: "windows2022-64",
248248
}, "build_gyp.sh --opt");
249249

250-
await scheduleWindows("Windows 2012 64 (debug)", {
251-
platform: "windows2012-64",
250+
await scheduleWindows("Windows 2022 64 (debug)", {
251+
platform: "windows2022-64",
252252
collection: "debug"
253253
}, "build_gyp.sh");
254254

255-
await scheduleWindows("Windows 2012 64 Static (opt)", {
256-
platform: "windows2012-64",
255+
await scheduleWindows("Windows 2022 64 Static (opt)", {
256+
platform: "windows2022-64",
257257
collection: "opt-static"
258258
}, "build_gyp.sh --opt --static");
259259

260-
await scheduleWindows("Windows 2012 32 (opt)", {
261-
platform: "windows2012-32",
260+
await scheduleWindows("Windows 2022 32 (opt)", {
261+
platform: "windows2022-32",
262262
}, "build_gyp.sh --opt -t ia32");
263263

264-
await scheduleWindows("Windows 2012 32 (debug)", {
265-
platform: "windows2012-32",
264+
await scheduleWindows("Windows 2022 32 (debug)", {
265+
platform: "windows2022-32",
266266
collection: "debug"
267267
}, "build_gyp.sh -t ia32");
268268

@@ -872,14 +872,8 @@ async function scheduleFuzzing32() {
872872

873873
async function scheduleWindows(name, base, build_script) {
874874
base = merge(base, {
875-
workerType: "b-win2012-azure",
875+
workerType: "b-win2022",
876876
env: {
877-
PATH: "c:\\mozilla-build\\bin;c:\\mozilla-build\\python;" +
878-
"c:\\mozilla-build\\msys\\local\\bin;c:\\mozilla-build\\7zip;" +
879-
"c:\\mozilla-build\\info-zip;c:\\mozilla-build\\python\\Scripts;" +
880-
"c:\\mozilla-build\\yasm;c:\\mozilla-build\\msys\\bin;" +
881-
"c:\\Windows\\system32;c:\\mozilla-build\\upx391w;" +
882-
"c:\\mozilla-build\\moztools-x64\\bin;c:\\mozilla-build\\wget;c:\\Program Files\\Mercurial",
883877
DOMSUF: "localdomain",
884878
HOST: "localhost",
885879
},

security/nss/automation/taskcluster/graph/src/try_syntax.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ function filter(opts) {
123123
"linux64-fuzz": "linux64",
124124
"linux64-make": "linux64",
125125
"linux-make": "linux32",
126-
"win64-make": "windows2012-64",
127-
"win-make": "windows2012-32",
128-
"win64": "windows2012-64",
129-
"win": "windows2012-32"
126+
"win64-make": "windows2022-64",
127+
"win-make": "windows2022-32",
128+
"win64": "windows2022-64",
129+
"win": "windows2022-32"
130130
};
131131

132132
// Check the platform name.

security/nss/automation/taskcluster/windows/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
popd
2121

2222
# Build.
23-
make -C nss nss_build_all
23+
mozmake -C nss nss_build_all
2424

2525
# Package.
2626
7z a public/build/dist.7z dist

security/nss/automation/taskcluster/windows/build_gyp.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ done
1414
[[ "$m" == "ia32" ]] && m=x86
1515
source "$(dirname "$0")/setup.sh"
1616

17+
git clone https://chromium.googlesource.com/external/gyp
18+
1719
# Install GYP.
1820
pushd gyp
19-
python -m virtualenv test-env
21+
python -m venv ./test-env
2022
test-env/Scripts/python setup.py install
2123
test-env/Scripts/python -m pip install --upgrade pip
22-
test-env/Scripts/pip install --upgrade 'setuptools<45.0.0'
24+
test-env/Scripts/pip install --upgrade 'setuptools<45.0.0' six
2325
# Fool GYP.
2426
touch "${VSPATH}/VC/vcvarsall.bat"
2527
export GYP_MSVS_OVERRIDE_PATH="${VSPATH}"
@@ -38,6 +40,11 @@ if [[ -f ../nss/nspr.patch && "$ALLOW_NSPR_PATCH" == "1" ]]; then
3840
fi
3941
popd
4042

43+
make () {
44+
mozmake "$@"
45+
}
46+
export -f make
47+
4148
# Build with gyp.
4249
./nss/build.sh -g -v --enable-libpkix -Denable_draft_hpke=1 "$@"
4350

security/nss/automation/taskcluster/windows/releng.manifest

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,5 @@
1414
"algorithm": "sha512",
1515
"filename": "ninja171.zip",
1616
"unpack": true
17-
},
18-
{
19-
"size": 13063963,
20-
"visibility": "public",
21-
"digest": "47a19f8f863eab3414abab2b9e9bd901ab896c799b3d9254b456b2f59374b085b99de805e21069a0819f01eecb3f43f7e2395a8c644c04bcbfa5711261cca29d",
22-
"algorithm": "sha512",
23-
"filename": "gyp-2017-05-23.zip",
24-
"unpack": true
2517
}
2618
]

security/nss/automation/taskcluster/windows/setup.sh

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,41 @@ hg_clone() {
1515
exit 1
1616
}
1717

18-
hg_clone https://hg.mozilla.org/build/tools tools b8d7c263dfc3
19-
tools/scripts/tooltool/tooltool_wrapper.sh \
20-
$(dirname $0)/releng.manifest http://taskcluster/tooltool.mozilla-releng.net/ \
21-
non-existant-file.sh /c/mozilla-build/python/python.exe \
22-
/c/builds/tooltool.py \
23-
-c /c/builds/tooltool_cache
18+
export SSL_CERT_FILE=/c/mozilla-build/python3/Lib/site-packages/certifi/cacert.pem
2419

25-
# This needs $m to be set.
26-
[[ -n "$m" ]]
27-
28-
# Setup MSVC paths.
29-
export VSPATH="${PWD}/vs2017_15.4.2"
30-
UCRTVersion="10.0.15063.0"
20+
/c/mozilla-build/python/python.exe /c/builds/tooltool.py -c /c/builds/tooltool_cache --url ${TASKCLUSTER_PROXY_URL}/tooltool.mozilla-releng.net/ --overwrite -m $(dirname $0)/releng.manifest fetch
3121

32-
export WINDOWSSDKDIR="${VSPATH}/SDK"
33-
export VS90COMNTOOLS="${VSPATH}/VC"
34-
export WIN32_REDIST_DIR="${VSPATH}/VC/redist/${m}/Microsoft.VC141.CRT"
35-
export WIN_UCRT_REDIST_DIR="${VSPATH}/SDK/Redist/ucrt/DLLs/${m}"
22+
# This needs $m to be set.
23+
if [ -n "$m" ]; then
24+
25+
# Setup MSVC paths.
26+
export VSPATH="${PWD}/vs2017_15.4.2"
27+
UCRTVersion="10.0.15063.0"
28+
29+
export WINDOWSSDKDIR="${VSPATH}/SDK"
30+
export VS90COMNTOOLS="${VSPATH}/VC"
31+
export WIN32_REDIST_DIR="${VSPATH}/VC/redist/${m}/Microsoft.VC141.CRT"
32+
export WIN_UCRT_REDIST_DIR="${VSPATH}/SDK/Redist/ucrt/DLLs/${m}"
33+
34+
if [ "$m" == "x86" ]; then
35+
PATH="${VSPATH}/VC/bin/Hostx64/x64:${PATH}"
36+
PATH="${VSPATH}/VC/bin/Hostx64/x86:${PATH}"
37+
fi
38+
PATH="${VSPATH}/VC/bin/Host${m}/${m}:${PATH}"
39+
PATH="${WIN32_REDIST_DIR}:${PATH}"
40+
PATH="${WIN_UCRT_REDIST_DIR}:${PATH}"
41+
PATH="${VSPATH}/SDK/bin/${UCRTVersion}/x64:${PATH}"
42+
export PATH
43+
44+
LIB="${LIB}:${VSPATH}/VC/lib/${m}"
45+
LIB="${LIB}:${VSPATH}/SDK/lib/${UCRTVersion}/ucrt/${m}"
46+
LIB="${LIB}:${VSPATH}/SDK/lib/${UCRTVersion}/um/${m}"
47+
export LIB
48+
49+
INCLUDE="${INCLUDE}:${VSPATH}/VC/include"
50+
INCLUDE="${INCLUDE}:${VSPATH}/SDK/Include/${UCRTVersion}/ucrt"
51+
INCLUDE="${INCLUDE}:${VSPATH}/SDK/Include/${UCRTVersion}/shared"
52+
INCLUDE="${INCLUDE}:${VSPATH}/SDK/Include/${UCRTVersion}/um"
53+
export INCLUDE
3654

37-
if [ "$m" == "x86" ]; then
38-
PATH="${PATH}:${VSPATH}/VC/bin/Hostx64/x86"
39-
PATH="${PATH}:${VSPATH}/VC/bin/Hostx64/x64"
4055
fi
41-
PATH="${PATH}:${VSPATH}/VC/bin/Host${m}/${m}"
42-
PATH="${PATH}:${WIN32_REDIST_DIR}"
43-
PATH="${PATH}:${WIN_UCRT_REDIST_DIR}"
44-
PATH="${PATH}:${VSPATH}/SDK/bin/${UCRTVersion}/x64"
45-
export PATH
46-
47-
LIB="${LIB}:${VSPATH}/VC/lib/${m}"
48-
LIB="${LIB}:${VSPATH}/SDK/lib/${UCRTVersion}/ucrt/${m}"
49-
LIB="${LIB}:${VSPATH}/SDK/lib/${UCRTVersion}/um/${m}"
50-
export LIB
51-
52-
INCLUDE="${INCLUDE}:${VSPATH}/VC/include"
53-
INCLUDE="${INCLUDE}:${VSPATH}/SDK/Include/${UCRTVersion}/ucrt"
54-
INCLUDE="${INCLUDE}:${VSPATH}/SDK/Include/${UCRTVersion}/shared"
55-
INCLUDE="${INCLUDE}:${VSPATH}/SDK/Include/${UCRTVersion}/um"
56-
export INCLUDE

security/nss/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ninja_params=()
7070

7171
# Assume that MSVC is wanted if this is running on windows.
7272
platform=$(uname -s)
73-
if [ "${platform%-*}" = "MINGW32_NT" -o "${platform%-*}" = "MINGW64_NT" ]; then
73+
if [ "${platform%-*}" = "MINGW32_NT" -o "${platform%-*}" = "MINGW64_NT" -o "${platform%%-*}" = "MSYS_NT" ]; then
7474
msvc=1
7575
fi
7676

security/nss/coreconf/arch.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ endif
141141
# If uname -s returns "MINGW*_NT-*", we assume that we are using
142142
# the uname.exe in the MSYS toolkit.
143143
#
144-
ifneq (,$(filter MINGW32_NT-% MINGW64_NT-%,$(OS_ARCH)))
145-
OS_RELEASE := $(patsubst MINGW64_NT-%,%,$(patsubst MINGW32_NT-%,%,$(OS_ARCH)))
144+
ifneq (,$(filter MSYS_NT-% MINGW32_NT-% MINGW64_NT-%,$(OS_ARCH)))
145+
OS_RELEASE := $(patsubst MSYS_NT-%,%,$(patsubst MINGW64_NT-%,%,$(patsubst MINGW32_NT-%,%,$(OS_ARCH))))
146146
OS_ARCH = WINNT
147147
USE_MSYS = 1
148148
ifndef CPU_ARCH

security/nss/coreconf/coreconf.dep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
*/
1111

1212
#error "Do not include this header file."
13+

0 commit comments

Comments
 (0)