From a4890e046d20c0652af25f1c92a6f4c7dbdfbae3 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 29 Dec 2024 17:57:37 -0500 Subject: [PATCH] firefox: fix darwin build --- .../networking/browsers/firefox/common.nix | 3 +++ .../firefox/firefox-mac-missing-vector-header.patch | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/applications/networking/browsers/firefox/firefox-mac-missing-vector-header.patch diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 0a82f4256939..815c6456c52c 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -290,6 +290,9 @@ buildStdenv.mkDerivation { # https://bugzilla.mozilla.org/show_bug.cgi?id=1935621 # https://phabricator.services.mozilla.com/D231480 ./mozbz-1935621-attachment-9442305.patch + # Fix for missing vector header on macOS + # https://bugzilla.mozilla.org/show_bug.cgi?id=1939405 + ./firefox-mac-missing-vector-header.patch ] ++ extraPatches; diff --git a/pkgs/applications/networking/browsers/firefox/firefox-mac-missing-vector-header.patch b/pkgs/applications/networking/browsers/firefox/firefox-mac-missing-vector-header.patch new file mode 100644 index 000000000000..19510f1ff142 --- /dev/null +++ b/pkgs/applications/networking/browsers/firefox/firefox-mac-missing-vector-header.patch @@ -0,0 +1,11 @@ +diff -r 8273f6f8f9b6 security/sandbox/mac/Sandbox.h +--- a/security/sandbox/mac/Sandbox.h Mon Sep 02 00:19:08 2024 +0000 ++++ b/security/sandbox/mac/Sandbox.h Sun Dec 29 11:41:25 2024 -0500 +@@ -7,6 +7,7 @@ + #define mozilla_Sandbox_h + + #include ++#include + #include "mozilla/ipc/UtilityProcessSandboxing.h" + + enum MacSandboxType {