2019-09-18 Kevin Jacobs <kjacobs@mozilla.com> * cmd/lib/derprint.c: Bug 1581024 - Check for pointer wrap in derprint.c. r=jcj Check for pointer wrap on output-length check in the derdump utility. [a3ee4f26b4c1] [tip] 2019-09-18 Giulio Benetti <giulio.benetti@micronovasrl.com> * lib/freebl/gcm-aarch64.c: Bug 1580126 - Fix build failure on aarch64_be while building freebl/gcm r=kjacobs Build failure is caused by different #ifdef conditions in gcm.c and gcm-aarch64.c that leads to double declaration of the same gcm_* functions. Fix #ifdef condition in gcm-aarch64.c making it the same as the one in gcm.c. Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> [fa0d958de0c3] 2019-09-17 Kai Engert <kaie@kuix.de> * automation/taskcluster/graph/src/extend.js: Bug 1385039 - Build NSPR tests as part of NSS continuous integration. r=kjacobs [cc97f1a93038] 2019-09-17 Landry Breuil <landry@openbsd.org> * lib/freebl/Makefile: Bug 1581391 - include gcm-aarch64 on all unices, not only linux r=kjacobs [e7b4f293fa4e] 2019-09-17 Martin Thomson <mt@lowentropy.net> * mach: Bug 1581041 - Rename mach-commands to mach-completion, r=jcj This means that we can point our completion at the gecko one. [bc91272fcbdc] 2019-09-16 Jenine <jenine_c@outlook.com> * cmd/pk11importtest/pk11importtest.c, lib/softoken/pkcs11.c: Bug 1558313 - Fix clang warnings in pk11importtest.c and pkcs11.c r=marcusburghardt [4569b745f74e] 2019-09-13 Daiki Ueno <dueno@redhat.com> * lib/certhigh/certvfy.c: Bug 1542207, fix policy check on signature algorithms, r=rrelyea Reviewers: rrelyea Reviewed By: rrelyea Bug #: 1542207 [ed8a41d16c1c] 2019-09-05 Daiki Ueno <dueno@redhat.com> * lib/freebl/drbg.c: Bug1560329, drbg: perform continuous test on entropy source, r=rrelyea Summary: FIPS 140-2 section 4.9.2 requires a conditional self test to check that consecutive entropy blocks from the system are different. As neither getentropy() nor /dev/urandom provides that check on the output, this adds the self test at caller side. Reviewers: rrelyea Reviewed By: rrelyea Bug #:1560329[c66dd879d16a] 2019-09-06 Martin Thomson <mt@lowentropy.net> * automation/taskcluster/graph/src/queue.js: Bug 1579290 - Disable LSAN during builds, r=ueno Summary: See the bug description for details. [f28f3d7b7cf0] 2019-09-13 Kai Engert <kaie@kuix.de> * Makefile, build.sh, coreconf/nspr.sh, help.txt: Bug 1385061 - Build NSPR tests with NSS make; Add gyp parameters to build/run NSPR tests. r=jcj [8b4a226f7d23] 2019-09-11 Kai Engert <kaie@kuix.de> * nss.gyp: Bug 1577359 - Build atob and btoa for Thunderbird. r=jcj [1fe61aadaf57] 2019-09-10 Marcus Burghardt <mburghardt@mozilla.com> * cmd/pk12util/pk12util.c: Bug 1579036 - Define error when trying to export non-existent cert with pk12util. r=jcj [65ab97f03c89] 2019-09-04 Martin Thomson <mt@lowentropy.net> * gtests/mozpkix_gtest/pkixder_input_tests.cpp: Bug 1578626 - Remove undefined nullptr decrement, r=keeler Summary: This uses uintptr_t to avoid the worst. It still looks terrible and might trip static analysis warnings, but the reinterpret_cast should hide that. This assumes that sizeof(uintptr_t) == sizeof(void*), so I've added an assertion so that we'll at least fail the test on those systems. (We could use GTEST_SKIP instead, but we don't have that in the version of gtest that we use.) Reviewers: keeler Tags: #secure-revision Bug #: 1578626 [d2485b1c997e] 2019-09-05 Marcus Burghardt <mburghardt@mozilla.com> * gtests/pk11_gtest/pk11_find_certs_unittest.cc: Bug 1578751 - Ensure a consistent style for pk11_find_certs_unittest.cc. r=jcj Adjusted the style and clang-format after the changes in some var names. [e95fee7f59e5] Differential Revision: https://phabricator.services.mozilla.com/D46246
78 lines
2.0 KiB
Bash
78 lines
2.0 KiB
Bash
#!/usr/bin/env bash
|
|
# This script builds NSPR for NSS.
|
|
#
|
|
# This build system is still under development. It does not yet support all
|
|
# the features or platforms that the regular NSPR build supports.
|
|
|
|
# variables
|
|
nspr_cflags=
|
|
nspr_cxxflags=
|
|
nspr_ldflags=
|
|
|
|
# Try to avoid bmake on OS X and BSD systems
|
|
if hash gmake 2>/dev/null; then
|
|
make() { command gmake "$@"; }
|
|
fi
|
|
|
|
nspr_set_flags()
|
|
{
|
|
nspr_cflags="$CFLAGS $@"
|
|
nspr_cxxflags="$CXXFLAGS $@"
|
|
nspr_ldflags="$LDFLAGS $@"
|
|
}
|
|
|
|
nspr_build()
|
|
{
|
|
local nspr_dir="$cwd"/../nspr/$target
|
|
mkdir -p "$nspr_dir"
|
|
|
|
# These NSPR options are directory-specific, so they don't need to be
|
|
# included in nspr_opt and changing them doesn't force a rebuild of NSPR.
|
|
extra_params=(--prefix="$dist_dir"/$target)
|
|
if [ "$opt_build" = 1 ]; then
|
|
extra_params+=(--disable-debug --enable-optimize)
|
|
fi
|
|
if [ "$target_arch" = "x64" ]; then
|
|
extra_params+=(--enable-64bit)
|
|
fi
|
|
|
|
echo "NSPR [1/5] configure ..."
|
|
pushd "$nspr_dir" >/dev/null
|
|
CFLAGS="$nspr_cflags" CXXFLAGS="$nspr_cxxflags" \
|
|
LDFLAGS="$nspr_ldflags" CC="$CC" CXX="$CCC" \
|
|
run_verbose ../configure "${extra_params[@]}" "$@"
|
|
popd >/dev/null
|
|
echo "NSPR [2/5] make ..."
|
|
run_verbose make -C "$nspr_dir"
|
|
|
|
if [ "$build_nspr_tests" = 1 ]; then
|
|
echo "NSPR [3/5] build tests ..."
|
|
run_verbose make -C "$nspr_dir/pr/tests"
|
|
else
|
|
echo "NSPR [3/5] NOT building tests"
|
|
fi
|
|
|
|
if [[ "$build_nspr_tests" = 1 && "$run_nspr_tests" = 1 ]]; then
|
|
echo "NSPR [4/5] run tests ..."
|
|
run_verbose make -C "$nspr_dir/pr/tests" runtests
|
|
else
|
|
echo "NSPR [4/5] NOT running tests"
|
|
fi
|
|
|
|
echo "NSPR [5/5] install ..."
|
|
run_verbose make -C "$nspr_dir" install
|
|
}
|
|
|
|
nspr_clean()
|
|
{
|
|
rm -rf "$cwd"/../nspr/$target
|
|
}
|
|
|
|
set_nspr_path()
|
|
{
|
|
local include=$(echo "$1" | cut -d: -f1)
|
|
local lib=$(echo "$1" | cut -d: -f2)
|
|
gyp_params+=(-Dnspr_include_dir="$include")
|
|
gyp_params+=(-Dnspr_lib_dir="$lib")
|
|
}
|