devel/nspr: update to 4.35.

remove patch from sthen@ to use HW_NCPUONLINE that was merged upstream
in #1768141
This commit is contained in:
landry 2022-09-19 02:29:50 +00:00
parent adb114e47e
commit de64330b4a
3 changed files with 3 additions and 22 deletions

View File

@ -1,6 +1,6 @@
COMMENT = Netscape Portable Runtime
VER= 4.34.1
VER= 4.35
DISTNAME= nspr-${VER}
SO_VERSION= 24.1

View File

@ -1,2 +1,2 @@
SHA256 (nspr-4.34.1.tar.gz) = xbg1TEi2Mrj0wZcGKBRsDgwMqPMscxXX1XNsAC4Dd08=
SIZE (nspr-4.34.1.tar.gz) = 1096874
SHA256 (nspr-4.35.tar.gz) = fqMpfqWWm10lpd2NR/JEPNqI6e50YwH24eFCb4pqvI8=
SIZE (nspr-4.35.tar.gz) = 1096974

View File

@ -1,19 +0,0 @@
have PR_GetNumberOfProcessors() report online CPUs not all CPUs
https://bugzilla.mozilla.org/show_bug.cgi?id=1768141
Index: nspr/pr/src/misc/prsystem.c
--- nspr/pr/src/misc/prsystem.c.orig
+++ nspr/pr/src/misc/prsystem.c
@@ -206,7 +206,11 @@ PR_IMPLEMENT(PRInt32) PR_GetNumberOfProcessors( void )
size_t len = sizeof(numCpus);
mib[0] = CTL_HW;
+#ifdef HW_NCPUONLINE
+ mib[1] = HW_NCPUONLINE;
+#else
mib[1] = HW_NCPU;
+#endif
rc = sysctl( mib, 2, &numCpus, &len, NULL, 0 );
if ( -1 == rc ) {
numCpus = -1; /* set to -1 for return value on error */