Skip to content
Snippets Groups Projects
Commit 31475f9e authored by Thierry Escande's avatar Thierry Escande
Browse files

openharmony-standard-3.0: Fix ACTS hap packing


This sets NODE_OPTIONS to pass '--openssl-legacy-provider' to node 17
and fixes the error 'digital envelope routines::unsupported'.
This was resulting in ACTS hap package not contaning the manifest and js
assets files.

Even if NODE_OPTIONS is set in the openharmony-standard recipe, it also
has to be set in the nodejs invocation environment because the recipe
environment is ignored in build_js_assets.py.

Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>
parent 089438c2
No related branches found
No related tags found
No related merge requests found
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
Patch for //build git repository of OpenHarmony 3.0 codebase.
This is a workaround for problem with nodejs 17:
error:0308010C:digital envelope routines::unsupported
Even if NODE_OPTIONS is set in the recipe, it has to be also set here
since the environment passed to nodejs is reset in this script.
Signed-off-by: Thierry Escande <thierry.escande@huawei.com>
Upstream-Status: Inappropriate
diff --git a/scripts/build_js_assets.py b/scripts/build_js_assets.py
index 624d594..f6fcd1b 100755
--- a/scripts/build_js_assets.py
+++ b/scripts/build_js_assets.py
@@ -55,6 +55,8 @@ def build_ace(cmd, options):
"aceManifestPath": manifest,
"buildMode": options.build_mode,
"PATH": os.environ.get('PATH'),
+ "NODE_OPTIONS": "--openssl-legacy-provider",
+ "OPENSSL_MODULES": "../../../recipe-sysroot-native/usr/lib/ossl-modules",
}
if not os.path.exists(manifest) and options.hap_profile:
with open(options.hap_profile) as profile:
......@@ -43,6 +43,7 @@ SRC_URI += "file://ts2abc-don-t-set-node_path-for-Linux-host-toolchain.patch;pat
SRC_URI += "file://hdc-build-system-files.patch;patchdir=${S}/developtools/hdc_standard"
SRC_URI += "file://build_packing-tool-path.patch;patchdir=${S}/build"
SRC_URI += "file://build_node-path.patch;patchdir=${S}/build"
SRC_URI += "file://build_js_assets.patch;patchdir=${S}/build"
SRC_URI += "file://vendor-qemu-uhdf-files.patch;patchdir=${S}/drivers/peripheral"
SRC_URI += "git://gitlab.eclipse.org/eclipse/oniro-core/openharmony-vendor-oniro.git;protocol=https;branch=main;rev=c7f69115d7af1a37f81bd4fc0462100d0aa87c2d;destsuffix=${S}/vendor/oniro"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment