ports/www/qt6-webengine/files/extra-patch-32bit-compress_files_js
Robert Clausecker dd2c7b7789 www/qt6-webengine: fix build on armv7
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
2023-06-05 18:53:00 +02:00

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();
});
});