Projects
openEuler:Mainline
nspr
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:nspr.spec
Changed
@@ -1,7 +1,7 @@ -%global nspr_version 4.32 +%global nspr_version 4.35 Name: nspr -Version: 4.32.0 -Release: 1 +Version: 4.35.0 +Release: 2 Summary: Netscape Portable Runtime License: MPLv2.0 URL: http://www.mozilla.org/projects/nspr @@ -35,7 +35,8 @@ %configure \ --includedir=%{_includedir}/nspr4 \ --enable-64bit \ - --enable-optimize="$RPM_OPT_FLAGS" + --enable-optimize="$RPM_OPT_FLAGS" \ + --disable-debug %make_build date +"%e %B %Y" | tr -d '\n' > date.xml echo -n %{version} > version.xml @@ -83,6 +84,15 @@ %{_mandir}/man*/* %changelog +* Fri Feb 24 2023 Wenyu Liu <liuwenyu7@huawei.com> - 4.35.0-2 +- disable debug option + +* Wed Dec 28 2022 Wenyu Liu <liuwenyu7@huawei.com> - 4.35.0-1 +- update to 4.35.0 + +* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 4.32.0-2 +- Support loongarch64 + * Mon Nov 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 4.32.0-1 - update to 4.32.0
View file
_service:tar_scm:nspr-gcc-atomics.patch
Changed
@@ -1,12 +1,8 @@ diff --git a/nspr/pr/include/md/_linux.h b/nspr/pr/include/md/_linux.h +index ad57d08..57877b8 100644 --- a/nspr/pr/include/md/_linux.h +++ b/nspr/pr/include/md/_linux.h -@@ -96,53 +96,73 @@ - #define NO_DLOPEN_NULL - #endif - - #if defined(__FreeBSD_kernel__) || defined(__GNU__) - #define _PR_HAVE_SOCKADDR_LEN +@@ -105,6 +105,15 @@ #endif #if defined(__i386__) @@ -22,11 +18,7 @@ #define _PR_HAVE_ATOMIC_OPS #define _MD_INIT_ATOMIC() extern PRInt32 _PR_x86_AtomicIncrement(PRInt32 *val); - #define _MD_ATOMIC_INCREMENT _PR_x86_AtomicIncrement - extern PRInt32 _PR_x86_AtomicDecrement(PRInt32 *val); - #define _MD_ATOMIC_DECREMENT _PR_x86_AtomicDecrement - extern PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val); - #define _MD_ATOMIC_ADD _PR_x86_AtomicAdd +@@ -116,6 +125,7 @@ extern PRInt32 _PR_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val); extern PRInt32 _PR_x86_AtomicSet(PRInt32 *val, PRInt32 newval); #define _MD_ATOMIC_SET _PR_x86_AtomicSet #endif @@ -34,15 +26,7 @@ #if defined(__ia64__) #define _PR_HAVE_ATOMIC_OPS - #define _MD_INIT_ATOMIC() - extern PRInt32 _PR_ia64_AtomicIncrement(PRInt32 *val); - #define _MD_ATOMIC_INCREMENT _PR_ia64_AtomicIncrement - extern PRInt32 _PR_ia64_AtomicDecrement(PRInt32 *val); - #define _MD_ATOMIC_DECREMENT _PR_ia64_AtomicDecrement - extern PRInt32 _PR_ia64_AtomicAdd(PRInt32 *ptr, PRInt32 val); - #define _MD_ATOMIC_ADD _PR_ia64_AtomicAdd - extern PRInt32 _PR_ia64_AtomicSet(PRInt32 *val, PRInt32 newval); - #define _MD_ATOMIC_SET _PR_ia64_AtomicSet +@@ -131,6 +141,15 @@ extern PRInt32 _PR_ia64_AtomicSet(PRInt32 *val, PRInt32 newval); #endif #if defined(__x86_64__) @@ -58,20 +42,14 @@ #define _PR_HAVE_ATOMIC_OPS #define _MD_INIT_ATOMIC() extern PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val); - #define _MD_ATOMIC_INCREMENT _PR_x86_64_AtomicIncrement - extern PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val); - #define _MD_ATOMIC_DECREMENT _PR_x86_64_AtomicDecrement - extern PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val); - #define _MD_ATOMIC_ADD _PR_x86_64_AtomicAdd +@@ -142,6 +161,7 @@ extern PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val); extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval); #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet #endif +#endif - #if defined(__or1k__) + #if defined(__loongarch__) #if defined(__GNUC__) - /* Use GCC built-in functions */ - #define _PR_HAVE_ATOMIC_OPS - #define _MD_INIT_ATOMIC() - #define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1) - #define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1) +-- +2.32.1 (Apple Git-133) +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/nspr.git</param> - <param name="revision">81ecb83fda7edf56e3244794ae9ec5c493eecc8d</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/.hg_archival.txt -> _service:tar_scm:nspr-4.35.tar.gz/nspr/.hg_archival.txt
Changed
@@ -1,4 +1,4 @@ repo: a4b34919bf34db2ee22acbbc305693c8980b6dc6 -node: 40050f21eeeddfdc919f42f7552fcbf472f7b9e4 +node: b563bfc16c887c48b038b7b441fcc4e40a126d3b branch: default -tag: NSPR_4_32_RTM +tag: NSPR_4_35_RTM
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/configure -> _service:tar_scm:nspr-4.35.tar.gz/nspr/configure
Changed
@@ -2486,7 +2486,7 @@ program_prefix=${target_alias}- MOD_MAJOR_VERSION=4 -MOD_MINOR_VERSION=32 +MOD_MINOR_VERSION=35 MOD_PATCH_VERSION=0 NSPR_MODNAME=nspr20 _HAVE_PTHREADS=
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/configure.in -> _service:tar_scm:nspr-4.35.tar.gz/nspr/configure.in
Changed
@@ -8,14 +8,14 @@ AC_INIT AC_CONFIG_SRCDIR(pr/include/nspr.h) -AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf) +AC_CONFIG_AUX_DIR(build/autoconf) AC_CANONICAL_TARGET dnl ======================================================== dnl = Defaults dnl ======================================================== MOD_MAJOR_VERSION=4 -MOD_MINOR_VERSION=32 +MOD_MINOR_VERSION=35 MOD_PATCH_VERSION=0 NSPR_MODNAME=nspr20 _HAVE_PTHREADS=
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/include/md/_linux.cfg -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/include/md/_linux.cfg
Changed
@@ -499,7 +499,7 @@ #elif defined(__mips__) /* For _ABI64 */ -#include <sgidefs.h> +#include <asm/sgidefs.h> #ifdef __MIPSEB__ #define IS_BIG_ENDIAN 1 @@ -1255,6 +1255,52 @@ #define PR_BYTES_PER_WORD_LOG2 3 #define PR_BYTES_PER_DWORD_LOG2 3 +#elif defined(__loongarch64) + +#undef IS_BIG_ENDIAN +#define IS_LITTLE_ENDIAN 1 +#define IS_64 + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 8 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 8 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 64 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 64 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 6 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 6 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 8 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 8 +#define PR_ALIGN_OF_WORD 8 + +#define PR_BYTES_PER_WORD_LOG2 3 +#define PR_BYTES_PER_DWORD_LOG2 3 + #else #error "Unknown CPU architecture"
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/include/md/_linux.h -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/include/md/_linux.h
Changed
@@ -73,6 +73,8 @@ #define _PR_SI_ARCHITECTURE "nds32" #elif defined(__xtensa__) #define _PR_SI_ARCHITECTURE "xtensa" +#elif defined(__loongarch64) +#define _PR_SI_ARCHITECTURE "loongarch64" #else #error "Unknown CPU architecture" #endif @@ -141,6 +143,18 @@ #define _MD_ATOMIC_SET _PR_x86_64_AtomicSet #endif +#if defined(__loongarch__) +#if defined(__GNUC__) +/* Use GCC built-in functions */ +#define _PR_HAVE_ATOMIC_OPS +#define _MD_INIT_ATOMIC() +#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1) +#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1) +#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i) +#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv) +#endif +#endif + #if defined(__or1k__) #if defined(__GNUC__) /* Use GCC built-in functions */
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/include/prinit.h -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/include/prinit.h
Changed
@@ -31,9 +31,9 @@ ** The format of the version string is ** "<major version>.<minor version>.<patch level> <Beta>" */ -#define PR_VERSION "4.32" +#define PR_VERSION "4.35" #define PR_VMAJOR 4 -#define PR_VMINOR 32 +#define PR_VMINOR 35 #define PR_VPATCH 0 #define PR_BETA PR_FALSE
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/include/private/pprthred.h -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/include/private/pprthred.h
Changed
@@ -301,9 +301,9 @@ ---------------------------------------------------------------------------*/ #ifdef XP_UNIX -extern void PR_XLock(void); -extern void PR_XUnlock(void); -extern PRBool PR_XIsLocked(void); +extern void _PR_XLock(void); +extern void _PR_XUnlock(void); +extern PRBool _PR_XIsLocked(void); #endif /* XP_UNIX */ PR_END_EXTERN_C
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/include/prnetdb.h -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/include/prnetdb.h
Changed
@@ -428,6 +428,9 @@ NSPR_API(void *) PR_EnumerateAddrInfo( void *enumPtr, const PRAddrInfo *addrInfo, PRUint16 port, PRNetAddr *result); +NSPR_API(PRStatus) PR_GetPrefLoopbackAddrInfo(PRNetAddr *result, + PRUint16 port); + /*********************************************************************** ** FUNCTION: ** DESCRIPTION: PR_GetCanonNameFromAddrInfo()
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/io/prsocket.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/io/prsocket.c
Changed
@@ -322,7 +322,7 @@ #if defined(_WIN64) if (fd->secret->overlappedActive) { PRInt32 rvSent; - if (GetOverlappedResult(osfd, &fd->secret->ol, &rvSent, FALSE) == FALSE) { + if (GetOverlappedResult((HANDLE)osfd, &fd->secret->ol, &rvSent, FALSE) == FALSE) { err = WSAGetLastError(); PR_LOG(_pr_io_lm, PR_LOG_MIN, ("SocketConnectContinue GetOverlappedResult failed %d\n", err)); @@ -354,7 +354,7 @@ if (fd->secret->overlappedActive) { PR_ASSERT(fd->secret->nonblocking); PRInt32 rvSent; - if (GetOverlappedResult(osfd, &fd->secret->ol, &rvSent, FALSE) == TRUE) { + if (GetOverlappedResult((HANDLE)osfd, &fd->secret->ol, &rvSent, FALSE) == TRUE) { fd->secret->overlappedActive = PR_FALSE; PR_LOG(_pr_io_lm, PR_LOG_MIN, ("SocketConnectContinue GetOverlappedResult succeeded\n"));
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/md/unix/unix.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/md/unix/unix.c
Changed
@@ -2755,8 +2755,8 @@ _md_iovector._mmap64 = mmap64; #if (defined(ANDROID) && __ANDROID_API__ < 21) /* Same as the open64 case for Android. */ - _md_iovector._fstat64 = fstat; - _md_iovector._stat64 = stat; + _md_iovector._fstat64 = (_MD_Fstat64)fstat; + _md_iovector._stat64 = (_MD_Stat64)stat; #else _md_iovector._fstat64 = fstat64; _md_iovector._stat64 = stat64; @@ -3301,36 +3301,21 @@ ** in a pre-emptive threaded environment, we need to use a lock. */ -void PR_XLock(void) +void _PR_XLock(void) { PR_EnterMonitor(_pr_Xfe_mon); } -void PR_XUnlock(void) +void _PR_XUnlock(void) { PR_ExitMonitor(_pr_Xfe_mon); } -PRBool PR_XIsLocked(void) +PRBool _PR_XIsLocked(void) { return (PR_InMonitor(_pr_Xfe_mon)) ? PR_TRUE : PR_FALSE; } -void PR_XWait(int ms) -{ - PR_Wait(_pr_Xfe_mon, PR_MillisecondsToInterval(ms)); -} - -void PR_XNotify(void) -{ - PR_Notify(_pr_Xfe_mon); -} - -void PR_XNotifyAll(void) -{ - PR_NotifyAll(_pr_Xfe_mon); -} - #if defined(HAVE_FCNTL_FILE_LOCKING) PRStatus @@ -3656,7 +3641,8 @@ int events = filedesi.events; PRBool fdHasEvent = PR_FALSE; - if (osfd < 0) { + PR_ASSERT(osfd < FD_SETSIZE); + if (osfd < 0 || osfd >= FD_SETSIZE) { continue; /* Skip this osfd. */ } @@ -3701,6 +3687,10 @@ if (filedesi.fd < 0) { continue; } + if (filedesi.fd >= FD_SETSIZE) { + filedesi.revents |= POLLNVAL; + continue; + } if (FD_ISSET(filedesi.fd, &rd)) { if (filedesi.events & POLLIN) { filedesi.revents |= POLLIN;
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/md/unix/uxwrap.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/md/unix/uxwrap.c
Changed
@@ -187,10 +187,10 @@ needToLockXAgain = 0; if (rd && (_pr_xt_hack_fd != -1) - && FD_ISSET(_pr_xt_hack_fd, rd) && PR_XIsLocked() + && FD_ISSET(_pr_xt_hack_fd, rd) && _PR_XIsLocked() && (!_pr_xt_hack_okayToReleaseXLock || _pr_xt_hack_okayToReleaseXLock())) { - PR_XUnlock(); + _PR_XUnlock(); needToLockXAgain = 1; } @@ -198,7 +198,7 @@ retVal = _PR_WaitForMultipleFDs(unixpds, pdcnt, timeout); if (needToLockXAgain) { - PR_XLock(); + _PR_XLock(); } }
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/md/windows/w95sock.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/md/windows/w95sock.c
Changed
@@ -491,7 +491,7 @@ if ( rv < 0 ) { return -1; } - rv = GetOverlappedResult(osfd, &fd->secret->ol, &rvSent, FALSE); + rv = GetOverlappedResult((HANDLE)osfd, &fd->secret->ol, &rvSent, FALSE); if ( rv == TRUE ) { return rvSent; } else {
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/misc/prnetdb.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/misc/prnetdb.c
Changed
@@ -2178,6 +2178,73 @@ #endif } +PR_IMPLEMENT(PRStatus) +PR_GetPrefLoopbackAddrInfo(PRNetAddr *result, + PRUint16 port) +{ + char tmpBuf 40 ; + const int tmpBufSize = sizeof( tmpBuf ); + + if (!result) { + PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); + return PR_FAILURE; + } + + if (!_pr_initialized) _PR_ImplicitInitialization(); + + PR_snprintf(tmpBuf, tmpBufSize, "%u", port ); + +#if !defined(_PR_HAVE_GETADDRINFO) || !defined(AI_PASSIVE) + PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); + return PR_FAILURE; +#else + + PRADDRINFO *res, hints; + PRStatus rv; + + memset(&hints, 0, sizeof(hints)); + + rv = GETADDRINFO(NULL, tmpBuf, &hints, &res); + if (rv == 0) { + PRBool result_still_empty = PR_TRUE; + PRADDRINFO *ai = res; + do { + PRNetAddr aNetAddr; + + while (ai && ai->ai_addrlen > sizeof(PRNetAddr)) + ai = ai->ai_next; + + if (ai) { + /* copy sockaddr to PRNetAddr */ + memcpy(&aNetAddr, ai->ai_addr, ai->ai_addrlen); + aNetAddr.raw.family = ai->ai_addr->sa_family; +#ifdef _PR_INET6 + if (AF_INET6 == aNetAddr.raw.family) + aNetAddr.raw.family = PR_AF_INET6; +#endif + if (ai->ai_addrlen < sizeof(PRNetAddr)) + memset(((char*)result)+ai->ai_addrlen, 0, + sizeof(PRNetAddr) - ai->ai_addrlen); + } + + /* If we obtain more than one result, prefer IPv6. */ + if (result_still_empty || aNetAddr.raw.family == PR_AF_INET6) { + memcpy(result, &aNetAddr, sizeof(PRNetAddr)); + } + result_still_empty = PR_FALSE; + ai = ai->ai_next; + } + while (ai); + + FREEADDRINFO(res); + return PR_SUCCESS; + } + + PR_SetError(PR_DIRECTORY_LOOKUP_ERROR, rv); + return PR_FAILURE; +#endif +} + PR_IMPLEMENT(void) PR_FreeAddrInfo(PRAddrInfo *ai) { #if defined(_PR_HAVE_GETADDRINFO)
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/misc/prsystem.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/misc/prsystem.c
Changed
@@ -206,7 +206,11 @@ size_t len = sizeof(numCpus); mib0 = CTL_HW; +#ifdef HW_NCPUONLINE + mib1 = HW_NCPUONLINE; +#else mib1 = HW_NCPU; +#endif rc = sysctl( mib, 2, &numCpus, &len, NULL, 0 ); if ( -1 == rc ) { numCpus = -1; /* set to -1 for return value on error */
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/src/nspr.def -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/src/nspr.def
Changed
@@ -462,3 +462,7 @@ PR_DuplicateEnvironment; PR_GetEnvSecure; ;+} NSPR_4.10.3; +;+NSPR_4.34 { +;+ global: + PR_GetPrefLoopbackAddrInfo; +;+} NSPR_4.12;
View file
_service:tar_scm:nspr-4.32.tar.gz/nspr/pr/tests/vercheck.c -> _service:tar_scm:nspr-4.35.tar.gz/nspr/pr/tests/vercheck.c
Changed
@@ -42,7 +42,7 @@ "4.10.10", "4.11", "4.12", "4.13", "4.14", "4.15", "4.16", "4.17", "4.18", "4.19", "4.20", "4.21", "4.22", "4.23", "4.24", "4.25", "4,26", "4.27", "4.28", "4.29", - "4.30", "4.31", + "4.30", "4.31", "4.32", "4.33", "4.34", PR_VERSION }; @@ -58,8 +58,8 @@ "3.0", "3.0.1", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.5", "3.5.1", - "4.32.1", - "4.33", "4.33.1", + "4.35.1", + "4.36", "4.36.1", "10.0", "11.1", "12.14.20" };
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2