Skip to content
Snippets Groups Projects
Commit b00f7682 authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer
Browse files

Merge branch 'bug/hap-packing' into 'kirkstone'

Fix ACTS hap packing

Closes #66

See merge request eclipse/oniro-core/meta-openharmony!84
parents 686b603d 31475f9e
No related branches found
No related tags found
1 merge request!84Fix ACTS hap packing
Pipeline #10809 passed
# 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:
......@@ -62,13 +62,3 @@ index a495343d..300aec75 100755
]
_all_test_packages_ivi = [
@@ -82,6 +82,9 @@ if (build_xts == true && XTS_SUITENAME == "acts") {
}
selected_packages = exec_script(_select_script, _select_args, "list lines")
+ # compileruntime is not being found as the part name is ccruntime
+ # therefore it has to be added manually
+ selected_packages += [ "${ACTS_ROOT}/compileruntime:compileruntime" ]
selected_packages_ivi =
exec_script(_select_script, _select_args_ivi, "list lines")
......@@ -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"
......@@ -109,6 +110,14 @@ OHOS_STANDARD_SYSTEM_CONFIG_DIR = "${OHOS_BUILD_CONFIGS_DIR}/standard_system"
OHOS_PROJECT_BUILD_CONFIG_DIR = "${B}/build_configs"
# Workaround for problem with nodejs 17:
# error:0308010C:digital envelope routines::unsupported
export NODE_OPTIONS = "--openssl-legacy-provider"
export OPENSSL_CONF = "${RECIPE_SYSROOT_NATIVE}/usr/lib/ssl-3/openssl.cnf"
export SSL_CERT_DIR = "${RECIPE_SYSROOT_NATIVE}/usr/lib/ssl-3/certs"
export OPENSSL_ENGINES = "${RECIPE_SYSROOT_NATIVE}/usr/lib/engines-3"
export OPENSSL_MODULES = "${RECIPE_SYSROOT_NATIVE}/usr/lib/ossl-modules"
GN_ARGS += 'target_os="ohos"'
GN_ARGS += 'target_cpu="${OHOS_DEVICE_CPU_ARCH}"'
GN_ARGS += 'product_name="${OHOS_PRODUCT_NAME}"'
......
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