element-desktop/hak-remove-devdependencies.patch
Dominik Heidler 9743145e91 Fix build for 15.6
gyp doesn't seem to respect GCC and CXX env vars so we need to overwrite PATH

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=92
2025-01-20 17:05:43 +00:00

21 lines
1021 B
Diff

hak fetch tries to download devDependencies for two modules. Unfortunately it does so in a very non-deterministic manner (no shrinkwrap file)
Remove that step since the devDependencies are not actually needed for any of these two modules.
--- element-desktop-1.11.86/scripts/hak/fetch.ts 2024-11-19 22:43:48.895355949 +0100
+++ element-desktop-1.11.86/scripts/hak/fetch.ts 2024-11-19 22:44:02.245421312 +0100
@@ -26,14 +26,6 @@
console.log("Fetching " + moduleInfo.name + "@" + moduleInfo.version);
const packumentCache = new Map();
- await pacote.extract(`${moduleInfo.name}@${moduleInfo.version}`, moduleInfo.moduleBuildDir, {
- packumentCache,
- });
-
- console.log("Running yarn install in " + moduleInfo.moduleBuildDir);
- await hakEnv.spawn("yarn", ["install", "--ignore-scripts"], {
- cwd: moduleInfo.moduleBuildDir,
- });
// also extract another copy to the output directory at this point
// nb. we do not yarn install in the output copy: we could install in