mirror of
https://git.freebsd.org/ports.git
synced 2025-05-18 01:53:13 -04:00
While here, temporarily mark as BROKEN on FreeBSD 12. One of the native node modules does not compile with the following error: In file included from ../src/keyboard_x.cc:6: ../src/keymapping.h:40:3: error: unknown type name 'pthread_t'; did you mean 'pthread'? pthread_t tid; ^~~~~~~~~ pthread /usr/include/stdio.h:157:9: note: 'pthread' declared here struct pthread *_fl_owner; /* current owner */ ^ In file included from ../src/keyboard_x.cc:6: ../src/keymapping.h:40:13: error: field has incomplete type 'pthread' pthread_t tid; ^ /usr/include/stdio.h:157:9: note: forward declaration of 'pthread' struct pthread *_fl_owner; /* current owner */ ^ 2 errors generated. A fix to the node module has been proposed at: https://github.com/microsoft/node-native-keymap/pull/31 Changelog: - https://code.visualstudio.com/updates/v1_59 - https://code.visualstudio.com/updates/v1_60 - https://code.visualstudio.com/updates/v1_61 - https://code.visualstudio.com/updates/v1_62
22 lines
969 B
JavaScript
22 lines
969 B
JavaScript
--- build/npm/postinstall.js.orig 2021-09-22 11:45:58 UTC
|
|
+++ build/npm/postinstall.js
|
|
@@ -21,8 +21,9 @@ function yarnInstall(location, opts) {
|
|
const raw = process.env['npm_config_argv'] || '{}';
|
|
const argv = JSON.parse(raw);
|
|
const original = argv.original || [];
|
|
- const args = original.filter(arg => arg === '--ignore-optional' || arg === '--frozen-lockfile');
|
|
- if (opts.ignoreEngines) {
|
|
+ const passargs = ['--ignore-optional', '--frozen-lockfile', '--offline', '--no-progress', '--verbose'];
|
|
+ const args = original.filter(arg => passargs.includes(arg));
|
|
+ if (opts.ignoreEngines) {
|
|
args.push('--ignore-engines');
|
|
delete opts.ignoreEngines;
|
|
}
|
|
@@ -90,5 +91,5 @@ runtime "${runtime}"`;
|
|
yarnInstall(watchPath);
|
|
}
|
|
|
|
-cp.execSync('git config pull.rebase merges');
|
|
-cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore');
|
|
+// cp.execSync('git config pull.rebase merges');
|
|
+// cp.execSync('git config blame.ignoreRevsFile .git-blame-ignore');
|