OSDN Git Service

Node.js: sync with upstream source
authorTianling Shen <cnsztl@immortalwrt.org>
Sat, 21 May 2022 08:23:11 +0000 (16:23 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Sat, 21 May 2022 08:23:32 +0000 (16:23 +0800)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
79 files changed:
lang/node-aws-crt/Makefile
lang/node-aws-crt/patches/001-modify_compile_options.patch
lang/node-aws-iot-device-sdk-v2/Makefile
lang/node-aws-sdk/Makefile
lang/node-azure-event-hubs/Makefile
lang/node-azure-event-hubs/patches/999-remove_dev.patch
lang/node-azure-iot-device-amqp/Makefile
lang/node-azure-iot-device-http/Makefile
lang/node-azure-iot-device-mqtt/Makefile
lang/node-azure-iot-device/Makefile
lang/node-azure-iothub/Makefile
lang/node-coap/Makefile
lang/node-express/Makefile
lang/node-ffi-napi/Makefile
lang/node-ffmpeg-for-homebridge/Makefile
lang/node-hap-nodejs/Makefile
lang/node-homebridge-cmd4/Makefile
lang/node-homebridge-config-ui-x/Makefile
lang/node-homebridge-config-ui-x/patches/000-remove_depends.patch
lang/node-homebridge-z2m/Makefile
lang/node-homebridge/Makefile
lang/node-homebridge/files/homebridge.init
lang/node-lwm2m-node-lib/Makefile
lang/node-mocha/Makefile
lang/node-nconf/Makefile
lang/node-npm-check-updates/Makefile
lang/node-pty-prebuilt-multiarch/Makefile
lang/node-red-contrib-web-of-things/Makefile [deleted file]
lang/node-red-contrib-web-of-things/patches/000-remove_depends.patch [deleted file]
lang/node-red-dashboard/Makefile
lang/node-red/files/node-red.init
lang/node-socket.io-client/Makefile
lang/node-socket.io/Makefile
lang/node-sqlite3/Makefile
lang/node-sqlite3/patches/001-change_module_path_for_cross_build.patch [new file with mode: 0644]
lang/node-twilio/Makefile
lang/node-typescript/Makefile
lang/node-uglify-js/Makefile
lang/node-usb/Makefile
lang/node-usb/patches/000-add_atomic_header.patch [new file with mode: 0644]
lang/node-wot-binding-coap/Makefile [deleted file]
lang/node-wot-binding-coap/patches/000-remove_depends.patch [deleted file]
lang/node-wot-binding-file/Makefile [deleted file]
lang/node-wot-binding-file/patches/000-remove_depends.patch [deleted file]
lang/node-wot-binding-http/Makefile [deleted file]
lang/node-wot-binding-http/patches/000-remove_depends.patch [deleted file]
lang/node-wot-binding-modbus/Makefile [deleted file]
lang/node-wot-binding-modbus/patches/000-remove_depends.patch [deleted file]
lang/node-wot-binding-mqtt/Makefile [deleted file]
lang/node-wot-binding-mqtt/patches/000-remove_depends.patch [deleted file]
lang/node-wot-binding-opcua/Makefile [deleted file]
lang/node-wot-binding-opcua/patches/000-remove_depends.patch [deleted file]
lang/node-wot-binding-websockets/Makefile [deleted file]
lang/node-wot-binding-websockets/patches/000-remove_depends.patch [deleted file]
lang/node-wot-cli/Makefile [deleted file]
lang/node-wot-cli/patches/000-remove_depends.patch [deleted file]
lang/node-wot-core/Makefile [deleted file]
lang/node-wot-core/patches/000-remove_depends.patch [deleted file]
lang/node-wot-td-tools/Makefile [deleted file]
lang/node-ws/Makefile
lang/node-zigbee2mqtt/Makefile
lang/node-zigbee2mqtt/files/zigbee2mqtt.init
lang/node/Makefile
lang/node/patches/v12.x/003-path.patch [deleted file]
lang/node/patches/v12.x/005-check-if-uclibc-has-backtrace-support.patch [deleted file]
lang/node/patches/v12.x/010-execvp-arg-list-too-long.patch [deleted file]
lang/node/patches/v12.x/012-changing-default-npm-settings.patch [deleted file]
lang/node/patches/v12.x/013-npm-unsafe-override-for-global-install.patch [deleted file]
lang/node/patches/v12.x/999-mips-fix.patch [deleted file]
lang/node/patches/v18.x/003-path.patch [new file with mode: 0644]
lang/node/patches/v18.x/004-musl_support.patch [moved from lang/node/patches/v12.x/004-musl_support.patch with 88% similarity]
lang/node/patches/v18.x/007-fix_host_build_on_macos.patch [moved from lang/node/patches/v12.x/007-fix_host_build_on_macos.patch with 89% similarity]
lang/node/patches/v18.x/012-changing-default-npm-settings.patch [new file with mode: 0644]
lang/node/patches/v18.x/990-delete_unnecessary_libraries_for_host_execute.patch [moved from lang/node/patches/v12.x/999-delete_unnecessary_libraries_for_host_execute.patch with 93% similarity]
lang/node/patches/v18.x/991-v8_zlib_support.patch [new file with mode: 0644]
lang/node/patches/v18.x/992-v8_compiler_add_include_dirs.patch [new file with mode: 0644]
lang/node/patches/v18.x/999-cast_for_mips32.patch [new file with mode: 0644]
lang/node/patches/v18.x/999-fix_icu_conflict.patch [moved from lang/node/patches/v12.x/999-fix_icu_conflict.patch with 85% similarity]
lang/node/patches/v18.x/999-localhost-no-addrconfig.patch [moved from lang/node/patches/v12.x/999-localhost-no-addrconfig.patch with 93% similarity]

index 6f1310f..afda90f 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=aws-crt
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.12.0
+PKG_VERSION:=1.12.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=db664a38945be0bf6db5f3ecc420259c4731d370c9735c866a4274c14847c7cf
+PKG_HASH:=b155cf3e155007713f911c00ca4b20c69daf3b7baba137b3ead1b49af8b058c8
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
@@ -24,7 +24,6 @@ PKG_USE_MIPS16:=0
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
-PKG_USE_NINJA:=0
 
 define Package/node-aws-crt
   SUBMENU:=Node.js
@@ -123,9 +122,9 @@ define Package/node-aws-crt/install
        $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME)/dist
        $(CP) $(PKG_BUILD_DIR)/dist/{index.*,browser,common,native} \
                $(1)/usr/lib/node/$(PKG_NPM_NAME)/dist
-       $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME)/dist/bin/native
-       $(CP) $(PKG_BUILD_DIR)/build/Release/aws-crt-nodejs.node \
-               $(1)/usr/lib/node/$(PKG_NPM_NAME)/dist/bin/native/
+       $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME)/dist/bin/linux-$(NODEJS_CPU)
+       $(CP) $(PKG_BUILD_DIR)/build/linux-x64/Release/aws-crt-nodejs.node \
+               $(1)/usr/lib/node/$(PKG_NPM_NAME)/dist/bin/linux-$(NODEJS_CPU)/
        $(INSTALL_DIR) $(1)/usr/lib/node_modules
        $(LN) ../node/$(PKG_NPM_NAME) $(1)/usr/lib/node_modules/$(PKG_NPM_NAME)
 endef
index 6ae9e50..e6eed8d 100644 (file)
  function rmRecursive(rmPath) {
      let rmBasePath = path.basename(rmPath);
      if (rmBasePath == "." || rmBasePath == "..") {
-@@ -104,6 +144,42 @@ function buildLocally() {
-         CMAKE_JS_PLATFORM: os.platform,
-         CMAKE_JS_ARCH: os.arch,
-         BUILD_TESTING: 'OFF',
-+        CMAKE_CROSSCOMPILING: true,
-+        CMAKE_SYSTEM_NAME: `${CMAKE_SYSTEM_NAME}`,
-+        CMAKE_SYSTEM_VERSION: `${CMAKE_SYSTEM_VERSION}`,
-+        CMAKE_SYSTEM_PROCESSOR: `${CMAKE_SYSTEM_PROCESSOR}`,
-+        CMAKE_BUILD_TYPE: `${CMAKE_BUILD_TYPE}`,
-+        CMAKE_C_FLAGS_RELEASE: `${CMAKE_C_FLAGS_RELEASE}`,
-+        CMAKE_CXX_FLAGS_RELEASE: `${CMAKE_CXX_FLAGS_RELEASE}`,
-+        CMAKE_C_COMPILER_LAUNCHER: `${CMAKE_C_COMPILER_LAUNCHER}`,
-+        CMAKE_C_COMPILER: `${CMAKE_C_COMPILER}`,
-+        CMAKE_C_COMPILER_ARG1: `${CMAKE_C_COMPILER_ARG1}`,
-+        CMAKE_CXX_COMPILER_LAUNCHER: `${CMAKE_CXX_COMPILER_LAUNCHER}`,
-+        CMAKE_CXX_COMPILER: `${CMAKE_CXX_COMPILER}`,
-+        CMAKE_CXX_COMPILER_ARG1: `${CMAKE_CXX_COMPILER_ARG1}`,
-+        CMAKE_ASM_COMPILER: `${CMAKE_ASM_COMPILER}`,
-+        CMAKE_EXE_LINKER_FLAGS: `${CMAKE_EXE_LINKER_FLAGS}`,
-+        CMAKE_MODULE_LINKER_FLAGS: `${CMAKE_MODULE_LINKER_FLAGS}`,
-+        CMAKE_SHARED_LINKER_FLAGS: `${CMAKE_SHARED_LINKER_FLAGS}`,
-+        CMAKE_AR: `${CMAKE_AR}`,
-+        CMAKE_NM: `${CMAKE_NM}`,
-+        CMAKE_RANLIB: `${CMAKE_RANLIB}`,
-+        CMAKE_FIND_ROOT_PATH: `${CMAKE_FIND_ROOT_PATH}`,
-+        CMAKE_FIND_ROOT_PATH_MODE_PROGRAM: `${CMAKE_FIND_ROOT_PATH_MODE_PROGRAM}`,
-+        CMAKE_FIND_ROOT_PATH_MODE_LIBRARY: `${CMAKE_FIND_ROOT_PATH_MODE_LIBRARY}`,
-+        CMAKE_FIND_ROOT_PATH_MODE_INCLUDE: `${CMAKE_FIND_ROOT_PATH_MODE_INCLUDE}`,
-+        DL_LIBRARY: `${DL_LIBRARY}`,
-+        CMAKE_SKIP_RPATH: `${CMAKE_SKIP_RPATH}`,
-+        CMAKE_EXPORT_PACKAGE_REGISTRY: `${CMAKE_EXPORT_PACKAGE_REGISTRY}`,
-+        CMAKE_EXPORT_NO_PACKAGE_REGISTRY: `${CMAKE_EXPORT_NO_PACKAGE_REGISTRY}`,
-+        CMAKE_FIND_USE_PACKAGE_REGISTRY: `${CMAKE_FIND_USE_PACKAGE_REGISTRY}`,
-+        CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY: `${CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY}`,
-+        CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY: `${CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY}`,
-+        CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY: `${CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY}`,
-+        CMAKE_SYSROOT: `${CMAKE_SYSROOT}`,
-+        CROSS_COMPILE: `${CROSS_COMPILE}`,
-+        CMAKE_OBJCOPY: `${TARGET_CROSS}objcopy`,
-+        CMAKE_STRIP: `${TARGET_CROSS}strip`,
-         CMAKE_INSTALL_PREFIX: 'crt/install',
-         CMAKE_PREFIX_PATH: 'crt/install',
-     }
-@@ -119,6 +195,18 @@ function buildLocally() {
+@@ -118,6 +158,42 @@ function buildLocally() {
+             CMAKE_EXPORT_COMPILE_COMMANDS: true,
+             CMAKE_JS_PLATFORM: platform,
+             BUILD_TESTING: 'OFF',
++            CMAKE_CROSSCOMPILING: true,
++            CMAKE_SYSTEM_NAME: `${CMAKE_SYSTEM_NAME}`,
++            CMAKE_SYSTEM_VERSION: `${CMAKE_SYSTEM_VERSION}`,
++            CMAKE_SYSTEM_PROCESSOR: `${CMAKE_SYSTEM_PROCESSOR}`,
++            CMAKE_BUILD_TYPE: `${CMAKE_BUILD_TYPE}`,
++            CMAKE_C_FLAGS_RELEASE: `${CMAKE_C_FLAGS_RELEASE}`,
++            CMAKE_CXX_FLAGS_RELEASE: `${CMAKE_CXX_FLAGS_RELEASE}`,
++            CMAKE_C_COMPILER_LAUNCHER: `${CMAKE_C_COMPILER_LAUNCHER}`,
++            CMAKE_C_COMPILER: `${CMAKE_C_COMPILER}`,
++            CMAKE_C_COMPILER_ARG1: `${CMAKE_C_COMPILER_ARG1}`,
++            CMAKE_CXX_COMPILER_LAUNCHER: `${CMAKE_CXX_COMPILER_LAUNCHER}`,
++            CMAKE_CXX_COMPILER: `${CMAKE_CXX_COMPILER}`,
++            CMAKE_CXX_COMPILER_ARG1: `${CMAKE_CXX_COMPILER_ARG1}`,
++            CMAKE_ASM_COMPILER: `${CMAKE_ASM_COMPILER}`,
++            CMAKE_EXE_LINKER_FLAGS: `${CMAKE_EXE_LINKER_FLAGS}`,
++            CMAKE_MODULE_LINKER_FLAGS: `${CMAKE_MODULE_LINKER_FLAGS}`,
++            CMAKE_SHARED_LINKER_FLAGS: `${CMAKE_SHARED_LINKER_FLAGS}`,
++            CMAKE_AR: `${CMAKE_AR}`,
++            CMAKE_NM: `${CMAKE_NM}`,
++            CMAKE_RANLIB: `${CMAKE_RANLIB}`,
++            CMAKE_FIND_ROOT_PATH: `${CMAKE_FIND_ROOT_PATH}`,
++            CMAKE_FIND_ROOT_PATH_MODE_PROGRAM: `${CMAKE_FIND_ROOT_PATH_MODE_PROGRAM}`,
++            CMAKE_FIND_ROOT_PATH_MODE_LIBRARY: `${CMAKE_FIND_ROOT_PATH_MODE_LIBRARY}`,
++            CMAKE_FIND_ROOT_PATH_MODE_INCLUDE: `${CMAKE_FIND_ROOT_PATH_MODE_INCLUDE}`,
++            DL_LIBRARY: `${DL_LIBRARY}`,
++            CMAKE_SKIP_RPATH: `${CMAKE_SKIP_RPATH}`,
++            CMAKE_EXPORT_PACKAGE_REGISTRY: `${CMAKE_EXPORT_PACKAGE_REGISTRY}`,
++            CMAKE_EXPORT_NO_PACKAGE_REGISTRY: `${CMAKE_EXPORT_NO_PACKAGE_REGISTRY}`,
++            CMAKE_FIND_USE_PACKAGE_REGISTRY: `${CMAKE_FIND_USE_PACKAGE_REGISTRY}`,
++            CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY: `${CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY}`,
++            CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY: `${CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY}`,
++            CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY: `${CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY}`,
++            CMAKE_SYSROOT: `${CMAKE_SYSROOT}`,
++            CROSS_COMPILE: `${CROSS_COMPILE}`,
++            CMAKE_OBJCOPY: `${TARGET_CROSS}objcopy`,
++            CMAKE_STRIP: `${TARGET_CROSS}strip`,
+             CMAKE_INSTALL_PREFIX: 'crt/install',
+             CMAKE_PREFIX_PATH: 'crt/install',
+         }
+@@ -144,6 +220,18 @@ function buildLocally() {
      // Enable parallel build (ignored by cmake older than 3.12)
      process.env.CMAKE_BUILD_PARALLEL_LEVEL = `${Math.max(os.cpus().length, 1)}`;
  
 +    });
 +
      // Run the build
-     var buildSystem = new cmake.BuildSystem({
-         target: "install",
+     var buildSystem = new cmake.BuildSystem(options);
+     return buildSystem.build();
index 872ee94..ffffecb 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=aws-iot-device-sdk-v2
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.8.0
+PKG_VERSION:=1.8.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=428444884a41717ecbedc63e1395e7b5ebb3cb9a75b86f7a1037e946b44d1c33
+PKG_HASH:=660f2575f8cde0ddc20cee4739ab2995fcdf29466c883c17f65c56ef59238755
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 631f5e6..7b23329 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=aws-sdk
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=2.1070.0
+PKG_VERSION:=2.1127.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=e5250c4d2476d80221c9a7977a9ca02184492c20b33a56d7ed20c51d6b07475f
+PKG_HASH:=16026dafb0efbcf78819f422f949bb6918437156207db72e1c965cfecb2e987e
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 57d2739..dd5938c 100644 (file)
@@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk
 PKG_NPM_SCOPE:=azure
 PKG_NPM_NAME:=event-hubs
 PKG_NAME:=node-$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=5.7.0
+PKG_VERSION:=5.8.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=0b3508a64ce4bba72cc70051f118ed0827c265bd560191e2df697965c62818cf
+PKG_HASH:=8ffe1e409a013cad4c9630d1a5bdf01d474a9cd6bc057c9cf659d3db3a76d9c7
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index a6b08ee..442b055 100644 (file)
@@ -1,40 +1,42 @@
 --- a/package.json
 +++ b/package.json
-@@ -120,66 +120,5 @@
+@@ -120,67 +120,5 @@
      "uuid": "^8.3.0"
    },
    "devDependencies": {
 -    "@azure/dev-tool": "^1.0.0",
 -    "@azure/eslint-plugin-azure-sdk": "^3.0.0",
--    "@azure/identity": "2.0.0-beta.4",
--    "@azure/test-utils-perfstress": "^1.0.0",
--    "@microsoft/api-extractor": "7.7.11",
--    "@rollup/plugin-commonjs": "11.0.2",
+-    "@azure/identity": "^2.0.1",
+-    "@azure/mock-hub": "^1.0.0",
+-    "@azure/test-utils": "^1.0.0",
+-    "@azure/test-utils-perf": "^1.0.0",
+-    "@microsoft/api-extractor": "7.18.11",
+-    "@rollup/plugin-commonjs": "^21.0.1",
 -    "@rollup/plugin-inject": "^4.0.0",
 -    "@rollup/plugin-json": "^4.0.0",
 -    "@rollup/plugin-multi-entry": "^3.0.0",
--    "@rollup/plugin-node-resolve": "^8.0.0",
+-    "@rollup/plugin-node-resolve": "^13.0.6",
 -    "@rollup/plugin-replace": "^2.2.0",
 -    "@types/async-lock": "^1.1.0",
 -    "@types/chai": "^4.1.6",
 -    "@types/chai-as-promised": "^7.1.0",
 -    "@types/chai-string": "^1.4.1",
 -    "@types/debug": "^4.1.4",
--    "@types/long": "^4.0.0",
+-    "@types/long": "^4.0.1",
 -    "@types/mocha": "^7.0.2",
 -    "@types/node": "^12.0.0",
 -    "@types/sinon": "^9.0.4",
 -    "@types/uuid": "^8.0.0",
 -    "@types/ws": "^7.2.4",
--    "assert": "^1.4.1",
 -    "chai": "^4.2.0",
 -    "chai-as-promised": "^7.1.1",
 -    "chai-exclude": "^2.0.2",
 -    "chai-string": "^1.5.0",
+-    "copyfiles": "^2.4.1",
 -    "cross-env": "^7.0.2",
 -    "debug": "^4.1.1",
 -    "dotenv": "^8.2.0",
--    "downlevel-dts": "~0.4.0",
+-    "downlevel-dts": "^0.8.0",
 -    "eslint": "^7.15.0",
 -    "esm": "^3.2.18",
 -    "https-proxy-agent": "^5.0.0",
 -    "karma-mocha-reporter": "^2.2.5",
 -    "karma-sourcemap-loader": "^0.3.8",
 -    "mocha": "^7.1.1",
--    "mocha-junit-reporter": "^1.18.0",
+-    "mocha-junit-reporter": "^2.0.0",
 -    "moment": "^2.24.0",
--    "nyc": "^14.0.0",
--    "prettier": "^1.16.4",
--    "puppeteer": "^3.3.0",
+-    "nyc": "^15.0.0",
+-    "prettier": "^2.5.1",
+-    "puppeteer": "^13.5.1",
 -    "rimraf": "^3.0.0",
--    "rollup": "^1.16.3",
+-    "rollup": "^2.0.0",
 -    "rollup-plugin-shim": "^1.0.0",
--    "rollup-plugin-sourcemaps": "^0.4.2",
+-    "rollup-plugin-sourcemaps": "^0.6.3",
 -    "rollup-plugin-terser": "^5.1.1",
 -    "sinon": "^9.0.2",
--    "ts-node": "^9.0.0",
--    "typescript": "~4.2.0",
--    "ws": "^7.1.1",
--    "typedoc": "0.15.2"
+-    "ts-node": "^10.0.0",
+-    "typescript": "~4.6.0",
+-    "ws": "^8.2.0"
    }
  }
index eabdd37..285a18b 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=azure-iot-device-amqp
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.13.8
+PKG_VERSION:=1.14.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=d8e5788b0530b2e36d795619eb2aadfede186d5f4d8f633599b448456051a59b
+PKG_HASH:=cc17e7368da0d7709e462907b7c057c2080564de2e94186a487fc381c918d951
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 3c2c397..8042fc7 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=azure-iot-device-http
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.13.8
+PKG_VERSION:=1.14.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=6c76503b2267536a25a4d4900f0a582d9950eeb186428288b103f6ab1730d56c
+PKG_HASH:=7c0c3f1a6f865d6a14016603ecd04c5c3cd48d01106ae381b34587dbde17ef9b
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 88b001e..aadc66d 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=azure-iot-device-mqtt
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.15.8
+PKG_VERSION:=1.16.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=35cf77dfa03bbb7e7a9f0ae130360ce269e446c42ffe5dfaf80a628c0de617ad
+PKG_HASH:=ffdcc1b583819647eb83aa6847f1957a716c862c2754d95424019a8eb6b93795
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 7d95c1b..11b4276 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=azure-iot-device
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.17.8
+PKG_VERSION:=1.18.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=bf682743eb4537d9ec74ea0810688a5eb5814223eddd676820e81e90a7b6bd6d
+PKG_HASH:=3de3f8c6c25c98bb3de094d2e9caa93c42c4180db2a79ca47e7d4576424ff9cb
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index f313ffa..592a0c8 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=azure-iothub
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.14.6
+PKG_VERSION:=1.15.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=82ebb65488089efa34bc86f3fee2beff5588ea605e13395044c2a2b821ad15f2
+PKG_HASH:=1f6886725eb76ffd9e5f2357345b6b9975425b8507444d717a0e861019d5879f
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 20bc0ac..1b061c6 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=coap
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.0.4
+PKG_VERSION:=1.0.9
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=edd79120da1e86f6696349755b06aa1220dd902ff8aca92720a0ab3e242e7fed
+PKG_HASH:=4894efcd8679cfb2074f58119f52e5691a5bc77c1cfb13474e7674c5fc1b66ca
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index ca988b4..0562d4b 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=express
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=4.17.3
+PKG_VERSION:=4.18.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=2a5414ee2204cfb71d2cab0ade734d5e0af5b45919158e818c4b8683c272ec2b
+PKG_HASH:=8fc3ea14bf5b8670d828ed0b00ccbb00a57f7a8bacef507b4676be8bd8cfaa61
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 29310eb..826ce64 100644 (file)
@@ -44,7 +44,7 @@ TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
 NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
 TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
 
-TARGET_CFLAGS+=$(FPIC) -I$(BUILD_DIR)/libffi-$(PKG_LIBFFI_VERSION)/$(GNU_TARGET_NAME)-gnu
+TARGET_CFLAGS+=$(FPIC)
 TARGET_CPPFLAGS+=$(FPIC)
 
 define Build/Compile
index 88f3d66..0647ff5 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=ffmpeg-for-homebridge
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=0.0.10
+PKG_VERSION:=0.1.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=3ce774b5f87823023bae92745199f8f6f5c48bf1b45b580cc111554ec8151a68
+PKG_HASH:=ff319bb04d38f29c32bbc1fa36459231d6be75b922e8bcb1e63fd35319aeb173
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=none
index 30bef56..4826605 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=hap-nodejs
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=0.10.0
+PKG_VERSION:=0.10.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=7770451c527308101876445162cbf6a1292e3b3067873788188056ab5b7bc5f4
+PKG_HASH:=cdd1e49fc8d70a7c42b7fda84d6c596b81b02c4f663dd4a2f7bf49abbe7016eb
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 32248e0..236bdbb 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=homebridge-cmd4
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=6.1.2
+PKG_VERSION:=6.3.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=037069c16f6a3f4abd58c7e5086ad80a88bbe7358281cd0cce83cbcc75790517
+PKG_HASH:=9ead281c6423935ad16d6af00fbb458312719999407cfb1da52515555637fb36
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 80ae8e9..bbc4ae6 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=homebridge-config-ui-x
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=4.42.0
+PKG_VERSION:=4.44.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=d81c3eefb1f6b4a092ee14036ed5568592bd962c327f5ac69a8eece421200adc
+PKG_HASH:=fc18c009fb1346d6fcfb55f8cb6f8bf96b8371025a033e2c3cd3cf055e8533cd
 
 PKG_BUILD_DEPENDS:=node/host node-clean-modules/host
 PKG_USE_MIPS16:=0
index 58421d2..87fb7f2 100644 (file)
@@ -4,7 +4,7 @@
      "fs-extra": "9.1.0",
      "helmet": "4.4.1",
      "node-cache": "^5.1.2",
--    "node-pty-prebuilt-multiarch": "^0.10.1-pre.4",
+-    "node-pty-prebuilt-multiarch": "^0.10.1-pre.5",
      "node-schedule": "^1.3.3",
      "ora": "5.3.0",
      "p-limit": "3.1.0",
index 3fb5857..8db0a5e 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=homebridge-z2m
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.7.0
+PKG_VERSION:=1.8.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=aeb021f7080a452936712ba8b9609a6811dee88796e9e6aea6f72d1e301ed3e5
+PKG_HASH:=399938e1910409a09cd9fdb731d72627ae472d4bae03bc871fe6b107706f7070
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
index ccc6c8d..a5b9d2a 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=homebridge
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.4.0
+PKG_VERSION:=1.4.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=7aaf4341737aaccd2e170bd44af5f68cb289442cfe88b10ed788528057f0657a
+PKG_HASH:=53d9a9c7f00ea3b40b266f5d03e67f60eb24f2ef69e875891473c4593dda0045
 
 PKG_BUILD_DEPENDS:=node/host
 PKG_USE_MIPS16:=0
index cea6b87..0f8ab2f 100644 (file)
@@ -10,6 +10,7 @@ start_service() {
                chown homebridge:homebridge /usr/share/homebridge
        }
        procd_open_instance
+       procd_set_param env HOME=/usr/share/homebridge
        procd_set_param command /usr/bin/homebridge -U /usr/share/homebridge
        procd_set_param user homebridge
        procd_set_param stdout 1
index 5a4aa41..832f967 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=lwm2m-node-lib
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.3.0
-PKG_RELEASE:=4
+PKG_VERSION:=1.4.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=8982693429b014bb2cd93f7b93f8521a274ec5d7afeadae505b5c49a0fc16306
+PKG_HASH:=ea73956ecfd07b5d44c453f06ec5ffc90348e6c2a4f52dc3f64fdfb0ee538f20
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=AGPL-3.0
index 6e5a24e..e96778f 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=mocha
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=9.2.2
+PKG_VERSION:=10.0.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=829065fecd9d6eb25c755a05d5ca748da3ad775e6d30d24abba5791039218492
+PKG_HASH:=91c4b9e3d052d73b7cdf297d296e698e8db1137724dd4391cdc5b93ad543283f
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
@@ -71,9 +71,7 @@ define Package/node-mocha/install
                $(1)/usr/lib/node/$(PKG_NPM_NAME)/
        $(CP) $(PKG_BUILD_DIR)/{*.css,*.md,*.js} \
                $(1)/usr/lib/node/$(PKG_NPM_NAME)/
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,bin} \
-               $(1)/usr/lib/node/$(PKG_NPM_NAME)/
-       $(CP) $(PKG_BUILD_DIR)/{assets,lib} \
+       $(CP) $(PKG_BUILD_DIR)/{node_modules,bin,lib} \
                $(1)/usr/lib/node/$(PKG_NPM_NAME)/
        $(INSTALL_DIR) $(1)/usr/bin
        $(LN) ../lib/node/$(PKG_NPM_NAME)/bin/mocha $(1)/usr/bin/mocha
@@ -107,9 +105,7 @@ define Host/Install
                $(1)/lib/node_modules/$(PKG_NPM_NAME)/
        $(CP) $(HOST_BUILD_DIR)/{*.css,*.md,*.js} \
                $(1)/lib/node_modules/$(PKG_NPM_NAME)/
-       $(CP) $(HOST_BUILD_DIR)/{node_modules,bin} \
-               $(1)/lib/node_modules/$(PKG_NPM_NAME)/
-       $(CP) $(HOST_BUILD_DIR)/{assets,lib} \
+       $(CP) $(HOST_BUILD_DIR)/{node_modules,bin,lib} \
                $(1)/lib/node_modules/$(PKG_NPM_NAME)/
        $(INSTALL_DIR) $(1)/bin
        $(LN) ../lib/node_modules/$(PKG_NPM_NAME)/bin/mocha $(1)/bin/mocha
index c31b68b..6e27518 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=nconf
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=0.11.3
+PKG_VERSION:=0.12.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=8bcc08dd23a12d5e4c82161fb084baafdea2abd95960d28b8b251b57952a0934
+PKG_HASH:=9a2d4ce59e6d4f889ea8bf537d9c7129f03466666cfe229a0b38b50ad52957ca
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index ba29f38..dcdbf31 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=npm-check-updates
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=12.5.5
+PKG_VERSION:=12.5.11
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=727956afedd7bfbafdaa9bcac6ca49d7dc7ce58e891ac60abfdbffcd8dca597f
+PKG_HASH:=275036c9ee9a03dc0f803683180e3922885792c1bc390fab78c4d2c35a387a6b
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>, Patrik Laszlo <alabard@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 55d7f4c..422cedc 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=node-pty-prebuilt-multiarch
 PKG_NAME:=$(PKG_NPM_NAME)
-PKG_VERSION:=0.10.1-pre.4
-PKG_RELEASE:=2
+PKG_VERSION:=0.10.1-pre.5
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=657c7223e99bdd065f870b755d3a06cd0c6d53d466d577a714525fa8dd587c72
+PKG_HASH:=8d4536bb6626a8e8d92fb68d849a73de45e76f5e9578909987dbfcbca2610021
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/node-red-contrib-web-of-things/Makefile b/lang/node-red-contrib-web-of-things/Makefile
deleted file mode 100644 (file)
index f6da99c..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_NAME:=node-red-contrib-web-of-things
-PKG_NAME:=$(PKG_NPM_NAME)
-PKG_VERSION:=1.2.4
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
-                https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=42e7c54bc65bf66a67e63eb30734b45034c615bf62fecf5d0da96e1ae42d2fb3
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=MIT
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-red-contrib-web-of-things
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=Web of Things node for node-RED
-  URL:=https://flows.nodered.org/node/node-red-contrib-web-of-things
-  DEPENDS:=+node +node-red +node-wot-core +node-wot-binding-http +node-wot-binding-coap \
-           +node-wot-binding-mqtt +node-wot-binding-opcua +node-wot-binding-modbus \
-           +node-wot-binding-websockets
-endef
-
-define Package/node-red-contrib-web-of-things/description
- A Node-RED package of nodes for the Web of Things.
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-red-contrib-web-of-things/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/$(PKG_NPM_NAME)/
-       $(CP) $(PKG_BUILD_DIR)/src \
-               $(1)/usr/lib/node/$(PKG_NPM_NAME)/
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules
-       $(LN) ../node/$(PKG_NPM_NAME) $(1)/usr/lib/node_modules/$(PKG_NPM_NAME)
-endef
-
-define Package/node-red-contrib-web-of-things/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/node-red-contrib-web-of-things || true
-rm -rf /usr/lib/node/node-red-contrib-web-of-things || true
-endef
-
-$(eval $(call BuildPackage,node-red-contrib-web-of-things))
diff --git a/lang/node-red-contrib-web-of-things/patches/000-remove_depends.patch b/lang/node-red-contrib-web-of-things/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index f01c9fa..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -24,14 +24,5 @@
-       "wot-action": "src/wot-action.js",
-       "wot-event": "src/wot-event.js"
-     }
--  },
--  "dependencies": {
--    "@node-wot/core": "0.7.7",
--    "@node-wot/binding-http": "0.7.7",
--    "@node-wot/binding-websockets": "0.7.7",
--    "@node-wot/binding-coap": "0.7.7",
--    "@node-wot/binding-mqtt": "0.7.7",
--    "@node-wot/binding-opcua": "0.7.7",
--    "@node-wot/binding-modbus": "0.7.7"
-   }
- }
index 9f8de3c..7ba08c1 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=node-red-dashboard
 PKG_NAME:=$(PKG_NPM_NAME)
-PKG_VERSION:=3.1.6
+PKG_VERSION:=3.1.7
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=a8f3260104f7cec52f268ca6b5fa9edc72daf3568ea980687f06d2cba26d83b1
+PKG_HASH:=e46a3ad9056160e8d2cfdb3b359d63a695f145e4efe06482fe0b401992bd4c17
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 7296fc0..cc81e9d 100755 (executable)
@@ -15,6 +15,7 @@ start_service() {
        config_get_bool log_stdout "common" log_stdout "0"
 
        procd_open_instance
+       procd_set_param env HOME=/root
        procd_set_param command /usr/bin/node-red
        procd_append_param command --port "$port"
        [ "$verbose" = "1" ] && procd_append_param command --verbose
index 2b3ed24..9c8e234 100644 (file)
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=socket.io-client
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=4.4.1
+PKG_VERSION:=4.5.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=19d867c2e55124ef3d336e252fac19734133bbd49183c5cca8d694fd1b5692fe
+PKG_HASH:=55f2a05ee639f07abb850a4ceb54e38baf29556270e7c971c10bfa81b0138520
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index ae622a3..3fd41cb 100644 (file)
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=socket.io
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=4.4.1
+PKG_VERSION:=4.5.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=53b734d7200d684509bb427e6a423d08fd1f6c2f18740a4de90ed18573070190
+PKG_HASH:=6ba9ae4593df6510c79466c198f1e7ca29b0fcb2c9efa04c04a23943182e2c64
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index f1cebd9..1c79b50 100644 (file)
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=sqlite3
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=5.0.2
-PKG_RELEASE:=2
+PKG_VERSION:=5.0.8
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=c2d364341eff7c6ae1c57ad62cfea3bb3e2cd7a3ae1eddbdde701e9ed52f2f39
+PKG_HASH:=fe701c378336347574530a63eeeddd9ee5aa25b8b950bd0df5c4d2aa047c1336
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
@@ -37,7 +37,7 @@ define Package/node-sqlite3
 endef
 
 define Package/node-sqlite3/description
- Node.js package to access serial ports for reading and writing OR Welcome your robotic JavaScript overlords. Better yet, program them!
+ Asynchronous, non-blocking SQLite3 bindings for Node.js
 endef
 
 TAR_OPTIONS+= --strip-components 1
@@ -65,7 +65,7 @@ endef
 
 define Package/node-sqlite3/install
        $(INSTALL_DIR) $(1)/usr/lib/node/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md,*.js} \
+       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
                $(1)/usr/lib/node/$(PKG_NPM_NAME)/
        $(CP) $(PKG_BUILD_DIR)/{node_modules,LICENSE,lib} \
                $(1)/usr/lib/node/$(PKG_NPM_NAME)/
diff --git a/lang/node-sqlite3/patches/001-change_module_path_for_cross_build.patch b/lang/node-sqlite3/patches/001-change_module_path_for_cross_build.patch
new file mode 100644 (file)
index 0000000..711ee9f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/package.json
++++ b/package.json
+@@ -9,7 +9,7 @@
+   },
+   "binary": {
+     "module_name": "node_sqlite3",
+-    "module_path": "./lib/binding/napi-v{napi_build_version}-{platform}-{libc}-{arch}",
++    "module_path": "./lib/binding/napi-v{napi_build_version}",
+     "host": "https://github.com/TryGhost/node-sqlite3/releases/download/",
+     "remote_path": "v{version}",
+     "package_name": "napi-v{napi_build_version}-{platform}-{libc}-{arch}.tar.gz",
index 1b493ea..1819048 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=twilio
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=3.76.0
+PKG_VERSION:=3.77.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=dfd4076e80593820b24490dcf723415684fcdeeb0eed1a9652bea9792990946f
+PKG_HASH:=851766120f8424b6a4236c2d7b75aa58892b15d99be0fce56d804ce10fa1ad94
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 5e6950f..4030952 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=typescript
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=4.6.3
+PKG_VERSION:=4.6.4
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=70d5d30a8ee92004e529c41fc05d5c7993f7a4ddea33b4c0909896936230964d
+PKG_HASH:=fe327fcd837f908d2124b27ec3efe043339b31eb3a2446403bc2c4951c2b0383
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 3464250..cd871e2 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=uglify-js
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=3.15.3
+PKG_VERSION:=3.15.5
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=aacbd5ced3bebc93ba91b39776a010627a2ffa55f79037ef445361c1577e70d6
+PKG_HASH:=13e58396218c79c49965aea4495cc0200e27f0c50cce49d69077097052ceb471
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=BSD-2-Clause
index a5576c5..b872f6d 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=usb
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=2.2.0
+PKG_VERSION:=2.4.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=a5902b706bc11513d9ddee7e8970b1ef3532b885ea31d4c6048d9213b2a8429b
+PKG_HASH:=b80cc571a080501aea1189ffc50b512449b7b532e6293a20790cc6ec2a92b83d
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/node-usb/patches/000-add_atomic_header.patch b/lang/node-usb/patches/000-add_atomic_header.patch
new file mode 100644 (file)
index 0000000..a8cef6d
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/node_usb.h
++++ b/src/node_usb.h
+@@ -4,6 +4,7 @@
+ #include <assert.h>
+ #include <string>
+ #include <map>
++#include <atomic>
+ #ifdef _WIN32
+ #include <WinSock2.h>
diff --git a/lang/node-wot-binding-coap/Makefile b/lang/node-wot-binding-coap/Makefile
deleted file mode 100644 (file)
index b21afc5..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-coap
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=d0fa53277efac80cebda87401681e994f7a5f20e4f4eddf624b734b43611fe88
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-coap
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=CoAP Protocol Binding of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/binding-coap
-  DEPENDS:=+node +node-wot-core +node-wot-td-tools
-endef
-
-define Package/node-wot-binding-coap/description
-Eclipse Thingweb node-wot CoAP client & server protocol binding
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-coap/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-coap/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-coap || true
-rm -rf /usr/lib/node/@node-wot/binding-coap || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-coap))
diff --git a/lang/node-wot-binding-coap/patches/000-remove_depends.patch b/lang/node-wot-binding-coap/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index 359a640..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -34,8 +34,6 @@
-         "typescript-standard": "^0.3.36"
-     },
-     "dependencies": {
--        "@node-wot/core": "0.8.0",
--        "@node-wot/td-tools": "0.8.0",
-         "@types/node": "16.4.13",
-         "coap": "^1.0.3",
-         "node-coap-client": "1.0.8",
diff --git a/lang/node-wot-binding-file/Makefile b/lang/node-wot-binding-file/Makefile
deleted file mode 100644 (file)
index f4fec21..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-file
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=1fba4f85c5f1eb33f2a6f01e6f3bd990c40aa60a342de526e442b5b0b7c5fa08
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-file
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=File Binding of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/binding-file
-  DEPENDS:=+node +node-wot-core
-endef
-
-define Package/node-wot-binding-file/description
- Eclipse Thingweb node-wot File client protocol binding
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-file/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/dist \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-file/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-file || true
-rm -rf /usr/lib/node/@node-wot/binding-file || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-file))
diff --git a/lang/node-wot-binding-file/patches/000-remove_depends.patch b/lang/node-wot-binding-file/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index 6cd4424..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -30,9 +30,6 @@
-         "typescript-standard": "^0.3.36",
-         "wot-typescript-definitions": "0.8.0-SNAPSHOT.22"
-     },
--    "dependencies": {
--        "@node-wot/core": "0.8.0"
--    },
-     "scripts": {
-         "build": "tsc -b",
-         "test": "",
diff --git a/lang/node-wot-binding-http/Makefile b/lang/node-wot-binding-http/Makefile
deleted file mode 100644 (file)
index fb53498..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-http
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=6f94f744772040102dd25eb3756176667817b54a4f3e8446a5a0297e876931fa
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-http
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=HTTP Protocol Binding of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/binding-http
-  DEPENDS:=+node +node-wot-core +node-wot-td-tools
-endef
-
-define Package/node-wot-binding-http/description
- Eclipse Thingweb node-wot HTTP client & server protocol binding
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-http/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-http/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-http || true
-rm -rf /usr/lib/node/@node-wot/binding-http || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-http))
diff --git a/lang/node-wot-binding-http/patches/000-remove_depends.patch b/lang/node-wot-binding-http/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index 84ab8e8..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -48,8 +48,6 @@
-         "wot-typescript-definitions": "0.8.0-SNAPSHOT.22"
-     },
-     "dependencies": {
--        "@node-wot/core": "0.8.0",
--        "@node-wot/td-tools": "0.8.0",
-         "@types/eventsource": "^1.1.2",
-         "accept-language-parser": "1.5.0",
-         "basic-auth": "2.0.1",
diff --git a/lang/node-wot-binding-modbus/Makefile b/lang/node-wot-binding-modbus/Makefile
deleted file mode 100644 (file)
index 58b0237..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-modbus
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=c049421291224835c4d59f5c41a435ef43267242b9ef3bcf955023abf1d0ae5b
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-modbus
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=Modbus Client Protocol Binding
-  URL:=https://www.npmjs.com/package/@node-wot/binding-modbus
-  DEPENDS:=+node +node-wot-core +node-wot-td-tools +node-modbus-serial
-endef
-
-define Package/node-wot-binding-modbus/description
- W3C Web of Things (WoT) Protocol Binding for Modbus TCP RFC. This package uses modbus-serial as a low level client for Modbus TCP.
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-modbus/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-modbus/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-modbus || true
-rm -rf /usr/lib/node/@node-wot/binding-modbus || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-modbus))
diff --git a/lang/node-wot-binding-modbus/patches/000-remove_depends.patch b/lang/node-wot-binding-modbus/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index 6f6d6ea..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -40,9 +40,6 @@
-         "typescript-standard": "^0.3.36"
-     },
-     "dependencies": {
--        "@node-wot/core": "0.8.0",
--        "@node-wot/td-tools": "0.8.0",
--        "modbus-serial": "^8.0.3",
-         "rxjs": "5.5.11",
-         "wot-typescript-definitions": "0.8.0-SNAPSHOT.22"
-     },
diff --git a/lang/node-wot-binding-mqtt/Makefile b/lang/node-wot-binding-mqtt/Makefile
deleted file mode 100644 (file)
index d6e83ab..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-mqtt
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=cb61d301187a9debe51ef701ff8f2cd12af5acecea4b3f4d25207d7f0ea709dc
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-mqtt
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=MQTT binding for node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/binding-mqtt
-  DEPENDS:=+node +node-wot-core +node-wot-td-tools +node-mqtt
-endef
-
-define Package/node-wot-binding-mqtt/description
- Eclipse Thingweb node-wot MQTT Binding
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-mqtt/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-mqtt/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-mqtt || true
-rm -rf /usr/lib/node/@node-wot/binding-mqtt || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-mqtt))
diff --git a/lang/node-wot-binding-mqtt/patches/000-remove_depends.patch b/lang/node-wot-binding-mqtt/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index 98b71d9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -35,10 +35,7 @@
-         "wot-typescript-definitions": "0.8.0-SNAPSHOT.22"
-     },
-     "dependencies": {
--        "@node-wot/core": "0.8.0",
--        "@node-wot/td-tools": "0.8.0",
-         "aedes": "^0.46.2",
--        "mqtt": "^4.2.8",
-         "rxjs": "5.5.11"
-     },
-     "scripts": {
diff --git a/lang/node-wot-binding-opcua/Makefile b/lang/node-wot-binding-opcua/Makefile
deleted file mode 100644 (file)
index f7cd405..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-opcua
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=ecdca2cb31b448603da16c1ab8939e6b85418ee804457112861acc51f63b0002
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-opcua
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=OPC UA Client Protocol Binding
-  URL:=https://www.npmjs.com/package/@node-wot/binding-opcua
-  DEPENDS:=+node +node-wot-core +node-wot-td-tools
-endef
-
-define Package/node-wot-binding-opcua/description
- W3C Web of Things (WoT) Protocol Binding for OPC UA
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-opcua/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-opcua/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-opcua || true
-rm -rf /usr/lib/node/@node-wot/binding-opcua || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-opcua))
diff --git a/lang/node-wot-binding-opcua/patches/000-remove_depends.patch b/lang/node-wot-binding-opcua/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index f86ceb7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -40,8 +40,6 @@
-     "dependencies": {
-         "ajv": "^7.0.4",
-         "ajv-formats": "^2.1.1",
--        "@node-wot/core": "0.8.0",
--        "@node-wot/td-tools": "0.8.0",
-         "node-opcua": "2.65.1",
-         "node-opcua-json": "0.19.0",
-         "node-opcua-pubsub-client": "0.19.0",
diff --git a/lang/node-wot-binding-websockets/Makefile b/lang/node-wot-binding-websockets/Makefile
deleted file mode 100644 (file)
index edd8cd6..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=binding-websockets
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=28104a42da5ac78e0d43d490a0a58092c971831c0ebe6269c78959dd35477e3b
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-binding-websockets
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=Websockets Protocol Binding of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/binding-websockets
-  DEPENDS:=+node +node-wot-core +node-wot-td-tools +node-wot-binding-http +node-ws
-endef
-
-define Package/node-wot-binding-websockets/description
- Eclipse Thingweb node-wot WebSockets client & server protocol binding
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-binding-websockets/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/package.json \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-binding-websockets/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/binding-websockets || true
-rm -rf /usr/lib/node/@node-wot/binding-websockets || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-binding-websockets))
diff --git a/lang/node-wot-binding-websockets/patches/000-remove_depends.patch b/lang/node-wot-binding-websockets/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index 82f5e98..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -37,11 +37,7 @@
-         "wot-typescript-definitions": "0.8.0-SNAPSHOT.22"
-     },
-     "dependencies": {
--        "@node-wot/binding-http": "0.8.0",
--        "@node-wot/core": "0.8.0",
--        "@node-wot/td-tools": "0.8.0",
--        "slugify": "^1.4.5",
--        "ws": "^7.5.4"
-+        "slugify": "^1.4.5"
-     },
-     "scripts": {
-         "build": "tsc -b",
diff --git a/lang/node-wot-cli/Makefile b/lang/node-wot-cli/Makefile
deleted file mode 100644 (file)
index 6685830..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=cli
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=599f8bbe9f5a401d03baa763035e003b1317ca4883273370618f113807957b93
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-cli
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=Command-line interface of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/cli
-  DEPENDS:=+node +node-wot-core +node-wot-binding-coap +node-wot-binding-file \
-           +node-wot-binding-http +node-wot-binding-websockets +node-wot-binding-mqtt
-endef
-
-define Package/node-wot-cli/description
- Eclipse Thingweb node-wot servient command line interface
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-cli/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-cli/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/cli || true
-rm -rf /usr/lib/node/@node-wot/cli || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-cli))
diff --git a/lang/node-wot-cli/patches/000-remove_depends.patch b/lang/node-wot-cli/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index b756132..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -38,12 +38,6 @@
-         "ts-node": "10.1.0"
-     },
-     "dependencies": {
--        "@node-wot/binding-coap": "0.8.0",
--        "@node-wot/binding-file": "0.8.0",
--        "@node-wot/binding-http": "0.8.0",
--        "@node-wot/binding-mqtt": "0.8.0",
--        "@node-wot/binding-websockets": "0.8.0",
--        "@node-wot/core": "0.8.0",
-         "dotenv": "^8.6.0"
-     },
-     "scripts": {
diff --git a/lang/node-wot-core/Makefile b/lang/node-wot-core/Makefile
deleted file mode 100644 (file)
index 31de918..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=core
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=3cd17aee021f557cf09a4d76145b35109063b8e985d77d1a9d5cf6b66a23b912
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-core
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=Core of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/core
-  DEPENDS:=+node +node-wot-td-tools
-endef
-
-define Package/node-wot-core/description
- W3C Web of Things (WoT) Servient framework
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-core/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-core/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/core || true
-rm -rf /usr/lib/node/@node-wot/core || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-core))
diff --git a/lang/node-wot-core/patches/000-remove_depends.patch b/lang/node-wot-core/patches/000-remove_depends.patch
deleted file mode 100644 (file)
index dcff16c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/package.json
-+++ b/package.json
-@@ -43,7 +43,6 @@
-         "wot-typescript-definitions": "^0.8.0-SNAPSHOT.22"
-     },
-     "dependencies": {
--        "@node-wot/td-tools": "0.8.0",
-         "@petamoriken/float16": "^3.1.1",
-         "ajv": "^7.0.4",
-         "rxjs": "5.5.11",
diff --git a/lang/node-wot-td-tools/Makefile b/lang/node-wot-td-tools/Makefile
deleted file mode 100644 (file)
index b668c8a..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NPM_SCOPE:=node-wot
-PKG_NPM_NAME:=td-tools
-PKG_NAME:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
-PKG_VERSION:=0.8.0
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
-PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
-PKG_HASH:=ed8518125896a41c4b5ac58b29bd48af9176e60ef64f95fcb495a359eda6eb38
-
-PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
-PKG_LICENSE:=EPL-2.0 OR W3C-20150513
-PKG_LICENSE_FILES:=
-
-PKG_BUILD_DEPENDS:=node/host
-PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/node-wot-td-tools
-  SUBMENU:=Node.js
-  SECTION:=lang
-  CATEGORY:=Languages
-  TITLE:=TD (ThingDescription) tools of node-wot
-  URL:=https://www.npmjs.com/package/@node-wot/td-tools
-  DEPENDS:=+node
-endef
-
-define Package/node-wot-td-tools/description
- W3C Web of Things (WoT) Thing Description parser, serializer, and other tools
-endef
-
-TAR_OPTIONS+= --strip-components 1
-TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
-
-NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))))
-TMPNPM:=$(shell mktemp -u XXXXXXXXXX)
-
-TARGET_CFLAGS+=$(FPIC)
-TARGET_CPPFLAGS+=$(FPIC)
-
-define Build/Compile
-       cd $(PKG_BUILD_DIR); \
-       $(MAKE_VARS) \
-       $(MAKE_FLAGS) \
-       npm_config_nodedir=$(STAGING_DIR)/usr/ \
-       npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \
-       npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \
-       npm install --production --global-style --no-save --omit=dev --no-package-lock
-       rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM)
-       rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
-       rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
-       find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 rmdir || true
-endef
-
-define Package/node-wot-td-tools/install
-       $(INSTALL_DIR) $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{package.json,*.md} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(CP) $(PKG_BUILD_DIR)/{node_modules,dist} \
-               $(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-       $(INSTALL_DIR) $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)
-       $(LN) ../../node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME) \
-               $(1)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
-endef
-
-define Package/node-wot-td-tools/postrm
-#!/bin/sh
-rm /usr/lib/node_modules/@node-wot/td-tools || true
-rm -rf /usr/lib/node/@node-wot/td-tools || true
-rmdir /usr/lib/node_modules/@node-wot || true
-rmdir /usr/lib/node/@node-wot || true
-endef
-
-$(eval $(call BuildPackage,node-wot-td-tools))
index e6b851f..03ac15e 100644 (file)
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=ws
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=8.5.0
+PKG_VERSION:=8.6.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=9d52458248130579982aef601f0fb927f192fe9891a6556f9a15fc432250e969
+PKG_HASH:=b5a5404f97c149137840605b118e2f015a7889562fe277979f16acf5593b2139
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=MIT
index 7d5d7df..4059f54 100644 (file)
@@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NPM_NAME:=zigbee2mqtt
 PKG_NAME:=node-$(PKG_NPM_NAME)
-PKG_VERSION:=1.24.0
+PKG_VERSION:=1.25.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
                 https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
-PKG_HASH:=e1678416c3f473ba599bd3aad438d4be846793d9878c86e38372845ec3c0ec23
+PKG_HASH:=30c7017961c64a728dce1177d55335e1a58cd9ccfd174621254fca1647e859e4
 
 PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
 PKG_LICENSE:=GPL-3.0
index b3cddcd..f416bc4 100644 (file)
@@ -6,8 +6,9 @@ USE_PROCD=1
 start_service()
 {
        procd_open_instance
-       procd_set_param env ZIGBEE2MQTT_DATA=/etc/zigbee2mqtt/ NODE_PATH=/opt/zigbee2mqtt/node_modules/winston/node_modules:/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules
+       procd_set_param env HOME=/root ZIGBEE2MQTT_DATA=/etc/zigbee2mqtt/ NODE_PATH=/opt/zigbee2mqtt/node_modules/winston/node_modules:/opt/zigbee2mqtt/node_modules/zigbee-herdsman/node_modules
        procd_set_param command /usr/bin/npm start --prefix /opt/zigbee2mqtt
+       procd_set_param respawn
        procd_set_param stdout 1
        procd_set_param stderr 1
        procd_close_instance
index 906ea64..8a2d431 100644 (file)
@@ -13,15 +13,15 @@ PKG_HASH:=a0f812efc43f78321eca08957960a48f5e6bf97004d5058c8dd3b03c646ea4f7
 PATCH_DIR:=./patches/v16.x
 else
 ifeq ($(CONFIG_NODEJS_14),y)
-PKG_VERSION:=v14.19.1
+PKG_VERSION:=v14.19.3
 PKG_RELEASE:=1
-PKG_HASH:=e1ae09dd861ab39af04483bb5c0fa54ddd82b6b15543be9a27ea6704a8ba9dd9
+PKG_HASH:=5cf45b1f1aca77523acf36240c1d53a999279070a7711eabf23346f88b0cc994
 PATCH_DIR:=./patches/v14.x
 else
-PKG_VERSION:=v12.22.12
+PKG_VERSION:=v18.2.0
 PKG_RELEASE:=1
-PKG_HASH:=bc42b7f8495b9bfc7f7850dd180bb02a5bdf139cc232b8c6f02a6967e20714f2
-PATCH_DIR:=./patches/v12.x
+PKG_HASH:=2305b15ebf5547474e905b5002f9ba99c7eeef01d7394dfe6f3846cc6bcad66d
+PATCH_DIR:=./patches/v18.x
 endif
 endif
 
@@ -54,7 +54,7 @@ define Package/node
   URL:=https://nodejs.org/
   DEPENDS:=@HAS_FPU @(i386||x86_64||arm||aarch64||mipsel) \
           +libstdcpp +libopenssl +zlib +libnghttp2 +libuv \
-          +libatomic +NODEJS_ICU_SYSTEM:icu +NODEJS_ICU_SYSTEM:icu-full-data
+          +libcares +libatomic +NODEJS_ICU_SYSTEM:icu +NODEJS_ICU_SYSTEM:icu-full-data
 endef
 
 define Package/node/description
@@ -92,14 +92,14 @@ define Package/node/config
                help
                 Select node.js version.
 
-               config NODEJS_12
-                       bool "12.x Maintenance LTS"
-
                config NODEJS_14
                        bool "14.x Maintenance LTS"
 
                config NODEJS_16
                        bool "16.x Active LTS"
+
+               config NODEJS_18
+                       bool "18.x Current"
        endchoice
 
        choice
@@ -130,10 +130,10 @@ endif
 
 MAKE_VARS+= \
        DESTCPU=$(NODEJS_CPU) \
-       NO_LOAD='cctest.target.mk embedtest.target.mk node_mksnapshot.target.mk' \
+       NO_LOAD='cctest.target.mk embedtest.target.mk node_mksnapshot.target.mk overlapped-checker.target.mk mkcodecache.target.mk' \
        LD_LIBRARY_PATH=$(STAGING_DIR_HOSTPKG)/share/icu/current/lib
 
-HOST_MAKE_VARS+=NO_LOAD='cctest.target.mk embedtest.target.mk'
+HOST_MAKE_VARS+=NO_LOAD='cctest.target.mk embedtest.target.mk overlapped-checker.target.mk'
 
 CONFIGURE_VARS:= \
        CC="$(TARGET_CC) $(TARGET_OPTIMIZATION)" \
@@ -149,6 +149,7 @@ CONFIGURE_ARGS:= \
        --shared-openssl \
        --shared-nghttp2 \
        --shared-libuv \
+       --shared-cares \
        --with-intl=$(if $(CONFIG_NODEJS_ICU_SMALL),small-icu,$(if $(CONFIG_NODEJS_ICU_SYSTEM),system-icu,none)) \
        $(if $(findstring +neon,$(CONFIG_CPU_TYPE)),--with-arm-fpu=neon) \
        $(if $(findstring +vfp",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfp) \
diff --git a/lang/node/patches/v12.x/003-path.patch b/lang/node/patches/v12.x/003-path.patch
deleted file mode 100644 (file)
index 24e369c..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/lib/internal/modules/cjs/loader.js
-+++ b/lib/internal/modules/cjs/loader.js
-@@ -1109,7 +1109,8 @@ Module._initPaths = function() {
-     path.resolve(process.execPath, '..') :
-     path.resolve(process.execPath, '..', '..');
--  let paths = [path.resolve(prefixDir, 'lib', 'node')];
-+  let paths = [path.resolve(prefixDir, 'lib', 'node'),
-+               path.resolve(prefixDir, 'lib', 'node_modules')];
-   if (homeDir) {
-     paths.unshift(path.resolve(homeDir, '.node_libraries'));
diff --git a/lang/node/patches/v12.x/005-check-if-uclibc-has-backtrace-support.patch b/lang/node/patches/v12.x/005-check-if-uclibc-has-backtrace-support.patch
deleted file mode 100644 (file)
index 7feda3f..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-From 7c69553d7275bbcaa88fada8ccd0d2d9f787e1ad Mon Sep 17 00:00:00 2001
-From: Martin Bark <martin@barkynet.com>
-Date: Sat, 4 Mar 2017 20:41:40 +0000
-Subject: [PATCH] check if uclibc has backtrace support
-
-Signed-off-by: Martin Bark <martin@barkynet.com>
----
- deps/v8/src/base/debug/stack_trace_posix.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/deps/v8/src/base/debug/stack_trace_posix.cc
-+++ b/deps/v8/src/base/debug/stack_trace_posix.cc
-@@ -25,7 +25,7 @@
- #include <string>
- #include <vector>
--#if V8_LIBC_GLIBC || V8_LIBC_BSD || V8_LIBC_UCLIBC || V8_OS_SOLARIS
-+#if V8_LIBC_GLIBC || V8_LIBC_BSD || ( V8_LIBC_UCLIBC && __UCLIBC_HAS_BACKTRACE__ ) || V8_OS_SOLARIS
- #define HAVE_EXECINFO_H 1
- #endif
diff --git a/lang/node/patches/v12.x/010-execvp-arg-list-too-long.patch b/lang/node/patches/v12.x/010-execvp-arg-list-too-long.patch
deleted file mode 100644 (file)
index 354508e..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
---- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
-+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
-@@ -151,6 +151,32 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOL
- quiet_cmd_link = LINK($(TOOLSET)) $@
- cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # We support two kinds of shared objects (.so):
- # 1) shared_library, which is just bundling together many dependent libraries
- # into a link line.
-@@ -195,6 +221,32 @@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET))
- quiet_cmd_alink_thin = AR($(TOOLSET)) $@
- cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # Due to circular dependencies between libraries :(, we wrap the
- # special "figure out circular dependencies" flags around the entire
- # input list during linking.
-@@ -1612,11 +1664,17 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)
-             "Spaces in alink input filenames not supported (%s)"  % link_dep)
-       if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not
-           self.is_standalone_static_library):
--        self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
--                        part_of_all, postbuilds=postbuilds)
-+        if self.flavor in ('linux', 'android'):
-+          self.WriteMakeRule([self.output_binary], link_deps, actions = ['$(call create_thin_archive,$@,$^)'])
-+        else:
-+          self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
-+                          part_of_all, postbuilds=postbuilds)
-       else:
--        self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
--                        postbuilds=postbuilds)
-+        if self.flavor in ('linux', 'android'):
-+          self.WriteMakeRule([self.output_binary], link_deps, actions = ['$(call create_archive,$@,$^)'])
-+        else:
-+          self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
-+                          postbuilds=postbuilds)
-     elif self.type == 'shared_library':
-       self.WriteLn('%s: LD_INPUTS := %s' % (
-             QuoteSpaces(self.output_binary),
---- a/tools/gyp/pylib/gyp/generator/make.py
-+++ b/tools/gyp/pylib/gyp/generator/make.py
-@@ -151,6 +151,32 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOL
- quiet_cmd_link = LINK($(TOOLSET)) $@
- cmd_link = $(LINK.$(TOOLSET)) -o $@ $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # We support two kinds of shared objects (.so):
- # 1) shared_library, which is just bundling together many dependent libraries
- # into a link line.
-@@ -195,6 +221,32 @@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET))
- quiet_cmd_alink_thin = AR($(TOOLSET)) $@
- cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-+define xargs
-+        $(1) $(wordlist 1,100,$(2))
-+        $(if $(word 101,$(2)),$(call xargs,$(1),$(wordlist 101,$(words $(2)),$(2))))
-+endef
-+
-+define write-to-file
-+        @echo >$(1)
-+        $(call xargs,printf "%s\\n" >>$(1),$(2))
-+endef
-+
-+OBJ_FILE_LIST_SFX := ar-file-list
-+
-+define create_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
-+define create_thin_archive
-+        $(eval OBJ_FILE_LIST := $(basename $(notdir $(1))).$(OBJ_FILE_LIST_SFX))
-+        rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
-+        $(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
-+        $(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
-+endef
-+
- # Due to circular dependencies between libraries :(, we wrap the
- # special "figure out circular dependencies" flags around the entire
- # input list during linking.
-@@ -1612,11 +1664,17 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)
-             "Spaces in alink input filenames not supported (%s)"  % link_dep)
-       if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not
-           self.is_standalone_static_library):
--        self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
--                        part_of_all, postbuilds=postbuilds)
-+        if self.flavor in ('linux', 'android'):
-+          self.WriteMakeRule([self.output_binary], link_deps, actions = ['$(call create_thin_archive,$@,$^)'])
-+        else:
-+          self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
-+                          part_of_all, postbuilds=postbuilds)
-       else:
--        self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
--                        postbuilds=postbuilds)
-+        if self.flavor in ('linux', 'android'):
-+          self.WriteMakeRule([self.output_binary], link_deps, actions = ['$(call create_archive,$@,$^)'])
-+        else:
-+          self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
-+                          postbuilds=postbuilds)
-     elif self.type == 'shared_library':
-       self.WriteLn('%s: LD_INPUTS := %s' % (
-             QuoteSpaces(self.output_binary),
diff --git a/lang/node/patches/v12.x/012-changing-default-npm-settings.patch b/lang/node/patches/v12.x/012-changing-default-npm-settings.patch
deleted file mode 100644 (file)
index 8b2f3e4..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/deps/npm/lib/config/defaults.js
-+++ b/deps/npm/lib/config/defaults.js
-@@ -175,7 +175,7 @@ Object.defineProperty(exports, 'defaults
-     'legacy-bundling': false,
-     link: false,
-     'local-address': undefined,
--    loglevel: 'notice',
-+    loglevel: 'info',
-     logstream: process.stderr,
-     'logs-max': 10,
-     long: false,
-@@ -231,7 +231,7 @@ Object.defineProperty(exports, 'defaults
-     'sign-git-tag': false,
-     'sso-poll-frequency': 500,
-     'sso-type': 'oauth',
--    'strict-ssl': true,
-+    'strict-ssl': false,
-     tag: 'latest',
-     'tag-version-prefix': 'v',
-     timing: false,
diff --git a/lang/node/patches/v12.x/013-npm-unsafe-override-for-global-install.patch b/lang/node/patches/v12.x/013-npm-unsafe-override-for-global-install.patch
deleted file mode 100644 (file)
index 8092b0c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-From cdb02b95ed9b12f82620ae1652cba20464c2ccf0 Mon Sep 17 00:00:00 2001
-From: Arturo Rinaldi <arty.net2@gmail.com>
-Date: Wed, 1 Nov 2017 14:51:43 +0100
-Subject: [PATCH] npm: overriding unsafe-perm setting to install packages
- globally
-
----
- deps/npm/lib/config/defaults.js | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/deps/npm/lib/config/defaults.js
-+++ b/deps/npm/lib/config/defaults.js
-@@ -243,7 +243,7 @@ Object.defineProperty(exports, 'defaults
-                        process.getgid && process.setgid) ||
-                      process.getuid() !== 0,
-     'update-notifier': true,
--    usage: false,
-+    usage: true,
-     user: (process.platform === 'win32' || os.type() === 'OS400') ? 0 : 'nobody',
-     userconfig: path.resolve(home, '.npmrc'),
-     umask: process.umask ? process.umask() : umask.fromString('022'),
diff --git a/lang/node/patches/v12.x/999-mips-fix.patch b/lang/node/patches/v12.x/999-mips-fix.patch
deleted file mode 100644 (file)
index 821777e..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-Description: upstream mips fix
-Origin: https://github.com/nodejs/node/issues/31118
-Last-Update: 2020-05-30
-
---- a/deps/v8/AUTHORS
-+++ b/deps/v8/AUTHORS
-@@ -106,6 +106,7 @@ James Pike <g00gle@chilon.net>
- James M Snell <jasnell@gmail.com>
- Jianghua Yang <jianghua.yjh@alibaba-inc.com>
- Jiawen Geng <technicalcute@gmail.com>
-+Jiaxun Yang <jiaxun.yang@flygoat.com>
- Joel Stanley <joel@jms.id.au>
- Johan Bergström <johan@bergstroem.nu>
- Jonathan Liu <net147@gmail.com>
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.cc
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.cc
-@@ -94,10 +94,6 @@ void PlatformEmbeddedFileWriterAIX::Decl
- void PlatformEmbeddedFileWriterAIX::DeclareFunctionEnd(const char* name) {}
--int PlatformEmbeddedFileWriterAIX::HexLiteral(uint64_t value) {
--  return fprintf(fp_, "0x%" PRIx64, value);
--}
--
- void PlatformEmbeddedFileWriterAIX::FilePrologue() {}
- void PlatformEmbeddedFileWriterAIX::DeclareExternalFilename(
-@@ -120,12 +116,6 @@ DataDirective PlatformEmbeddedFileWriter
-   return kLong;
- }
--int PlatformEmbeddedFileWriterAIX::WriteByteChunk(const uint8_t* data) {
--  DCHECK_EQ(ByteChunkDataDirective(), kLong);
--  const uint32_t* long_ptr = reinterpret_cast<const uint32_t*>(data);
--  return HexLiteral(*long_ptr);
--}
--
- #undef SYMBOL_PREFIX
- }  // namespace internal
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.h
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-aix.h
-@@ -37,8 +37,6 @@ class PlatformEmbeddedFileWriterAIX : pu
-   void DeclareFunctionBegin(const char* name) override;
-   void DeclareFunctionEnd(const char* name) override;
--  int HexLiteral(uint64_t value) override;
--
-   void Comment(const char* string) override;
-   void FilePrologue() override;
-@@ -48,7 +46,6 @@ class PlatformEmbeddedFileWriterAIX : pu
-   int IndentedDataDirective(DataDirective directive) override;
-   DataDirective ByteChunkDataDirective() const override;
--  int WriteByteChunk(const uint8_t* data) override;
-  private:
-   void DeclareSymbolGlobal(const char* name);
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.cc
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.cc
-@@ -24,6 +24,10 @@ DataDirective PointerSizeDirective() {
-   }
- }
-+int PlatformEmbeddedFileWriterBase::HexLiteral(uint64_t value) {
-+  return fprintf(fp_, "0x%" PRIx64, value);
-+}
-+
- int DataDirectiveSize(DataDirective directive) {
-   switch (directive) {
-     case kByte:
-@@ -39,24 +43,37 @@ int DataDirectiveSize(DataDirective dire
- }
- int PlatformEmbeddedFileWriterBase::WriteByteChunk(const uint8_t* data) {
--  DCHECK_EQ(ByteChunkDataDirective(), kOcta);
--
--  static constexpr size_t kSize = kInt64Size;
--
--  uint64_t part1, part2;
--  // Use memcpy for the reads since {data} is not guaranteed to be aligned.
-+  size_t kSize = DataDirectiveSize(ByteChunkDataDirective());
-+  size_t kHalfSize = kSize / 2;
-+  uint64_t high = 0, low = 0;
-+
-+  switch (kSize) {
-+    case 1:
-+      low = *data;
-+      break;
-+    case 4:
-+      low = *reinterpret_cast<const uint32_t*>(data);
-+      break;
-+    case 8:
-+      low = *reinterpret_cast<const uint64_t*>(data);
-+      break;
-+    case 16:
- #ifdef V8_TARGET_BIG_ENDIAN
--  memcpy(&part1, data, kSize);
--  memcpy(&part2, data + kSize, kSize);
-+      memcpy(&high, data, kHalfSize);
-+      memcpy(&low, data + kHalfSize, kHalfSize);
- #else
--  memcpy(&part1, data + kSize, kSize);
--  memcpy(&part2, data, kSize);
-+      memcpy(&high, data + kHalfSize, kHalfSize);
-+      memcpy(&low, data, kHalfSize);
- #endif  // V8_TARGET_BIG_ENDIAN
-+      break;
-+    default:
-+      UNREACHABLE();
-+  }
--  if (part1 != 0) {
--    return fprintf(fp(), "0x%" PRIx64 "%016" PRIx64, part1, part2);
-+  if (high != 0) {
-+    return fprintf(fp(), "0x%" PRIx64 "%016" PRIx64, high, low);
-   } else {
--    return fprintf(fp(), "0x%" PRIx64, part2);
-+    return fprintf(fp(), "0x%" PRIx64, low);
-   }
- }
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.h
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-base.h
-@@ -67,7 +67,7 @@ class PlatformEmbeddedFileWriterBase {
-   virtual void DeclareFunctionEnd(const char* name) = 0;
-   // Returns the number of printed characters.
--  virtual int HexLiteral(uint64_t value) = 0;
-+  virtual int HexLiteral(uint64_t value);
-   virtual void Comment(const char* string) = 0;
-   virtual void Newline() { fprintf(fp_, "\n"); }
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.cc
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.cc
-@@ -112,10 +112,6 @@ void PlatformEmbeddedFileWriterGeneric::
- void PlatformEmbeddedFileWriterGeneric::DeclareFunctionEnd(const char* name) {}
--int PlatformEmbeddedFileWriterGeneric::HexLiteral(uint64_t value) {
--  return fprintf(fp_, "0x%" PRIx64, value);
--}
--
- void PlatformEmbeddedFileWriterGeneric::FilePrologue() {}
- void PlatformEmbeddedFileWriterGeneric::DeclareExternalFilename(
-@@ -142,6 +138,18 @@ int PlatformEmbeddedFileWriterGeneric::I
-   return fprintf(fp_, "  %s ", DirectiveAsString(directive));
- }
-+DataDirective PlatformEmbeddedFileWriterGeneric::ByteChunkDataDirective()
-+    const {
-+#if defined(V8_TARGET_ARCH_MIPS) || defined(V8_TARGET_ARCH_MIPS64)
-+  // MIPS uses a fixed 4 byte instruction set, using .long
-+  // to prevent any unnecessary padding.
-+  return kLong;
-+#else
-+  // Other ISAs just listen to the base
-+  return PlatformEmbeddedFileWriterBase::ByteChunkDataDirective();
-+#endif
-+}
-+
- #undef SYMBOL_PREFIX
- }  // namespace internal
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.h
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-generic.h
-@@ -39,8 +39,6 @@ class PlatformEmbeddedFileWriterGeneric
-   void DeclareFunctionBegin(const char* name) override;
-   void DeclareFunctionEnd(const char* name) override;
--  int HexLiteral(uint64_t value) override;
--
-   void Comment(const char* string) override;
-   void FilePrologue() override;
-@@ -49,6 +47,8 @@ class PlatformEmbeddedFileWriterGeneric
-   int IndentedDataDirective(DataDirective directive) override;
-+  DataDirective ByteChunkDataDirective() const override;
-+
-  private:
-   void DeclareSymbolGlobal(const char* name);
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.cc
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.cc
-@@ -87,10 +87,6 @@ void PlatformEmbeddedFileWriterMac::Decl
- void PlatformEmbeddedFileWriterMac::DeclareFunctionEnd(const char* name) {}
--int PlatformEmbeddedFileWriterMac::HexLiteral(uint64_t value) {
--  return fprintf(fp_, "0x%" PRIx64, value);
--}
--
- void PlatformEmbeddedFileWriterMac::FilePrologue() {}
- void PlatformEmbeddedFileWriterMac::DeclareExternalFilename(
---- a/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.h
-+++ b/deps/v8/src/snapshot/embedded/platform-embedded-file-writer-mac.h
-@@ -37,8 +37,6 @@ class PlatformEmbeddedFileWriterMac : pu
-   void DeclareFunctionBegin(const char* name) override;
-   void DeclareFunctionEnd(const char* name) override;
--  int HexLiteral(uint64_t value) override;
--
-   void Comment(const char* string) override;
-   void FilePrologue() override;
diff --git a/lang/node/patches/v18.x/003-path.patch b/lang/node/patches/v18.x/003-path.patch
new file mode 100644 (file)
index 0000000..d18af1d
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/lib/internal/modules/cjs/loader.js
++++ b/lib/internal/modules/cjs/loader.js
+@@ -1240,7 +1240,8 @@ Module._initPaths = function() {
+     path.resolve(process.execPath, '..') :
+     path.resolve(process.execPath, '..', '..');
+-  const paths = [path.resolve(prefixDir, 'lib', 'node')];
++  const paths = [path.resolve(prefixDir, 'lib', 'node'),
++                 path.resolve(prefixDir, 'lib', 'node_modules')];
+   if (homeDir) {
+     ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
@@ -1,6 +1,6 @@
 --- a/deps/v8/src/base/platform/condition-variable.cc
 +++ b/deps/v8/src/base/platform/condition-variable.cc
-@@ -16,7 +16,7 @@ namespace base {
+@@ -20,7 +20,7 @@ namespace base {
  
  ConditionVariable::ConditionVariable() {
  #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
@@ -9,7 +9,7 @@
    // On Free/Net/OpenBSD and Linux with glibc we can change the time
    // source for pthread_cond_timedwait() to use the monotonic clock.
    pthread_condattr_t attr;
-@@ -92,7 +92,7 @@ bool ConditionVariable::WaitFor(Mutex* m
+@@ -96,7 +96,7 @@ bool ConditionVariable::WaitFor(Mutex* m
        &native_handle_, &mutex->native_handle(), &ts);
  #else
  #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
@@ -20,8 +20,8 @@
    result = clock_gettime(CLOCK_MONOTONIC, &ts);
 --- a/deps/v8/src/base/platform/platform-posix.cc
 +++ b/deps/v8/src/base/platform/platform-posix.cc
-@@ -772,7 +772,7 @@ bool Thread::Start() {
- #if V8_OS_MACOSX
+@@ -1066,7 +1066,7 @@ bool Thread::Start() {
+ #if V8_OS_DARWIN
      // Default on Mac OS X is 512kB -- bump up to 1MB
      stack_size = 1 * 1024 * 1024;
 -#elif V8_OS_AIX
@@ -31,7 +31,7 @@
  #endif
 --- a/deps/v8/src/codegen/external-reference-table.cc
 +++ b/deps/v8/src/codegen/external-reference-table.cc
-@@ -9,7 +9,7 @@
+@@ -10,7 +10,7 @@
  #include "src/ic/stub-cache.h"
  #include "src/logging/counters.h"
  
@@ -39,4 +39,4 @@
 +#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID) && defined(V8_LIBC_GLIBC)
  #define SYMBOLIZE_FUNCTION
  #include <execinfo.h>
- #include <vector>
@@ -1,6 +1,6 @@
 --- a/tools/gyp/pylib/gyp/generator/make.py
 +++ b/tools/gyp/pylib/gyp/generator/make.py
-@@ -176,7 +176,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
+@@ -205,7 +205,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -
  
  LINK_COMMANDS_MAC = """\
  quiet_cmd_alink = LIBTOOL-STATIC $@
diff --git a/lang/node/patches/v18.x/012-changing-default-npm-settings.patch b/lang/node/patches/v18.x/012-changing-default-npm-settings.patch
new file mode 100644 (file)
index 0000000..faad7f3
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/deps/npm/lib/utils/config/definitions.js
++++ b/deps/npm/lib/utils/config/definitions.js
+@@ -1218,7 +1218,7 @@ define('lockfile-version', {
+ })
+ define('loglevel', {
+-  default: 'notice',
++  default: 'info',
+   type: [
+     'silent',
+     'error',
+@@ -2000,7 +2000,7 @@ define('strict-peer-deps', {
+ })
+ define('strict-ssl', {
+-  default: true,
++  default: false,
+   type: Boolean,
+   description: `
+     Whether or not to do SSL key validation when making requests to the
@@ -1,6 +1,6 @@
 --- a/tools/icu/icu-generic.gyp
 +++ b/tools/icu/icu-generic.gyp
-@@ -517,6 +517,7 @@
+@@ -419,6 +419,7 @@
        'target_name': 'genrb',
        'type': 'executable',
        'toolsets': [ 'host' ],
@@ -8,7 +8,7 @@
        'dependencies': [ 'icutools' ],
        'sources': [
          '<@(icu_src_genrb)'
-@@ -533,6 +534,7 @@
+@@ -435,6 +436,7 @@
        'target_name': 'iculslocs',
        'toolsets': [ 'host' ],
        'type': 'executable',
@@ -16,7 +16,7 @@
        'dependencies': [ 'icutools' ],
        'sources': [
          'iculslocs.cc',
-@@ -545,6 +547,7 @@
+@@ -447,6 +449,7 @@
        'target_name': 'icupkg',
        'toolsets': [ 'host' ],
        'type': 'executable',
@@ -24,7 +24,7 @@
        'dependencies': [ 'icutools' ],
        'sources': [
          '<@(icu_src_icupkg)',
-@@ -556,6 +559,7 @@
+@@ -458,6 +461,7 @@
        'target_name': 'genccode',
        'toolsets': [ 'host' ],
        'type': 'executable',
@@ -34,7 +34,7 @@
          '<@(icu_src_genccode)',
 --- a/tools/v8_gypfiles/v8.gyp
 +++ b/tools/v8_gypfiles/v8.gyp
-@@ -1255,6 +1255,7 @@
+@@ -1391,6 +1391,7 @@
      {
        'target_name': 'bytecode_builtins_list_generator',
        'type': 'executable',
@@ -42,7 +42,7 @@
        'conditions': [
          ['want_separate_host_toolset', {
            'toolsets': ['host'],
-@@ -1278,6 +1279,8 @@
+@@ -1415,6 +1416,8 @@
      {
        'target_name': 'mksnapshot',
        'type': 'executable',
@@ -51,7 +51,7 @@
        'dependencies': [
          'v8_base_without_compiler',
          'v8_compiler_for_mksnapshot',
-@@ -1300,6 +1303,7 @@
+@@ -1436,6 +1439,7 @@
      {
        'target_name': 'torque',
        'type': 'executable',
@@ -59,7 +59,7 @@
        'dependencies': [
          'torque_base',
          # "build/win:default_exe_manifest",
-@@ -1338,6 +1342,7 @@
+@@ -1474,6 +1478,7 @@
      {
        'target_name': 'torque-language-server',
        'type': 'executable',
@@ -67,7 +67,7 @@
        'conditions': [
          ['want_separate_host_toolset', {
            'toolsets': ['host'],
-@@ -1365,6 +1370,8 @@
+@@ -1501,6 +1506,8 @@
      {
        'target_name': 'gen-regexp-special-case',
        'type': 'executable',
diff --git a/lang/node/patches/v18.x/991-v8_zlib_support.patch b/lang/node/patches/v18.x/991-v8_zlib_support.patch
new file mode 100644 (file)
index 0000000..93466e3
--- /dev/null
@@ -0,0 +1,97 @@
+--- a/deps/zlib/zlib.gyp
++++ b/deps/zlib/zlib.gyp
+@@ -43,10 +43,12 @@
+             'zutil.c',
+             'zutil.h',
+           ],
++          'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+           'include_dirs': [
+             '.',
+           ],
+           'direct_dependent_settings': {
++            'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+             'include_dirs': [
+               '.',
+             ],
+--- a/tools/v8_gypfiles/v8.gyp
++++ b/tools/v8_gypfiles/v8.gyp
+@@ -60,6 +60,7 @@
+       ],
+       'hard_dependency': 1,
+       'direct_dependent_settings': {
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(SHARED_INTERMEDIATE_DIR)',
+         ],
+@@ -181,6 +182,7 @@
+           '<@(torque_outputs_cc)',
+           '<@(torque_outputs_inc)',
+         ],
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(SHARED_INTERMEDIATE_DIR)',
+         ],
+@@ -202,6 +204,7 @@
+         'sources': [
+           '<(generate_bytecode_builtins_list_output)',
+         ],
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(generate_bytecode_output_root)',
+           '<(SHARED_INTERMEDIATE_DIR)',
+@@ -249,9 +252,11 @@
+         'v8_base_without_compiler',
+         'v8_shared_internal_headers',
+       ],
++      'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+       'include_dirs': [
+         '<(SHARED_INTERMEDIATE_DIR)',
+         '<(generate_bytecode_output_root)',
++        '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
+       ],
+       'sources': [
+         '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn"  "\\"v8_initializers.*?sources = ")',
+@@ -769,6 +774,7 @@
+       ],
+       'includes': ['inspector.gypi'],
+       'direct_dependent_settings': {
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(generate_bytecode_output_root)',
+           '<(SHARED_INTERMEDIATE_DIR)',
+@@ -1371,6 +1377,7 @@
+         }],
+       ],
+       'direct_dependent_settings': {
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(V8_ROOT)/include',
+         ],
+@@ -1723,6 +1730,7 @@
+          }],
+       ],
+       'direct_dependent_settings': {
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(V8_ROOT)/include',
+         ],
+@@ -1903,15 +1911,19 @@
+         }],
+       ],
+       'direct_dependent_settings': {
++        'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+         'include_dirs': [
+           '<(V8_ROOT)/third_party/zlib',
+           '<(V8_ROOT)/third_party/zlib/google',
++          '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
+         ],
+       },
+       'defines': [ 'ZLIB_IMPLEMENTATION' ],
++      'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
+       'include_dirs': [
+         '<(V8_ROOT)/third_party/zlib',
+         '<(V8_ROOT)/third_party/zlib/google',
++        '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
+       ],
+       'sources': [
+         '<(V8_ROOT)/third_party/zlib/adler32.c',
diff --git a/lang/node/patches/v18.x/992-v8_compiler_add_include_dirs.patch b/lang/node/patches/v18.x/992-v8_compiler_add_include_dirs.patch
new file mode 100644 (file)
index 0000000..3b5d149
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/tools/v8_gypfiles/v8.gyp
++++ b/tools/v8_gypfiles/v8.gyp
+@@ -714,6 +714,7 @@
+         'v8_shared_internal_headers',
+       ],
+       'sources': ['<@(v8_compiler_sources)'],
++      'include_dirs': [ '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
+       'conditions': [
+         ['OS=="win" and _toolset=="target"', {
+           'msvs_precompiled_header': '<(V8_ROOT)/../../tools/msvs/pch/v8_pch.h',
diff --git a/lang/node/patches/v18.x/999-cast_for_mips32.patch b/lang/node/patches/v18.x/999-cast_for_mips32.patch
new file mode 100644 (file)
index 0000000..63600b3
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/deps/v8/src/compiler/backend/mips/code-generator-mips.cc
++++ b/deps/v8/src/compiler/backend/mips/code-generator-mips.cc
+@@ -4101,7 +4101,7 @@ void CodeGenerator::AssembleReturn(Instr
+     } else if (FLAG_debug_code) {
+       __ Assert(eq, AbortReason::kUnexpectedAdditionalPopValue,
+                 g.ToRegister(additional_pop_count),
+-                Operand(static_cast<int64_t>(0)));
++                Operand(static_cast<int32_t>(0)));
+     }
+   }
+   // Functions with JS linkage have at least one parameter (the receiver).
@@ -1,14 +1,14 @@
 --- a/tools/icu/icu-generic.gyp
 +++ b/tools/icu/icu-generic.gyp
-@@ -181,6 +181,7 @@
-               '<(icu_path)/source/i18n/uspoof_wsconf.h',
-             ]}],
-             ],
+@@ -107,6 +107,7 @@
+           'sources': [
+             '<@(icu_src_i18n)'
+           ],
 +          'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
            'include_dirs': [
              '<(icu_path)/source/i18n',
            ],
-@@ -189,6 +190,7 @@
+@@ -115,6 +116,7 @@
            ],
            'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ],
            'direct_dependent_settings': {
              'include_dirs': [
                '<(icu_path)/source/i18n',
              ],
-@@ -274,6 +276,7 @@
-               # full data - just build the full data file, then we are done.
-               'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)_dat.c' ],
+@@ -201,6 +203,7 @@
+               # full data - no trim needed
+               'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
                'dependencies': [ 'genccode#host', 'icupkg#host', 'icu_implementation#host', 'icu_uconfig' ],
 +              'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
                'include_dirs': [
                  '<(icu_path)/source/common',
                ],
-@@ -354,6 +357,7 @@
+@@ -285,6 +288,7 @@
                # This file contains the small ICU data
-               'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.c' ],
+               'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
                # for umachine.h
 +              'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
                'include_dirs': [
                  '<(icu_path)/source/common',
                ],
-@@ -370,6 +374,7 @@
+@@ -301,6 +305,7 @@
        'sources': [
          '<@(icu_src_stubdata)'
        ],
@@ -40,7 +40,7 @@
        'include_dirs': [
          '<(icu_path)/source/common',
        ],
-@@ -438,6 +443,7 @@
+@@ -340,6 +345,7 @@
            '_XOPEN_SOURCE_EXTENDED=0',
          ]}],
        ],
@@ -48,7 +48,7 @@
        'include_dirs': [
          '<(icu_path)/source/common',
        ],
-@@ -447,6 +453,7 @@
+@@ -349,6 +355,7 @@
        'cflags_c': ['-std=c99'],
        'export_dependent_settings': [ 'icu_uconfig', 'icu_uconfig_target' ],
        'direct_dependent_settings': {
@@ -56,7 +56,7 @@
          'include_dirs': [
            '<(icu_path)/source/common',
          ],
-@@ -477,6 +484,7 @@
+@@ -379,6 +386,7 @@
          '<(icu_path)/source/tools/toolutil/dbgutil.cpp',
          '<(icu_path)/source/tools/toolutil/dbgutil.h',
        ],
@@ -64,7 +64,7 @@
        'include_dirs': [
          '<(icu_path)/source/common',
          '<(icu_path)/source/i18n',
-@@ -496,6 +504,7 @@
+@@ -398,6 +406,7 @@
          }]
        ],
        'direct_dependent_settings': {
@@ -13,7 +13,7 @@ Forwarded: https://github.com/nodejs/node/issues/33816
  //
  // Permission is hereby granted, free of charge, to any person obtaining a
  // copy of this software and associated documentation files (the
-@@ -1028,13 +1029,6 @@ function lookupAndConnect(self, options)
+@@ -1067,13 +1068,6 @@ function lookupAndConnect(self, options)
      hints: options.hints || 0
    };