Commit a21a935e authored by Martin Weinelt's avatar Martin Weinelt Committed by github-actions[bot]
Browse files

buildMozillaMach: replace dbus workaround with upstream patch

https://bugzilla.mozilla.org/show_bug.cgi?id=1864083

The fix was targeted for Firefox 122.

(cherry picked from commit a72f24ef)
parent 5fdb1f2f
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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 = ''