From 4c9fc5152921baa90d774a02310dfc24ae21d8ef Mon Sep 17 00:00:00 2001 From: Robert Drab <robert.drab@huawei.com> Date: Thu, 30 Jun 2022 14:59:08 +0200 Subject: [PATCH] openharmony-standard-3.0: Fix missing runtime dependencies libwms_client.z.so library was not installed on the target in OpenHarmony 3.0 causing QA issue and rightly so, as it is a bug. Signed-off-by: Robert Drab <robert.drab@huawei.com> --- ...-Add-missing-entry-for-libwms_client.patch | 24 +++++++++++++++++++ .../openharmony/openharmony-standard_3.0.bb | 6 +---- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 recipes-openharmony/openharmony/openharmony-standard-3.0/graphic-standard-Add-missing-entry-for-libwms_client.patch diff --git a/recipes-openharmony/openharmony/openharmony-standard-3.0/graphic-standard-Add-missing-entry-for-libwms_client.patch b/recipes-openharmony/openharmony/openharmony-standard-3.0/graphic-standard-Add-missing-entry-for-libwms_client.patch new file mode 100644 index 00000000..e7793590 --- /dev/null +++ b/recipes-openharmony/openharmony/openharmony-standard-3.0/graphic-standard-Add-missing-entry-for-libwms_client.patch @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +graphic-standard: Add missing entry for libwms_client + +libwms_client is required by the libcamera_napi library but is not being +installed to the system image. + +Signed-off-by: Robert Drab <robert.drab@huawei.com> +Upstream-Status: Inactive-Upstream [OpenHarmony 3.0 upstream repository https://gitee.com/openharmony/graphic_standard marked as closed] + +diff --git a/ohos.build b/ohos.build +index f2b6d0da..827f223a 100755 +--- a/ohos.build ++++ b/ohos.build +@@ -20,6 +20,7 @@ + + "//foundation/graphic/standard/frameworks/bootanimation:bootanimation", + "//foundation/graphic/standard/frameworks/bootanimation:bootanimation-480x960.raw", ++ "//foundation/graphic/standard:libwms_client", + "//foundation/graphic/standard:default.scss", + "//foundation/graphic/standard:graphic.rc" + ], diff --git a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb index 1a8a349a..637708a3 100644 --- a/recipes-openharmony/openharmony/openharmony-standard_3.0.bb +++ b/recipes-openharmony/openharmony/openharmony-standard_3.0.bb @@ -62,6 +62,7 @@ SRC_URI += "file://hihope-gralloc-Backport-to-3.0.patch;patchdir=${S}/device/hih SRC_URI += "file://ivi-input-controller.c-Fix-g_ctx-declaration-causing-segfault.patch;patchdir=${S}/third_party/wayland-ivi-extension" SRC_URI += "file://xf86drm.c-Add-drmWaitVBlank-hack.patch;patchdir=${S}/third_party/libdrm" +SRC_URI += "file://graphic-standard-Add-missing-entry-for-libwms_client.patch;patchdir=${S}/foundation/graphic/standard" inherit python3native gn_base ptest @@ -357,10 +358,5 @@ RDEPENDS:${PN}-ptest += "${PN}-hilog-ptest ${PN}-hilog" INSANE_SKIP:${PN} = "already-stripped" EXCLUDE_FROM_SHLIBS = "1" -# We have the following problem: -# ERROR: openharmony-standard-3.0-r0 do_package_qa: QA Issue: /usr/lib/module/multimedia/libcamera_napi.z.so contained in package openharmony-standard requires libwms_client.z.so, but no providers found in RDEPENDS:openharmony-standard? [file-rdeps] -# and seems to be a bug in OpenHarmony 3.0 -INSANE_SKIP:${PN} = "file-rdeps" - # To avoid excessive diskspace blowup, we are stripping our executables INSANE_SKIP:${PN} += "already-stripped" -- GitLab