From a72f24ef3bf6538b1dbb5d024e7b0f9517dddb72 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 28 Nov 2023 02:16:57 +0100 Subject: [PATCH] buildMozillaMach: replace dbus workaround with upstream patch https://bugzilla.mozilla.org/show_bug.cgi?id=1864083 The fix was targeted for Firefox 122. --- .../networking/browsers/firefox/common.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 183b49b909d8..833d8799d936 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -252,6 +252,14 @@ buildStdenv.mkDerivation { # vendored to update checksums ./mp4parse-rust-170.patch ] + ++ lib.optionals (lib.versionAtLeast version "120" && lib.versionOlder version "122") [ + # dbus cflags regression fix + # https://bugzilla.mozilla.org/show_bug.cgi?id=1864083 + (fetchpatch { + url = "https://hg.mozilla.org/mozilla-central/raw-rev/f1f5f98290b3"; + hash = "sha256-5PzVNJvPNX8irCqj1H38SFDydNJZuBHx167e1TQehaI="; + }) + ] ++ lib.optional (lib.versionOlder version "111") ./env_var_for_system_dir-ff86.patch ++ lib.optional (lib.versionAtLeast version "111") ./env_var_for_system_dir-ff111.patch ++ lib.optional (lib.versionAtLeast version "96" && lib.versionOlder version "121") ./no-buildconfig-ffx96.patch @@ -509,9 +517,6 @@ buildStdenv.mkDerivation { preBuild = '' cd mozobj - '' + lib.optionalString (lib.versionAtLeast version "120") '' - # https://bugzilla.mozilla.org/show_bug.cgi?id=1864083 - export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config dbus-1 --cflags)" ''; postBuild = ''