Hello community, here is the log from the commit of package mozilla-nspr for openSUSE:Factory checked in at 2017-10-10 11:35:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozilla-nspr (Old) and /work/SRC/openSUSE:Factory/.mozilla-nspr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mozilla-nspr" Tue Oct 10 11:35:01 2017 rev:65 rq:531471 version:4.17 Changes: -------- --- /work/SRC/openSUSE:Factory/mozilla-nspr/mozilla-nspr.changes 2017-09-25 13:55:02.103821347 +0200 +++ /work/SRC/openSUSE:Factory/.mozilla-nspr.new/mozilla-nspr.changes 2017-10-10 11:35:11.480000005 +0200 @@ -1,0 +2,8 @@ +Sun Oct 1 21:21:50 UTC 2017 - w...@rosenauer.org + +- update to version 4.17 + * changes to the Windows implementation of the networking code + required for Firefox 57 + * a FreeBSD build fix (bmo#1391716) + +------------------------------------------------------------------- Old: ---- nspr-4.16.tar.gz New: ---- nspr-4.17.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozilla-nspr.spec ++++++ --- /var/tmp/diff_new_pack.9glpIw/_old 2017-10-10 11:35:12.751944182 +0200 +++ /var/tmp/diff_new_pack.9glpIw/_new 2017-10-10 11:35:12.759943830 +0200 @@ -18,7 +18,7 @@ Name: mozilla-nspr -Version: 4.16 +Version: 4.17 Release: 0 Summary: Netscape Portable Runtime License: MPL-2.0 ++++++ nspr-4.16.tar.gz -> nspr-4.17.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/.hg_archival.txt new/nspr-4.17/nspr/.hg_archival.txt --- old/nspr-4.16/nspr/.hg_archival.txt 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/.hg_archival.txt 2017-09-19 18:32:26.000000000 +0200 @@ -1,4 +1,4 @@ repo: a4b34919bf34db2ee22acbbc305693c8980b6dc6 -node: fa3dad3d8099d71ea6d9fe489afb63cb18894f0c +node: 3e67abaf5669114ac87d89c60eb0f0b73a086a2e branch: default -tag: NSPR_4_16_RTM +tag: NSPR_4_17_RTM diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/configure new/nspr-4.17/nspr/configure --- old/nspr-4.16/nspr/configure 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/configure 2017-09-19 18:32:26.000000000 +0200 @@ -2488,7 +2488,7 @@ program_prefix=${target_alias}- MOD_MAJOR_VERSION=4 -MOD_MINOR_VERSION=16 +MOD_MINOR_VERSION=17 MOD_PATCH_VERSION=0 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/configure.in new/nspr-4.17/nspr/configure.in --- old/nspr-4.16/nspr/configure.in 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/configure.in 2017-09-19 18:32:26.000000000 +0200 @@ -15,7 +15,7 @@ dnl = Defaults dnl ======================================================== MOD_MAJOR_VERSION=4 -MOD_MINOR_VERSION=16 +MOD_MINOR_VERSION=17 MOD_PATCH_VERSION=0 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/include/prinet.h new/nspr-4.17/nspr/pr/include/prinet.h --- old/nspr-4.16/nspr/pr/include/prinet.h 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/include/prinet.h 2017-09-19 18:32:26.000000000 +0200 @@ -54,7 +54,7 @@ #endif /* XP_UNIX */ #include <netdb.h> -#if defined(FREEBSD) || defined(BSDI) || defined(QNX) +#if defined(BSDI) || defined(QNX) #include <rpc/types.h> /* the only place that defines INADDR_LOOPBACK */ #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/include/prinit.h new/nspr-4.17/nspr/pr/include/prinit.h --- old/nspr-4.16/nspr/pr/include/prinit.h 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/include/prinit.h 2017-09-19 18:32:26.000000000 +0200 @@ -31,9 +31,9 @@ ** The format of the version string is ** "<major version>.<minor version>[.<patch level>] [<Beta>]" */ -#define PR_VERSION "4.16" +#define PR_VERSION "4.17" #define PR_VMAJOR 4 -#define PR_VMINOR 16 +#define PR_VMINOR 17 #define PR_VPATCH 0 #define PR_BETA PR_FALSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/include/private/pprio.h new/nspr-4.17/nspr/pr/include/private/pprio.h --- old/nspr-4.16/nspr/pr/include/private/pprio.h 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/include/private/pprio.h 2017-09-19 18:32:26.000000000 +0200 @@ -237,6 +237,20 @@ #endif /* WIN32 */ +/* FUNCTION: PR_EXPERIMENTAL_ONLY_IN_4_17_GetOverlappedIOHandle +** DESCRIPTION: +** This function will be available only in nspr version 4.17 +** This functionality is only available on windows. Some windows operation use +** asynchronous (call overlapped) io. One of them is ConnectEx. NSPR uses +** ConnectEx for enabling TCP Fast Open. +** This function returns an OVERLAPPED structure associated with ConnectEx call. +** If ConnectEx has not been called or the io has already finished, the +** function will return PR_INVALID_ARGUMENT_ERROR. +** PRFileDesc continues to be owner of the structure and the structure must not +** be destroyed. +*/ +NSPR_API(PRStatus) PR_EXPERIMENTAL_ONLY_IN_4_17_GetOverlappedIOHandle(PRFileDesc *fd, void **ol); + PR_END_EXTERN_C #endif /* pprio_h___ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/src/io/prsocket.c new/nspr-4.17/nspr/pr/src/io/prsocket.c --- old/nspr-4.16/nspr/pr/src/io/prsocket.c 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/src/io/prsocket.c 2017-09-19 18:32:26.000000000 +0200 @@ -304,7 +304,25 @@ if (err != 0) { _PR_MD_MAP_CONNECT_ERROR(err); } else { +#if defined(_WIN64) + if (fd->secret->overlappedActive) { + PRInt32 rvSent; + if (GetOverlappedResult(osfd, &fd->secret->ol, &rvSent, FALSE) == FALSE) { + err = WSAGetLastError(); + PR_LOG(_pr_io_lm, PR_LOG_MIN, + ("SocketConnectContinue GetOverlappedResult failed %d\n", err)); + if (err != ERROR_IO_INCOMPLETE) { + _PR_MD_MAP_CONNECT_ERROR(err); + fd->secret->overlappedActive = PR_FALSE; + } + } + } + if (err == 0) { + PR_SetError(PR_UNKNOWN_ERROR, 0); + } +#else PR_SetError(PR_UNKNOWN_ERROR, 0); +#endif } return PR_FAILURE; } @@ -1666,6 +1684,33 @@ fd->secret->md.osfd = handle; } +/* Expose OVERLAPPED if present. OVERLAPPED is implemented only on WIN95. */ +PR_IMPLEMENT(PRStatus) +PR_EXPERIMENTAL_ONLY_IN_4_17_GetOverlappedIOHandle(PRFileDesc *fd, void **ol) +{ +#if defined(_WIN64) && defined(WIN95) + *ol = NULL; + if (fd) { + fd = PR_GetIdentitiesLayer(fd, PR_NSPR_IO_LAYER); + } + if (!fd) { + PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); + return PR_FAILURE; + } + + if (!fd->secret->overlappedActive) { + PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); + return PR_FAILURE; + } + + *ol = &fd->secret->ol; + return PR_SUCCESS; +#else + PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); + return PR_FAILURE; +#endif +} + /* ** Select compatibility ** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/src/md/windows/win32_errors.c new/nspr-4.17/nspr/pr/src/md/windows/win32_errors.c --- old/nspr-4.16/nspr/pr/src/md/windows/win32_errors.c 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/src/md/windows/win32_errors.c 2017-09-19 18:32:26.000000000 +0200 @@ -166,21 +166,26 @@ prError = PR_ADDRESS_IN_USE_ERROR; break; case WSAEADDRNOTAVAIL: + case ERROR_INVALID_NETNAME: prError = PR_ADDRESS_NOT_AVAILABLE_ERROR; break; case WSAEAFNOSUPPORT: + case ERROR_INCORRECT_ADDRESS: prError = PR_ADDRESS_NOT_SUPPORTED_ERROR; break; case WSAEALREADY: + case ERROR_ALREADY_INITIALIZED: prError = PR_ALREADY_INITIATED_ERROR; break; case WSAEBADF: prError = PR_BAD_DESCRIPTOR_ERROR; break; case WSAECONNABORTED: + case ERROR_CONNECTION_ABORTED: prError = PR_CONNECT_ABORTED_ERROR; break; case WSAECONNREFUSED: + case ERROR_CONNECTION_REFUSED: prError = PR_CONNECT_REFUSED_ERROR; break; case WSAECONNRESET: @@ -193,6 +198,7 @@ prError = PR_ACCESS_FAULT_ERROR; break; case WSAEHOSTUNREACH: + case ERROR_HOST_UNREACHABLE: prError = PR_HOST_UNREACHABLE_ERROR; break; case WSAEINVAL: @@ -208,12 +214,14 @@ prError = PR_BUFFER_OVERFLOW_ERROR; break; case WSAENETDOWN: + case ERROR_NO_NETWORK: prError = PR_NETWORK_DOWN_ERROR; break; case WSAENETRESET: prError = PR_CONNECT_ABORTED_ERROR; break; case WSAENETUNREACH: + case ERROR_NETWORK_UNREACHABLE: prError = PR_NETWORK_UNREACHABLE_ERROR; break; case WSAENOBUFS: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/src/pthreads/ptio.c new/nspr-4.17/nspr/pr/src/pthreads/ptio.c --- old/nspr-4.16/nspr/pr/src/pthreads/ptio.c 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/src/pthreads/ptio.c 2017-09-19 18:32:26.000000000 +0200 @@ -4744,6 +4744,14 @@ return osfd; } /* PR_FileDesc2NativeHandle */ +/* Expose OVERLAPPED if present. OVERLAPPED is implemented only on WIN95. */ +PR_IMPLEMENT(PRStatus) +PR_EXPERIMENTAL_ONLY_IN_4_17_GetOverlappedIOHandle(PRFileDesc *fd, void **ol) +{ + PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); + return PR_FAILURE; +} + PR_IMPLEMENT(void) PR_ChangeFileDescNativeHandle(PRFileDesc *fd, PRInt32 handle) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.16/nspr/pr/tests/vercheck.c new/nspr-4.17/nspr/pr/tests/vercheck.c --- old/nspr-4.16/nspr/pr/tests/vercheck.c 2017-07-27 14:31:27.000000000 +0200 +++ new/nspr-4.17/nspr/pr/tests/vercheck.c 2017-09-19 18:32:26.000000000 +0200 @@ -39,7 +39,8 @@ "4.9.6", "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.10.10", "4.11", "4.12", "4.13", "4.14", "4.15", + "4.16", PR_VERSION }; @@ -55,8 +56,8 @@ "3.0", "3.0.1", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.5", "3.5.1", - "4.16.1", - "4.17", "4.17.1", + "4.17.1", + "4.18", "4.18.1", "10.0", "11.1", "12.14.20" };