buildMozillaMach: update patches

- Drop nvidia wayland patches
- Retarget cbindgen patch for version 129 and versions before 128
This commit is contained in:
Martin Weinelt 2024-09-03 22:04:10 +02:00
parent b2a450bebb
commit 1f7e809166
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -237,7 +237,7 @@ buildStdenv.mkDerivation {
patches = lib.optionals (lib.versionAtLeast version "111") [ ./env_var_for_system_dir-ff111.patch ] patches = lib.optionals (lib.versionAtLeast version "111") [ ./env_var_for_system_dir-ff111.patch ]
++ lib.optionals (lib.versionAtLeast version "96" && lib.versionOlder version "121") [ ./no-buildconfig-ffx96.patch ] ++ lib.optionals (lib.versionAtLeast version "96" && lib.versionOlder version "121") [ ./no-buildconfig-ffx96.patch ]
++ lib.optionals (lib.versionAtLeast version "121") [ ./no-buildconfig-ffx121.patch ] ++ lib.optionals (lib.versionAtLeast version "121") [ ./no-buildconfig-ffx121.patch ]
++ lib.optionals (lib.versionOlder version "131") [ ++ lib.optionals (lib.versionOlder version "128" || (lib.versionAtLeast version "129" && lib.versionOlder version "130")) [
(fetchpatch { (fetchpatch {
# https://bugzilla.mozilla.org/show_bug.cgi?id=1912663 # https://bugzilla.mozilla.org/show_bug.cgi?id=1912663
name = "cbindgen-0.27.0-compat.patch"; name = "cbindgen-0.27.0-compat.patch";
@ -245,24 +245,6 @@ buildStdenv.mkDerivation {
hash = "sha256-MqgWHgbDedVzDOqY2/fvCCp+bGwFBHqmaJLi/mllZug="; hash = "sha256-MqgWHgbDedVzDOqY2/fvCCp+bGwFBHqmaJLi/mllZug=";
}) })
] ]
++ lib.optionals (lib.versionOlder version "130" && lib.versionAtLeast version "128") [
# https://bugzilla.mozilla.org/show_bug.cgi?id=1898476
(fetchpatch {
name = "mozbz-1898476-1.patch";
url = "https://hg.mozilla.org/mozilla-central/raw-rev/f9323daf7abe";
hash = "sha256-fvIowXJLWnm16LeiSz6EasGypTi1ilG+s/T6+lNLbMQ=";
})
(fetchpatch {
name = "mozbz-1898476-2.patch";
url = "https://hg.mozilla.org/mozilla-central/raw-rev/a264ff9e9f6f";
hash = "sha256-9vkI/Ho4BXvLnoRGdfTzUODcIlA6K3RjbdhZjb/LEz0=";
})
(fetchpatch {
name = "mozbz-1898476-3.patch";
url = "https://hg.mozilla.org/mozilla-central/raw-rev/eb230ecdf8eb";
hash = "sha256-IaLltxf5W1WEzxvbi10wphqXVQPtBiLc2zlk38CIiz4=";
})
]
++ lib.optionals (lib.versionOlder version "122") [ ./bindgen-0.64-clang-18.patch ] ++ lib.optionals (lib.versionOlder version "122") [ ./bindgen-0.64-clang-18.patch ]
++ lib.optionals (lib.versionOlder version "123") [ ++ lib.optionals (lib.versionOlder version "123") [
(fetchpatch { (fetchpatch {