chromium: fix `print()` crashing (#402653)

authored by Emily and committed by GitHub 734f61d2 90a38fc0

+15
+15
pkgs/applications/networking/browsers/chromium/common.nix
··· 534 534 decode = "base64 -d"; 535 535 hash = "sha256-xMqGdu5Q8BGF/OIRdmMzPrrrMGDOSY2xElFfhRsJlDU="; 536 536 }) 537 + ] 538 + ++ lib.optionals (!isElectron) [ 539 + # Backport "Only call format_message when needed" to fix print() crashing with is_cfi = true. 540 + # We build electron is_cfi = false and as such electron is not affected by this. 541 + # https://github.com/NixOS/nixpkgs/issues/401326 542 + # https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/issues/13 543 + # https://skia-review.googlesource.com/c/skia/+/961356 544 + (fetchpatch { 545 + name = "only-call-format_message-when-needed.patch"; 546 + url = "https://skia.googlesource.com/skia/+/71685eda67178fa374d473ec1431fc459c83bb21^!?format=TEXT"; 547 + decode = "base64 -d"; 548 + stripLen = 1; 549 + extraPrefix = "third_party/skia/"; 550 + hash = "sha256-aMqDjt/0cowqSm5DqcD3+zX+mtjydk396LD+B5F/3cs="; 551 + }) 537 552 ]; 538 553 539 554 postPatch =