Skip to content

Commit fb3bf1d

Browse files
authored
Merge pull request #336204 from mweinelt/firefox-patches
buildMozillaMach: prune patches, support rust-cbindgen 0.27, backport fix for explicity sync on nvidia gpus
2 parents db49bfb + 09b3126 commit fb3bf1d

File tree

2 files changed

+24
-103
lines changed

2 files changed

+24
-103
lines changed

pkgs/applications/networking/browsers/firefox/122.0-libvpx-mozbz1875201.patch

Lines changed: 0 additions & 80 deletions
This file was deleted.

pkgs/applications/networking/browsers/firefox/common.nix

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -234,42 +234,43 @@ buildStdenv.mkDerivation {
234234
"profilingPhase"
235235
];
236236

237-
patches = lib.optionals (lib.versionAtLeast version "120" && lib.versionOlder version "122") [
238-
# dbus cflags regression fix
239-
# https://bugzilla.mozilla.org/show_bug.cgi?id=1864083
237+
patches = lib.optionals (lib.versionAtLeast version "111") [ ./env_var_for_system_dir-ff111.patch ]
238+
++ lib.optionals (lib.versionAtLeast version "96" && lib.versionOlder version "121") [ ./no-buildconfig-ffx96.patch ]
239+
++ lib.optionals (lib.versionAtLeast version "121") [ ./no-buildconfig-ffx121.patch ]
240+
++ lib.optionals (lib.versionOlder version "131") [
240241
(fetchpatch {
241-
url = "https://hg.mozilla.org/mozilla-central/raw-rev/f1f5f98290b3";
242-
hash = "sha256-5PzVNJvPNX8irCqj1H38SFDydNJZuBHx167e1TQehaI=";
242+
# https://bugzilla.mozilla.org/show_bug.cgi?id=1912663
243+
name = "cbindgen-0.27.0-compat.patch";
244+
url = "https://hg.mozilla.org/integration/autoland/raw-rev/98cd34c7ff57";
245+
hash = "sha256-MqgWHgbDedVzDOqY2/fvCCp+bGwFBHqmaJLi/mllZug=";
243246
})
244247
]
245-
++ lib.optional (lib.versionAtLeast version "111") ./env_var_for_system_dir-ff111.patch
246-
++ lib.optional (lib.versionAtLeast version "96" && lib.versionOlder version "121") ./no-buildconfig-ffx96.patch
247-
++ lib.optional (lib.versionAtLeast version "121") ./no-buildconfig-ffx121.patch
248-
++ lib.optionals (lib.versionAtLeast version "120" && lib.versionOlder version "120.0.1") [
248+
++ lib.optionals (lib.versionOlder version "130" && lib.versionAtLeast version "128") [
249+
# https://bugzilla.mozilla.org/show_bug.cgi?id=1898476
249250
(fetchpatch {
250-
# Do not crash on systems without an expected statically assumed page size.
251-
# https://phabricator.services.mozilla.com/D194458
252-
name = "mozbz1866025.patch";
253-
url = "https://hg.mozilla.org/mozilla-central/raw-rev/42c80086da4468f407648f2f57a7222aab2e9951";
254-
hash = "sha256-cWOyvjIPUU1tavPRqg61xJ53XE4EJTdsFzadfVxyTyM=";
251+
name = "mozbz-1898476-1.patch";
252+
url = "https://hg.mozilla.org/mozilla-central/raw-rev/f9323daf7abe";
253+
hash = "sha256-fvIowXJLWnm16LeiSz6EasGypTi1ilG+s/T6+lNLbMQ=";
254+
})
255+
(fetchpatch {
256+
name = "mozbz-1898476-2.patch";
257+
url = "https://hg.mozilla.org/mozilla-central/raw-rev/a264ff9e9f6f";
258+
hash = "sha256-9vkI/Ho4BXvLnoRGdfTzUODcIlA6K3RjbdhZjb/LEz0=";
259+
})
260+
(fetchpatch {
261+
name = "mozbz-1898476-3.patch";
262+
url = "https://hg.mozilla.org/mozilla-central/raw-rev/eb230ecdf8eb";
263+
hash = "sha256-IaLltxf5W1WEzxvbi10wphqXVQPtBiLc2zlk38CIiz4=";
255264
})
256265
]
257-
++ lib.optionals (lib.versionOlder version "122") [
258-
./bindgen-0.64-clang-18.patch
259-
]
260-
++ lib.optionals (lib.versionAtLeast version "122" && lib.versionOlder version "123") [
261-
./122.0-libvpx-mozbz1875201.patch
262-
]
266+
++ lib.optionals (lib.versionOlder version "122") [ ./bindgen-0.64-clang-18.patch ]
263267
++ lib.optionals (lib.versionOlder version "123") [
264268
(fetchpatch {
265269
name = "clang-18.patch";
266270
url = "https://hg.mozilla.org/mozilla-central/raw-rev/ba6abbd36b496501cea141e17b61af674a18e279";
267271
hash = "sha256-2IpdSyye3VT4VB95WurnyRFtdN1lfVtYpgEiUVhfNjw=";
268272
})
269273
]
270-
++ lib.optionals (lib.versionOlder version "115.12") [
271-
./rust-1.78.patch
272-
]
273274
++ extraPatches;
274275

275276
postPatch = ''

0 commit comments

Comments
 (0)