Skip to content

Commit

Permalink
Bug 1526010, Upgrade Firefox 67 to use NSPR 4.21. Beta snapshot, r=me
Browse files Browse the repository at this point in the history
UPGRADE_NSPR_RELEASE
  • Loading branch information
kaie committed Feb 9, 2019
1 parent ce23db0 commit eba8dc2
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 52 deletions.
2 changes: 1 addition & 1 deletion nsprpub/TAG-INFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NSPR_4_20_RTM
753fe0f7964c
1 change: 0 additions & 1 deletion nsprpub/config/prdepend.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
*/

#error "Do not include this header file."

19 changes: 2 additions & 17 deletions nsprpub/configure
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ with_android_ndk
with_android_toolchain
with_android_version
with_android_platform
with_gonk
with_dist_prefix
with_dist_bindir
with_dist_includedir
Expand Down Expand Up @@ -873,6 +872,7 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'

includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
Expand Down Expand Up @@ -1484,7 +1484,6 @@ Optional Packages:
Android platform version, default 5 for arm, 9 for x86/mips
--with-android-platform=DIR
location of platform dir
--with-gonk=DIR location of gonk dir
--with-dist-prefix=DIST_PREFIX
place build files in DIST_PREFIX dist
--with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin
Expand Down Expand Up @@ -2488,7 +2487,7 @@ test -n "$target_alias" &&
program_prefix=${target_alias}-
MOD_MAJOR_VERSION=4
MOD_MINOR_VERSION=20
MOD_MINOR_VERSION=21
MOD_PATCH_VERSION=0
NSPR_MODNAME=nspr20
_HAVE_PTHREADS=
Expand Down Expand Up @@ -2656,19 +2655,6 @@ mipsel-*android*)
;;
esac
# Check whether --with-gonk was given.
if test "${with_gonk+set}" = set; then :
withval=$with_gonk; gonkdir=$withval
fi
if test -n "$gonkdir" ; then
$as_echo "#define ANDROID 1" >>confdefs.h
else
case "$target" in
*-android*|*-linuxandroid*)
if test -z "$android_ndk" ; then
Expand Down Expand Up @@ -2754,7 +2740,6 @@ $as_echo "$android_platform" >&6; }
;;
esac
fi
dist_prefix='${MOD_DEPTH}/dist'
dist_bindir='${dist_prefix}/bin'
Expand Down
18 changes: 1 addition & 17 deletions nsprpub/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dnl ========================================================
dnl = Defaults
dnl ========================================================
MOD_MAJOR_VERSION=4
MOD_MINOR_VERSION=20
MOD_MINOR_VERSION=21
MOD_PATCH_VERSION=0
NSPR_MODNAME=nspr20
_HAVE_PTHREADS=
Expand Down Expand Up @@ -147,21 +147,6 @@ mipsel-*android*)
;;
esac

dnl ========================================================
dnl = Gonk is a fork of Android used for Mozilla's B2G project.
dnl = Configuration is done largely by the top level config
dnl = and the specified gonk directory doesn't matter here.
dnl ========================================================

AC_ARG_WITH(gonk,
[ --with-gonk=DIR location of gonk dir],
gonkdir=$withval)

if test -n "$gonkdir" ; then
dnl Most things are directly configured by env vars when building for gonk

AC_DEFINE(ANDROID)
else
case "$target" in
*-android*|*-linuxandroid*)
if test -z "$android_ndk" ; then
Expand Down Expand Up @@ -246,7 +231,6 @@ case "$target" in
AC_DEFINE(ANDROID)
;;
esac
fi

dnl ========================================================
dnl =
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/lib/ds/plvrsion.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
/* filename */ _PRODUCTION, /* the produced library name */
/* description */ "Portable runtime", /* what we are */
/* security */ "N/A", /* not applicable here */
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
/* comment */ "http://www.mozilla.org/MPL/",
/* specialString */ ""
};
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/lib/libc/src/plvrsion.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
/* filename */ _PRODUCTION, /* the produced library name */
/* description */ "Portable runtime", /* what we are */
/* security */ "N/A", /* not applicable here */
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
/* comment */ "http://www.mozilla.org/MPL/",
/* specialString */ ""
};
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/lib/prstreams/plvrsion.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
/* filename */ _PRODUCTION, /* the produced library name */
/* description */ "Portable runtime", /* what we are */
/* security */ "N/A", /* not applicable here */
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
/* comment */ "http://www.mozilla.org/MPL/",
/* specialString */ ""
};
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/pr/include/md/_win32_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extern void _MD_win32_map_accept_error(PRInt32 err);
extern void _MD_win32_map_acceptex_error(PRInt32 err);
#define _PR_MD_MAP_ACCEPTEX_ERROR _MD_win32_map_acceptex_error

extern PRInt32 _MD_win32_map_connect_error(PRInt32 err);
extern void _MD_win32_map_connect_error(PRInt32 err);
#define _PR_MD_MAP_CONNECT_ERROR _MD_win32_map_connect_error

extern void _MD_win32_map_bind_error(PRInt32 err);
Expand Down
8 changes: 5 additions & 3 deletions nsprpub/pr/include/prbit.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ PR_BEGIN_EXTERN_C
** functions.
*/
#if defined(_WIN32) && (_MSC_VER >= 1300) && \
(defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM))
(defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || \
defined(_M_ARM64))
# include <intrin.h>
# pragma intrinsic(_BitScanForward,_BitScanReverse)
__forceinline static int __prBitScanForward32(unsigned int val)
Expand All @@ -33,7 +34,8 @@ PR_BEGIN_EXTERN_C
# define pr_bitscan_clz32(val) __prBitScanReverse32(val)
# define PR_HAVE_BUILTIN_BITSCAN32
#elif ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) && \
(defined(__i386__) || defined(__x86_64__) || defined(__arm__))
(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
defined(__aarch64__))
# define pr_bitscan_ctz32(val) __builtin_ctz(val)
# define pr_bitscan_clz32(val) __builtin_clz(val)
# define PR_HAVE_BUILTIN_BITSCAN32
Expand Down Expand Up @@ -136,7 +138,7 @@ NSPR_API(PRIntn) PR_FloorLog2(PRUint32 i);
*/

#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_AMD64) || \
defined(_M_X64) || defined(_M_ARM))
defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64))
#include <stdlib.h>
#pragma intrinsic(_rotl, _rotr)
#define PR_ROTATE_LEFT32(a, bits) _rotl(a, bits)
Expand Down
6 changes: 3 additions & 3 deletions nsprpub/pr/include/prinit.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ PR_BEGIN_EXTERN_C
** The format of the version string is
** "<major version>.<minor version>[.<patch level>] [<Beta>]"
*/
#define PR_VERSION "4.20"
#define PR_VERSION "4.21 Beta"
#define PR_VMAJOR 4
#define PR_VMINOR 20
#define PR_VMINOR 21
#define PR_VPATCH 0
#define PR_BETA PR_FALSE
#define PR_BETA PR_TRUE

/*
** PRVersionCheck
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/pr/src/io/pripv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ static PRInt32 PR_CALLBACK Ipv6ToIpv4SocketRecvFrom(PRFileDesc *fd, void *buf,

#if defined(_PR_INET6_PROBE)
static PRBool ipv6_is_present;
extern PRBool _pr_test_ipv6_socket(void);
PR_EXTERN(PRBool) _pr_test_ipv6_socket(void);

#if !defined(_PR_INET6) && defined(_PR_HAVE_GETIPNODEBYNAME)
extern PRStatus _pr_find_getipnodebyname(void);
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/pr/src/prvrsion.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
/* filename */ _PRODUCTION, /* the produced library name */
/* description */ "Portable runtime", /* what we are */
/* security */ "N/A", /* not applicable here */
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
/* comment */ "License information: http://www.mozilla.org/MPL/",
/* specialString */ ""
};
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/pr/tests/abstract.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ main()
int
main()
{
prinf("PASS\n");
printf("PASS\n");
return 0;
}
#endif
6 changes: 3 additions & 3 deletions nsprpub/pr/tests/vercheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static char *compatible_version[] = {
"4.10", "4.10.1", "4.10.2", "4.10.3", "4.10.4",
"4.10.5", "4.10.6", "4.10.7", "4.10.8", "4.10.9",
"4.10.10", "4.11", "4.12", "4.13", "4.14", "4.15",
"4.16", "4.17", "4.18", "4.19",
"4.16", "4.17", "4.18", "4.19", "4.20",
PR_VERSION
};

Expand All @@ -56,8 +56,8 @@ static char *incompatible_version[] = {
"3.0", "3.0.1",
"3.1", "3.1.1", "3.1.2", "3.1.3",
"3.5", "3.5.1",
"4.20.1",
"4.21", "4.21.1",
"4.21.1",
"4.22", "4.22.1",
"10.0", "11.1", "12.14.20"
};

Expand Down

0 comments on commit eba8dc2

Please sign in to comment.