head 1.3; access; symbols pkgsrc-2014Q3:1.2.0.4 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.2 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.1.0.4 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.2 pkgsrc-2013Q4-base:1.1; locks; strict; comment @// @; 1.3 date 2014.11.02.05.40.31; author ryoon; state dead; branches; next 1.2; commitid NE5EWeAimDmUuzWx; 1.2 date 2014.06.22.08.54.39; author ryoon; state Exp; branches; next 1.1; commitid PZNghMi9oWIHQuFx; 1.1 date 2013.11.08.12.55.52; author ryoon; state Exp; branches; next ; commitid FJwwDfOqB0GPrtcx; desc @@ 1.3 log @Update to 2.30 * Update enigmail to 1.7.2 Changelog: * SeaMonkey specific changes are not available. * Use xul engine from Firefox 33. @ text @$NetBSD: patch-mozilla_gfx_skia_src_utils_SkThreadUtils__pthread__linux.cpp,v 1.2 2014/06/22 08:54:39 ryoon Exp $ * Use cpuset(3) for NetBSD. From rmind@@. --- mozilla/gfx/skia/src/utils/SkThreadUtils_pthread_linux.cpp.orig 2014-06-13 00:46:07.000000000 +0000 +++ mozilla/gfx/skia/src/utils/SkThreadUtils_pthread_linux.cpp @@@@ -12,16 +12,20 @@@@ #include "SkThreadUtils.h" #include "SkThreadUtils_pthread.h" +#include #include #ifdef __FreeBSD__ #include #endif +#ifdef __NetBSD__ +#include +#endif #if defined(__FreeBSD__) || defined(__NetBSD__) #define cpu_set_t cpuset_t #endif -#ifndef CPU_COUNT +#if !defined(CPU_COUNT) && !defined(__NetBSD__) static int CPU_COUNT(cpu_set_t *set) { int count = 0; for (int i = 0; i < CPU_SETSIZE; i++) { @@@@ -31,7 +35,24 @@@@ static int CPU_COUNT(cpu_set_t *set) { } return count; } -#endif /* !CPU_COUNT */ +#endif + +#if defined(__NetBSD__) + +#define CPU_ISSET(c, s) cpuset_isset(c, s) + +static int CPU_COUNT(cpuset_t *set) { + static const int ncpu = sysconf(_SC_NPROCESSORS_CONF); + int count = 0; + + for (int i = 0; i < ncpu; i++) { + if (cpuset_isset(i, set)) { + count++; + } + } + return count; + } +#endif static int nth_set_cpu(unsigned int n, cpu_set_t* cpuSet) { n %= CPU_COUNT(cpuSet); @@@@ -51,6 +72,7 @@@@ bool SkThread::setProcessorAffinity(unsi return false; } +#if !defined(__NetBSD__) cpu_set_t parentCpuset; if (0 != pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &parentCpuset)) { return false; @@@@ -62,4 +84,23 @@@@ bool SkThread::setProcessorAffinity(unsi return 0 == pthread_setaffinity_np(pthreadData->fPThread, sizeof(cpu_set_t), &cpuset); +#else + cpuset_t *cpuset = cpuset_create(); + if (!cpuset) { + return false; + } + size_t csize = cpuset_size(cpuset); + if (0 != pthread_getaffinity_np(pthread_self(), csize, cpuset)) { + cpuset_destroy(cpuset); + return false; + } + + int nthcpu = nth_set_cpu(processor, cpuset); + cpuset_zero(cpuset); + cpuset_set(nthcpu, cpuset); + + bool ok = 0 == pthread_setaffinity_np(pthreadData->fPThread, csize, cpuset); + cpuset_destroy(cpuset); + return ok; +#endif } @ 1.2 log @Update to 2.26.1 Changelog: SeaMonkey-specific changes The delimiter for forwarded messages can now be configured. An option to not strip signatures on reply has been added to prevent top signatures from deleting the body. Add to Searchbar (search-engine autodiscovery) was implemented. The location bar tooltip now shows the complete current URL in case it is displayed only partially. See the changes page for a more complete overview. Mozilla platform changes The Gamepad API has been finalized and enabled (learn more). navigator.plugins is no longer enumerable, for user privacy. ECMAScript Internationalization API has been enabled. 'box-sizing' (dropping the -moz- prefix) has been implemented. SharedWorker is now enabled by default. CSS3 variables have been implemented. Console object is now available in Web Workers. Promises have been enabled by default. has been implemented and enabled. has been implemented and enabled. Fixed several stability issues. Fixed in SeaMonkey 2.26.1 MFSA 2014-54 Buffer overflow in Gamepad API MFSA 2014-53 Buffer overflow in Web Audio Speex resampler MFSA 2014-52 Use-after-free with SMIL Animation Controller MFSA 2014-51 Use-after-free in Event Listener Manager MFSA 2014-49 Use-after-free and out of bounds issues found using Address Sanitizer MFSA 2014-48 Miscellaneous memory safety hazards (rv:30.0 / rv:24.6) Fixed in SeaMonkey 2.26 MFSA 2014-47 Debugger can bypass XrayWrappers with JavaScript MFSA 2014-46 Use-after-free in nsHostResolve MFSA 2014-45 Incorrect IDNA domain name matching for wildcard certificates MFSA 2014-44 Use-after-free in imgLoader while resizing images MFSA 2014-43 Cross-site scripting (XSS) using history navigations MFSA 2014-42 Privilege escalation through Web Notification API MFSA 2014-41 Out-of-bounds write in Cairo MFSA 2014-39 Use-after-free in the Text Track Manager for HTML video MFSA 2014-38 Buffer overflow when using non-XBL object as XBL MFSA 2014-37 Out of bounds read while decoding JPG images MFSA 2014-36 Web Audio memory corruption issues MFSA 2014-34 Miscellaneous memory safety hazards (rv:29.0 / rv:24.5) @ text @d1 1 a1 1 $NetBSD: patch-mozilla_gfx_skia_src_utils_SkThreadUtils__pthread__linux.cpp,v 1.1 2013/11/08 12:55:52 ryoon Exp $ @ 1.1 log @Fix PR pkg/48240 and PR pkg/48370 * Add forgotten patch for NetBSD's cpuset(3), fix build * Use __fstat50 etc instead of fstat on NetBSD. Based on martin@@'s patch for firefox 27.0. Restore session is recovered on NetBSD/amd64. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- mozilla/gfx/skia/src/utils/SkThreadUtils_pthread_linux.cpp.orig 2013-10-29 01:20:50.000000000 +0000 d7 1 a7 1 @@@@ -12,26 +12,47 @@@@ d29 5 a33 7 if (CPU_ISSET(i, set)) { count++; - } + } + } + return count; +} d48 3 a50 4 } return count; } -#endif /* !CPU_COUNT */ @