This commit is contained in:
yanansong 2023-10-27 10:15:28 +08:00
parent be6d10f243
commit 83d89a924b
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/interfaces/innerkits/ipc_core/include/iremote_broker.h b/interfaces/innerkits/ipc_core/include/iremote_broker.h
index 7105ff7..692f4b0 100644
--- a/interfaces/innerkits/ipc_core/include/iremote_broker.h
+++ b/interfaces/innerkits/ipc_core/include/iremote_broker.h
@@ -50,8 +50,8 @@ public:
};
#define DECLARE_INTERFACE_DESCRIPTOR(DESCRIPTOR) \
- static inline const std::u16string metaDescriptor_ = { DESCRIPTOR }; \
- static inline const std::u16string &GetDescriptor() \
+ static constexpr const char16_t *metaDescriptor_ = { DESCRIPTOR }; \
+ static inline const std::u16string GetDescriptor() \
{ \
return metaDescriptor_; \
}

View File

@ -59,6 +59,7 @@ Patch10: 0010-adapt-for-build-mbedtls.patch
Patch11: 0011-remove-dependency-and-adapt-for-build-device_manager.patch
Patch12: 0012-remove-dependency-and-adapt-for-build-device_security_level.patch
Patch13: 0013-increase-the-pthread-stack-size-of-x86-and-other-env-dsoftbus.patch
Patch14: 0014-fixbug-metaDescriptor-for-ipc.patch
BuildRequires: python3-jinja2 python3-pyyaml cjson cjson-devel
BuildRequires: libatomic libicu-devel libxml2-devel openssl-devel
@ -115,6 +116,7 @@ rm -rf %{_builddir}/third_party/mbedtls/*
%patch11 -p1 -d %{device_manager_dir}
%patch12 -p1 -d %{device_security_level_dir}
%patch13 -p1 -d %{dsoftbus_dir}
%patch14 -p1 -d %{ipc_dir}
# build all components with build.sh
%build
@ -213,6 +215,9 @@ cp -rvf single_include/nlohmann %{buildroot}/%{_includedir}/nlohmann_json/single
/usr/bin/*
%changelog
* Fri Oct 27 2023 yanansong <songyanan5@huawei.com> - 1.0.0-5
- fixbug metaDescriptor initialization.
* Wed Jul 26 2023 Ge Wang <wang__ge@126.com> - 1.0.0-4
- add deficient component.