mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 20:09:18 +00:00
Update to latest release of latest LTS 20 release
* node v20 introduces several new features and fixes many bugs and CVEs as shown in [1]
* Refresh 0001-liftoff-Correct-function-signatures.patch against 20.5.1
* License-Update:
- Change zlib version 1.2.13, October 13th, 2022 to version 1.2.13.1, October xxth, 2022 [2]
- Change Copyright 2023 from Ada authors to Yagiz Nizipli and Daniel Lemire [4]
* Remove big-endian.patch as it is merged in v20.x [5] [6]
* Remove below list of patches since mips32 is deleted from v8 as part of update V8 to 10.7.193.13 [7] [8]
- mips-less-memory.patch
- 0001-mips-Use-32bit-cast-for-operand-on-mips32.patch
* Update Using-native-binaries.patch for node_js2c, it resolved below do_compile error [9]
Error:
/bin/sh: line 1: build/tmp/work/core2-64-poky-linux/nodejs/20.5.1/node-v20.5.1/out/Release/node_js2c: No such file or directory
* Remove obsolete dtrace & etw configure options (we had: --without-<feature>) from the recipe [10]
https://github.com/nodejs/node/releases/tag/v20.5.1
[1] https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md
[2] f100732575
[3] 900ae1bda7
[4] d246536924
[5] 3cea5d5425
[6] f226350fcb
[7] a26ca5ed14
[8] 6bd756d7c6
[9] 4da7bc915c
[10] aa3a572e6b
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 13e83bd009200f42741083c5a6f1fbc653205c49)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
78 lines
1.7 KiB
JavaScript
Executable File
78 lines
1.7 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/// Usage: oe-npm-cache <cache-dir> <type> <key> <file-name>
|
|
/// <type> ... meta - metainformation about package
|
|
/// tgz - tarball
|
|
|
|
const process = require("node:process");
|
|
|
|
module.paths.unshift("@@libdir@@/node_modules/npm/node_modules");
|
|
|
|
const cacache = require('cacache')
|
|
const fs = require('fs')
|
|
|
|
// argv[0] is 'node', argv[1] is this script
|
|
const cache_dir = process.argv[2]
|
|
const type = process.argv[3]
|
|
const key = process.argv[4]
|
|
const file = process.argv[5]
|
|
|
|
const data = fs.readFileSync(file)
|
|
|
|
// metadata content is highly nodejs dependent; when cache entries are not
|
|
// found, place debug statements in 'make-fetch-happen/lib/cache/policy.js'
|
|
// (CachePolicy::satisfies())
|
|
const xlate = {
|
|
'meta': {
|
|
'key_prefix': 'make-fetch-happen:request-cache:',
|
|
'metadata': function() {
|
|
return {
|
|
time: Date.now(),
|
|
url: key,
|
|
reqHeaders: {
|
|
'accept': 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*',
|
|
},
|
|
resHeaders: {
|
|
"content-type": "application/json",
|
|
"status": 200,
|
|
},
|
|
options: {
|
|
compress: true,
|
|
}
|
|
};
|
|
},
|
|
},
|
|
|
|
'tgz': {
|
|
'key_prefix': 'make-fetch-happen:request-cache:',
|
|
'metadata': function() {
|
|
return {
|
|
time: Date.now(),
|
|
url: key,
|
|
reqHeaders: {
|
|
'accept': '*/*',
|
|
},
|
|
resHeaders: {
|
|
"content-type": "application/octet-stream",
|
|
"status": 200,
|
|
},
|
|
options: {
|
|
compress: true,
|
|
},
|
|
};
|
|
},
|
|
},
|
|
};
|
|
|
|
const info = xlate[type];
|
|
let opts = {}
|
|
|
|
if (info.metadata) {
|
|
opts['metadata'] = info.metadata();
|
|
}
|
|
|
|
cacache.put(cache_dir, info.key_prefix + key, data, opts)
|
|
.then(integrity => {
|
|
console.log(`Saved content of ${key} (${file}).`);
|
|
})
|