mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
Improve two patches with more complete variants from devel/electron19. Patch bundled boringssl with additional patches from the same port. Avoid an OOM condition by using the same extra patch previously only used on i386. In that patch, decreate BROTLI_PARAM_QUALITY further to 4 to avoid flakiness on armv7. Obtained from: devel/electron19 Approved by: kai (with hat: kde, maintainer) PR: 271228
14 lines
857 B
Text
14 lines
857 B
Text
Reduce Brotli compression on i386 to have more memory available. Otherwise,
|
|
node.js stops with either SIGSEGV or SIGABRT after ~530 processed files.
|
|
|
|
--- src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/compress_files.js.orig 2023-01-10 09:16:05 UTC
|
|
+++ src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/compress_files.js
|
|
@@ -52,7 +52,7 @@ async function brotli(sourceData, compressedFilename)
|
|
output.write(Buffer.from(brotliConst));
|
|
output.write(Buffer.from(sizeHeader));
|
|
return new Promise((resolve, reject) => {
|
|
- pipeline(Readable.from(sourceData), zlib.createBrotliCompress(), output, err => {
|
|
+ pipeline(Readable.from(sourceData), zlib.createBrotliCompress({ params: { [zlib.constants.BROTLI_PARAM_QUALITY]: 4 } }), output, err => {
|
|
return err ? reject(err) : resolve();
|
|
});
|
|
});
|