From f40b28786fc3668f6deb738f80e4df0ab6c76e3a Mon Sep 17 00:00:00 2001 From: tranzystorekk Date: Wed, 18 Sep 2024 17:08:37 +0200 Subject: [PATCH] Signal-Desktop: fix too many file descriptors error --- srcpkgs/Signal-Desktop/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/Signal-Desktop/template b/srcpkgs/Signal-Desktop/template index 159562c0fba..41d87f4a191 100644 --- a/srcpkgs/Signal-Desktop/template +++ b/srcpkgs/Signal-Desktop/template @@ -23,6 +23,11 @@ post_extract() { vsed 's/"node": ".*"/"node": ">=20.0.0"/' -i package.json + # patch node fs with graceful-fs to avoid using too many file descriptors + npm add -D graceful-fs@4.2.11 + echo "require('graceful-fs').gracefulify(require('fs'));" > ${wrksrc}/use-graceful-fs.js + export NODE_OPTIONS="--require ${wrksrc}/use-graceful-fs.js" + # Install dependencies for sticker-creator npm --prefix ./sticker-creator/ install