head 1.3; access; symbols pkgsrc-2022Q3:1.2.0.16 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.14 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.12 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.10 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.8 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.6 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.4 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.2 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.1.0.2; locks; strict; comment @// @; 1.3 date 2022.10.08.21.18.55; author ryoon; state dead; branches; next 1.2; commitid RHb00lnqGgHxzXWD; 1.2 date 2020.11.17.16.11.06; author ryoon; state Exp; branches; next 1.1; commitid AvaNaDReFyC33gwC; 1.1 date 2020.10.23.12.37.14; author tnn; state Exp; branches 1.1.2.1; next ; commitid 1q9tEWE2viE4F1tC; 1.1.2.1 date 2020.10.23.12.37.14; author spz; state dead; branches; next 1.1.2.2; commitid cd6NSZuURmCgnNtC; 1.1.2.2 date 2020.10.29.12.18.54; author spz; state Exp; branches; next ; commitid cd6NSZuURmCgnNtC; desc @@ 1.3 log @firefox: Update to 105.0.3 * Add --enable-new-pass-manager. * Disable sysutils/dbus dependency for non-Linux platforms by default. Changelog: 105.0.3: Fixed * Mitigated frequent crashes for Windows users with Avast or AVG Antivirus software installed (bug 1794064) 105.0.2: Fixed * Fixed poor contrast on various menu items with certain themes on Linux systems (bug 1792063) * Fixed the scrollbar appearing on the wrong side of select elements in right-to-left locales (bug 1791219) * Fixed a possible deadlock when loading some sites in Troubleshoot Mode (bug 1786259) * Fixed a bug causing some dynamic appearance changes to not appear when expected (bug 1786521) * Fixed a bug causing theme styling to not be properly applied to sidebars for some add-ons in Private Browsing Mode (bug 1787543) 105.0.1: Fixed * Reverted focus behavior for new windows back to the content area instead of the address bar (bug 1784692) 105.0: New * Added an option to print only the current page from the print preview dialog. * Firefox now supports partitioned service workers in third-party contexts. You can register service workers in a third-party iframe and it will be partitioned under the top-level domain. * Swipe to navigate (two fingers on a touchpad swiped left or right to perform history back or forward) on Windows is now enabled. * Firefox is now compliant with the User Timing L3 specification, which adds additional optional arguments to the performance.mark and performance.measure methods to provide custom start times, end times, duration, and attached details. * Searching in large lists for individual items is now 2x faster. This performance enhancement replaces array.includes and array.indexOf with an optimized SIMD version. Fixed * Stability on Windows is significantly improved as Firefox handles low-memory situations much better. * Touchpad scrolling on macOS was made more accessible by reducing unintended diagonal scrolling opposite of the intended scroll axis. * Firefox is less likely to run out of memory on Linux and performs more efficiently for the rest of the system when memory runs low. * Various security fixes. Web Platform * Support for the Offscreen Canvas DOM API with full context and font support. The OffscreenCanvas API provides a canvas that can be rendered off-screen in both Window and Web Worker contexts. Security fixes: #CVE-2022-40959: Bypassing FeaturePolicy restrictions on transient pages #CVE-2022-40960: Data-race when parsing non-UTF-8 URLs in threads #CVE-2022-40958: Bypassing Secure Context restriction for cookies with __Host and __Secure prefix #CVE-2022-40961: Stack-buffer overflow when initializing Graphics #CVE-2022-40956: Content-Security-Policy base-uri bypass #CVE-2022-40957: Incoherent instruction cache when building WASM on ARM64 #CVE-2022-40962: Memory safety bugs fixed in Firefox 105 and Firefox ESR 102.3 @ text @$NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.2 2020/11/17 16:11:06 ryoon Exp $ NetBSD/aarch64 does not have the Linux-specific membarrier(2) syscall. --- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2020-11-12 18:04:48.000000000 +0000 +++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp @@@@ -42,6 +42,8 @@@@ # elif defined(__ANDROID__) # include # include +# elif defined(__NetBSD__) + // nothing # else # error "Missing platform-specific declarations for membarrier syscall!" # endif // __linux__ / ANDROID @@@@ -49,7 +51,11 @@@@ # include "vm/JSContext.h" // TlsContext static int membarrier(int cmd, int flags) { +#if defined(__NetBSD__) + return ENOSYS; +#else return syscall(__NR_membarrier, cmd, flags); +#endif } // These definitions come from the Linux kernel source, for kernels before 4.16 @@@@ -116,7 +122,9 @@@@ uint32_t CPU::GetCacheType() { } bool CPU::CanFlushICacheFromBackgroundThreads() { -#if defined(__aarch64__) && (defined(__linux__) || defined(__android__)) +#if defined(__NetBSD__) && defined(__aarch64__) + return false; +#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__)) // On linux, check the kernel supports membarrier(2), that is, it's a kernel // above Linux 4.16 included. // @ 1.2 log @firefox: Update to 83.0 Changelog: Version 83.0, first offered to Release channel users on November 17, 2020 New * Firefox keeps getting faster as a result of significant updates to SpiderMonkey, our JavaScript engine, you will now experience improved page load performance by up to 15%, page responsiveness by up to 12%, and reduced memory usage by up to 8%. We have replaced part of the JavaScript engine that helps to compile and display websites for you, improving security and maintainability of the engine at the same time. * Firefox introduces HTTPS-Only Mode. When enabled, this new mode ensures that every connection Firefox makes to the web is secure and alerts you when a secure connection is not available. You can enable it in Firefox Preferences. * Pinch zooming will now be supported for our users with Windows touchscreen devices and touchpads on Mac devices. Firefox users may now use pinch to zoom on touch-capable devices to zoom in and out of webpages. * Picture-in-Picture now supports keyboard shortcuts for fast forwarding and rewinding videos: use the arrow keys to move forward and back 15 seconds, along with volume controls. For a list of supported commands see Support Mozilla * When you are presenting your screen on a video conference in Firefox, you will see our improved user interface that makes it clearer which devices or displays are being shared. * We've improved functionality and design for a number of Firefox search features: + Selecting a search engine at the bottom of the search panel now enters search mode for that engine, allowing you to see suggestions (if available) for your search terms. The old behavior (immediately performing a search) is available with a shift-click. + When Firefox autocompletes the URL of one of your search engines, you can now search with that engine directly in the address bar by selecting the shortcut in the address bar results. + We've added buttons at the bottom of the search panel to allow you to search your bookmarks, open tabs, and history. * Firefox supports AcroForm, which will allow you to fill in, print, and save supported PDF forms and the PDF viewer also has a new fresh look. * Our users in India on the English build of Firefox will now see Pocket recommendations in their new tab featuring some of the best stories on the web. If you don't see them, you can turn on Pocket articles in your new tab by following these steps. * For the recently released Apple devices built with Apple Silicon CPUs, you can use Firefox 83 and future releases without any change. This release (83) will support emulation under Apple's Rosetta 2 that ships with macOS Big Sur. We are working toward Firefox being natively-compiled for these CPUs in a future release. * This is a major release for WebRender as we roll out to more Firefox users on Windows 7 and 8 as well as on macOS 10.12 to 10.15. Fixed * This release also includes a number of accessibility fixes: + Screen reader features which report paragraphs now correctly report paragraphs instead of lines in Google Docs + When reading by word using a screen reader, words are now correctly reported when there is punctuation nearby + The arrow keys now work correctly after tabbing in the picture-in-picture window * For users on macOS restoring a session with minimized windows, Firefox now uses much less power and you should see much longer battery life. * Various security fixes Security fixes: #CVE-2020-26951: Parsing mismatches could confuse and bypass security sanitizer for chrome privileged code #CVE-2020-26952: Out of memory handling of JITed, inlined functions could lead to a memory corruption #CVE-2020-16012: Variable time processing of cross-origin images during drawImage calls #CVE-2020-26953: Fullscreen could be enabled without displaying the security UI #CVE-2020-26954: Local spoofing of web manifests for arbitrary pages in Firefox for Android #CVE-2020-26955: Cookies set during file downloads are shared between normal and Private Browsing Mode in Firefox for Android #CVE-2020-26956: XSS through paste (manual and clipboard API) #CVE-2020-26957: OneCRL was not working in Firefox for Android #CVE-2020-26958: Requests intercepted through ServiceWorkers lacked MIME type restrictions #CVE-2020-26959: Use-after-free in WebRequestService #CVE-2020-26960: Potential use-after-free in uses of nsTArray #CVE-2020-15999: Heap buffer overflow in freetype #CVE-2020-26961: DoH did not filter IPv4 mapped IP Addresses #CVE-2020-26962: Cross-origin iframes supported login autofill #CVE-2020-26963: History and Location interfaces could have been used to hang the browser #CVE-2020-26964: Firefox for Android's Remote Debugging via USB could have been abused by untrusted apps on older versions of Android #CVE-2020-26965: Software keyboards may have remembered typed passwords #CVE-2020-26966: Single-word search queries were also broadcast to local network #CVE-2020-26967: Mutation Observers could break or confuse Firefox Screenshots feature #CVE-2020-26968: Memory safety bugs fixed in Firefox 83 and Firefox ESR 78.5 #CVE-2020-26969: Memory safety bugs fixed in Firefox 83 @ text @d1 1 a1 1 $NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.1 2020/10/23 12:37:14 tnn Exp $ @ 1.1 log @firefox: NetBSD/aarch64 build fix @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2020-10-14 17:20:19.000000000 +0000 d32 1 a32 1 -#if defined(__aarch64__) && !defined(_MSC_VER) && !defined(XP_DARWIN) d35 1 a35 1 +#elif defined(__aarch64__) && !defined(_MSC_VER) && !defined(XP_DARWIN) @ 1.1.2.1 log @file patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp was added on branch pkgsrc-2020Q3 on 2020-10-29 12:18:54 +0000 @ text @d1 38 @ 1.1.2.2 log @Pullup ticket #6356 - requested by maya www/firefox: security update www/firefox-l10n: security update Revisions pulled up: - www/firefox-l10n/Makefile 1.186-1.191 - www/firefox-l10n/PLIST 1.67 - www/firefox-l10n/distinfo 1.168-1.173 - www/firefox/Makefile 1.448-1.453 - www/firefox/PLIST 1.164-1.165 - www/firefox/distinfo 1.411-1.418 - www/firefox/mozilla-common.mk 1.181-1.182 - www/firefox/patches/patch-build_moz.configure_rust.configure 1.7 - www/firefox/patches/patch-config_makefiles_rust.mk 1.5 - www/firefox/patches/patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp 1.1 - www/firefox/patches/patch-js_src_jsfriendapi.h 1.3 - www/firefox/patches/patch-race_recurse.mk 1.1 - www/firefox/patches/patch-third__party_rust_getrandom_src_lib.rs deleted - www/firefox/patches/patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs deleted ------------------------------------------------------------------- Module Name: pkgsrc Committed By: ryoon Date: Mon Sep 28 13:30:01 UTC 2020 Modified Files: pkgsrc/www/firefox: Makefile PLIST distinfo pkgsrc/www/firefox/patches: patch-config_makefiles_rust.mk patch-js_src_jsfriendapi.h Removed Files: pkgsrc/www/firefox/patches: patch-third__party_rust_getrandom_src_lib.rs patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs Log Message: firefox: Update to 81.0 Changelog: September 22, 2020 Version 81.0, first offered to Release channel users on September 22, 2020 We'd like to extend a special thank you to all of the new Mozillians who contributed to this release of Firefox. New * You can pause and play audio or video in Firefox right from your keyboard or headset, giving you easy access to control your media when in another Firefox tab, another program, or even when your computer is locked. * In addition to our default, dark and light themes, with this release, Firefox introduces the Alpenglow theme: a colorful appearance for buttons, menus, and windows. You can update your Firefox themes under settings or preferences. * For our users in the US and Canada, Firefox can now save, manage, and auto-fill credit card information for you, making shopping on Firefox ever more convenient. To ensure the smoothest experience, this will be rolling out to users gradually. * Firefox supports AcroForm, which will soon allow you to fill in, print, and save supported PDF forms and the PDF viewer also has a new fresh look. * Our users in Austria, Belgium and Switzerland using the German version of Firefox will now see Pocket recommendations in their new tab featuring some of the best stories on the web. If you don’t see them, you can turn on Pocket articles in your new tab by following these steps. In addition to Firefox’s new tab, Pocket is also available as an app on iOS and Android. Fixed * Various security fixes. * We’ve fixed a bug for users of language packs where the default language was reset to English after Firefox updates. * Browser native HTML5 audio/video controls received several important accessibility fixes: + Audio/video controls remain accessible to screen readers even when they are temporarily hidden visually. + Audio/video elapsed and total time are now accessible to screen readers where they weren't previously. + Various unlabelled controls are now labelled making them identifiable to screen readers. + Screen readers no longer intrusively report progress information unless the user requests it. Changed * You will soon find Picture-in-Picture more easily on all the videos you watch with new iconography. * The bookmarks toolbar is now automatically revealed once bookmarks are imported into Firefox, making it easier to find your most important websites. * We have expanded our supported file types - .xml, .svg, and .webp - so files you’ve downloaded can be opened right in Firefox. Security fixes: #CVE-2020-15675: Use-After-Free in WebGL #CVE-2020-15677: Download origin spoofing via redirect #CVE-2020-15676: XSS when pasting attacker-controlled data into a contenteditable element #CVE-2020-15678: When recursing through layers while scrolling, an iterator may have become invalid, resulting in a potential use-after-free scenario #CVE-2020-15673: Memory safety bugs fixed in Firefox 81 and Firefox ESR 78.3 corruption and we presume that with enough effort some of these could have been exploited to run arbitrary code. #CVE-2020-15674: Memory safety bugs fixed in Firefox 81 To generate a diff of this commit: cvs rdiff -u -r1.447 -r1.448 pkgsrc/www/firefox/Makefile cvs rdiff -u -r1.163 -r1.164 pkgsrc/www/firefox/PLIST cvs rdiff -u -r1.410 -r1.411 pkgsrc/www/firefox/distinfo cvs rdiff -u -r1.4 -r1.5 \ pkgsrc/www/firefox/patches/patch-config_makefiles_rust.mk cvs rdiff -u -r1.2 -r1.3 \ pkgsrc/www/firefox/patches/patch-js_src_jsfriendapi.h cvs rdiff -u -r1.1 -r0 \ pkgsrc/www/firefox/patches/patch-third__party_rust_getrandom_src_lib.rs cvs rdiff -u -r1.3 -r0 \ pkgsrc/www/firefox/patches/patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs ------------------------------------------------------------------- Module Name: pkgsrc Committed By: ryoon Date: Mon Sep 28 13:31:02 UTC 2020 Modified Files: pkgsrc/www/firefox-l10n: Makefile PLIST distinfo Log Message: firefox-l10n: Update to 81.0 * Add ur locale. * Sync with www/firefox-81.0. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186 pkgsrc/www/firefox-l10n/Makefile cvs rdiff -u -r1.66 -r1.67 pkgsrc/www/firefox-l10n/PLIST cvs rdiff -u -r1.167 -r1.168 pkgsrc/www/firefox-l10n/distinfo ------------------------------------------------------------------- Module Name: pkgsrc Committed By: gutteridge Date: Tue Sep 29 23:20:23 UTC 2020 Modified Files: pkgsrc/www/firefox: mozilla-common.mk Log Message: firefox: 81.0 requires nss >= 3.56 To generate a diff of this commit: cvs rdiff -u -r1.180 -r1.181 pkgsrc/www/firefox/mozilla-common.mk ------------------------------------------------------------------- Module Name: pkgsrc Committed By: ryoon Date: Fri Oct 2 15:44:16 UTC 2020 Modified Files: pkgsrc/www/firefox: Makefile distinfo Log Message: firefox: Update to 81.0.1 Changelog: Fixed Fixed missing content on Blackboard course listings (bug 1665447) Resolved incorrect scaling of Flash content on HiDPI macOS systems (bug 1667267) Fixes for various printing issues (bug 1667342, bug 1667510, bug 1667723) Fixed legacy preferences not being properly applied when set via GPO (bug 1666836) Fixed Picture-in-Picture controls being visible on audio-only page elements (bug 1666775) Fixed high memory growth with addons such as Disconnect installed, causing browser responsiveness issues over time (bug 1658571) Various stability improvements (bug 1661485, bug 1664542, bug 1664843) To generate a diff of this commit: cvs rdiff -u -r1.448 -r1.449 pkgsrc/www/firefox/Makefile cvs rdiff -u -r1.411 -r1.412 pkgsrc/www/firefox/distinfo ------------------------------------------------------------------- Module Name: pkgsrc Committed By: ryoon Date: Fri Oct 2 15:45:25 UTC 2020 Modified Files: pkgsrc/www/firefox-l10n: Makefile distinfo Log Message: firefox-l10n: Update to 81.0.1 * Sync with www/firefox-81.0.1. To generate a diff of this commit: cvs rdiff -u -r1.186 -r1.187 pkgsrc/www/firefox-l10n/Makefile cvs rdiff -u -r1.168 -r1.169 pkgsrc/www/firefox-l10n/distinfo ------------------------------------------------------------------- Module Name: pkgsrc Committed By: maya Date: Mon Oct 12 23:45:35 UTC 2020 Modified Files: pkgsrc/www/firefox: Makefile distinfo pkgsrc/www/firefox-l10n: Makefile distinfo Log Message: firefox{,-l10n}: Update to 81.0.2 Release notes not available yet. To generate a diff of this commit: cvs rdiff -u -r1.449 -r1.450 pkgsrc/www/firefox/Makefile cvs rdiff -u -r1.412 -r1.413 pkgsrc/www/firefox/distinfo cvs rdiff -u -r1.187 -r1.188 pkgsrc/www/firefox-l10n/Makefile cvs rdiff -u -r1.169 -r1.170 pkgsrc/www/firefox-l10n/distinfo ------------------------------------------------------------------- Module Name: pkgsrc Committed By: maya Date: Tue Oct 20 20:15:30 UTC 2020 Modified Files: pkgsrc/www/firefox: Makefile PLIST distinfo mozilla-common.mk pkgsrc/www/firefox-l10n: Makefile distinfo pkgsrc/www/firefox/patches: patch-build_moz.configure_rust.configure Log Message: firefox{,-l10n}: Update to 82.0 New: With this release, Firefox introduces a number of improvements that make watching videos more delightful: the Picture-In-Picture button has a new look and position, making it easier for you to find and use the feature. Picture-In-Picture now has a keyboard shortcut for Mac users (Option + Command + Shift + Right bracket) that works before you start playing the video. For Windows users, Firefox now uses DirectComposition for hardware decoded video, which will improve CPU and GPU usage during video playback, improving battery life. Firefox is faster than ever with improved performance on both page loads and start up time: Websites that use flexbox-based layouts load 20% faster than before; Restoring a session is 17% quicker, meaning you can more quickly pick up where you left off; For Windows users, opening new windows got quicker by 10%. You can now explore new articles when you save a webpage to Pocket from the Firefox toolbar. WebRender continues to roll out to more Firefox users on Windows. Fixed: Screen reader features which report paragraphs now correctly report paragraphs in Firefox instead of lines. Various security fixes. To generate a diff of this commit: cvs rdiff -u -r1.450 -r1.451 pkgsrc/www/firefox/Makefile cvs rdiff -u -r1.164 -r1.165 pkgsrc/www/firefox/PLIST cvs rdiff -u -r1.413 -r1.414 pkgsrc/www/firefox/distinfo cvs rdiff -u -r1.181 -r1.182 pkgsrc/www/firefox/mozilla-common.mk cvs rdiff -u -r1.188 -r1.189 pkgsrc/www/firefox-l10n/Makefile cvs rdiff -u -r1.170 -r1.171 pkgsrc/www/firefox-l10n/distinfo cvs rdiff -u -r1.6 -r1.7 \ pkgsrc/www/firefox/patches/patch-build_moz.configure_rust.configure ------------------------------------------------------------------- Module Name: pkgsrc Committed By: tnn Date: Fri Oct 23 12:37:14 UTC 2020 Modified Files: pkgsrc/www/firefox: distinfo Added Files: pkgsrc/www/firefox/patches: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp Log Message: firefox: NetBSD/aarch64 build fix To generate a diff of this commit: cvs rdiff -u -r1.414 -r1.415 pkgsrc/www/firefox/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/www/firefox/patches/patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp ------------------------------------------------------------------- Module Name: pkgsrc Committed By: maya Date: Mon Oct 26 21:20:59 UTC 2020 Modified Files: pkgsrc/www/firefox: distinfo Added Files: pkgsrc/www/firefox/patches: patch-race_recurse.mk Log Message: firefox: backport upstream patch to fix a build race. This appears as libmozgtk.so missing as well as the symbols it contains. This affects pkgsrc-stable as well. To generate a diff of this commit: cvs rdiff -u -r1.415 -r1.416 pkgsrc/www/firefox/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/www/firefox/patches/patch-race_recurse.mk ------------------------------------------------------------------- Module Name: pkgsrc Committed By: maya Date: Tue Oct 27 16:59:00 UTC 2020 Modified Files: pkgsrc/www/firefox: Makefile distinfo pkgsrc/www/firefox-l10n: Makefile distinfo Log Message: firefox{,-l10n}: update to 82.0.1 Avoid an unnecessary prompt to reboot when using the full installer on Windows (bug 1671715) Restored the ability to print on paper whose width or height is larger than 100 inches, e.g. for receipts (bug 1672370) Fixed printing of documents with margins of zero, e.g. some PDFs (bug 1672529) Fixed handling of the WebDriver:ClickElement command in the marionette testing framework (bug 1666755) Stability fix (bug 1660539) To generate a diff of this commit: cvs rdiff -u -r1.451 -r1.452 pkgsrc/www/firefox/Makefile cvs rdiff -u -r1.416 -r1.417 pkgsrc/www/firefox/distinfo cvs rdiff -u -r1.189 -r1.190 pkgsrc/www/firefox-l10n/Makefile cvs rdiff -u -r1.171 -r1.172 pkgsrc/www/firefox-l10n/distinfo ------------------------------------------------------------------- Module Name: pkgsrc Committed By: maya Date: Wed Oct 28 15:34:41 UTC 2020 Modified Files: pkgsrc/www/firefox: Makefile distinfo pkgsrc/www/firefox-l10n: Makefile distinfo Log Message: firefox{,-l10n}: Update to 82.0.2 Fixed duplication of WebSocket messages in certain cases (bug 1673340) To generate a diff of this commit: cvs rdiff -u -r1.452 -r1.453 pkgsrc/www/firefox/Makefile cvs rdiff -u -r1.417 -r1.418 pkgsrc/www/firefox/distinfo cvs rdiff -u -r1.190 -r1.191 pkgsrc/www/firefox-l10n/Makefile cvs rdiff -u -r1.172 -r1.173 pkgsrc/www/firefox-l10n/distinfo @ text @a0 38 $NetBSD$ NetBSD/aarch64 does not have the Linux-specific membarrier(2) syscall. --- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2020-10-14 17:20:19.000000000 +0000 +++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp @@@@ -42,6 +42,8 @@@@ # elif defined(__ANDROID__) # include # include +# elif defined(__NetBSD__) + // nothing # else # error "Missing platform-specific declarations for membarrier syscall!" # endif // __linux__ / ANDROID @@@@ -49,7 +51,11 @@@@ # include "vm/JSContext.h" // TlsContext static int membarrier(int cmd, int flags) { +#if defined(__NetBSD__) + return ENOSYS; +#else return syscall(__NR_membarrier, cmd, flags); +#endif } // These definitions come from the Linux kernel source, for kernels before 4.16 @@@@ -116,7 +122,9 @@@@ uint32_t CPU::GetCacheType() { } bool CPU::CanFlushICacheFromBackgroundThreads() { -#if defined(__aarch64__) && !defined(_MSC_VER) && !defined(XP_DARWIN) +#if defined(__NetBSD__) && defined(__aarch64__) + return false; +#elif defined(__aarch64__) && !defined(_MSC_VER) && !defined(XP_DARWIN) // On linux, check the kernel supports membarrier(2), that is, it's a kernel // above Linux 4.16 included. // @