Fix permissive and include_dirs errors for embedded
This commit is contained in:
parent
ab368fcfa8
commit
d8d61425ae
@ -0,0 +1,96 @@
|
|||||||
|
From 7b0f91e31687521d1b5b22b2167e2245edebfc25 Mon Sep 17 00:00:00 2001
|
||||||
|
From: s_c_c <shichuchao@huawei.com>
|
||||||
|
Date: Sat, 29 Jun 2024 11:36:17 +0800
|
||||||
|
Subject: [PATCH] feat for embedded permissive and include_dirs errors
|
||||||
|
|
||||||
|
---
|
||||||
|
services/distributeddataservice/adapter/communicator/BUILD.gn | 2 +-
|
||||||
|
services/distributeddataservice/adapter/dfx/BUILD.gn | 2 +-
|
||||||
|
services/distributeddataservice/app/BUILD.gn | 4 +++-
|
||||||
|
services/distributeddataservice/service/BUILD.gn | 4 +++-
|
||||||
|
4 files changed, 8 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/services/distributeddataservice/adapter/communicator/BUILD.gn b/services/distributeddataservice/adapter/communicator/BUILD.gn
|
||||||
|
index 3b9cc42..936157b 100644
|
||||||
|
--- a/services/distributeddataservice/adapter/communicator/BUILD.gn
|
||||||
|
+++ b/services/distributeddataservice/adapter/communicator/BUILD.gn
|
||||||
|
@@ -47,7 +47,7 @@ ohos_static_library("distributeddata_communicator_static") {
|
||||||
|
"//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/relational",
|
||||||
|
]
|
||||||
|
|
||||||
|
- cflags_cc = [ "-fvisibility=hidden",
|
||||||
|
+ cflags_cc = [ "-fvisibility=hidden", "-fpermissive", "-w",
|
||||||
|
"-Wno-sign-compare",]
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
diff --git a/services/distributeddataservice/adapter/dfx/BUILD.gn b/services/distributeddataservice/adapter/dfx/BUILD.gn
|
||||||
|
index a471f5f..4740781 100644
|
||||||
|
--- a/services/distributeddataservice/adapter/dfx/BUILD.gn
|
||||||
|
+++ b/services/distributeddataservice/adapter/dfx/BUILD.gn
|
||||||
|
@@ -39,7 +39,7 @@ ohos_static_library("distributeddata_dfx_static") {
|
||||||
|
"//third_party/openssl/include/",
|
||||||
|
]
|
||||||
|
|
||||||
|
- cflags_cc = [ "-fvisibility=hidden" ]
|
||||||
|
+ cflags_cc = [ "-fvisibility=hidden", "-fpermissive", "-w" ]
|
||||||
|
|
||||||
|
deps = [
|
||||||
|
"../autils:distributeddata_autils_static",
|
||||||
|
diff --git a/services/distributeddataservice/app/BUILD.gn b/services/distributeddataservice/app/BUILD.gn
|
||||||
|
index 1e97cb7..633a96b 100644
|
||||||
|
--- a/services/distributeddataservice/app/BUILD.gn
|
||||||
|
+++ b/services/distributeddataservice/app/BUILD.gn
|
||||||
|
@@ -12,6 +12,7 @@
|
||||||
|
# limitations under the License.
|
||||||
|
import("//build/ohos.gni")
|
||||||
|
import("//build/ohos_var.gni")
|
||||||
|
+import("//build/config/sysroot.gni")
|
||||||
|
import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni")
|
||||||
|
|
||||||
|
group("build_module") {
|
||||||
|
@@ -73,11 +74,12 @@ config("module_private_config") {
|
||||||
|
"src/security",
|
||||||
|
"src/backup_rule/include",
|
||||||
|
"//third_party/json/single_include",
|
||||||
|
+ "${sysroot}/usr/include/device_manager/",
|
||||||
|
]
|
||||||
|
|
||||||
|
cflags = [ "-Wno-multichar" ]
|
||||||
|
|
||||||
|
- cflags_cc = [ "-fvisibility=hidden" ]
|
||||||
|
+ cflags_cc = [ "-fvisibility=hidden", "-fpermissive", "-w" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
ohos_shared_library("distributeddataservice") {
|
||||||
|
diff --git a/services/distributeddataservice/service/BUILD.gn b/services/distributeddataservice/service/BUILD.gn
|
||||||
|
index 3fb8263..f7879e0 100644
|
||||||
|
--- a/services/distributeddataservice/service/BUILD.gn
|
||||||
|
+++ b/services/distributeddataservice/service/BUILD.gn
|
||||||
|
@@ -12,6 +12,7 @@
|
||||||
|
# limitations under the License.
|
||||||
|
import("//build/ohos.gni")
|
||||||
|
import("//build/ohos_var.gni")
|
||||||
|
+import("//build/config/sysroot.gni")
|
||||||
|
|
||||||
|
group("build_module") {
|
||||||
|
deps = [ ":distributeddatasvc" ]
|
||||||
|
@@ -47,6 +48,7 @@ config("module_public_config") {
|
||||||
|
"//foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/relational",
|
||||||
|
"//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
|
||||||
|
"//foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include",
|
||||||
|
+ "${sysroot}/usr/include/device_manager/",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -101,7 +103,7 @@ ohos_shared_library("distributeddatasvc") {
|
||||||
|
]
|
||||||
|
cflags = [ "-Wno-multichar" ]
|
||||||
|
|
||||||
|
- cflags_cc = [ "-fvisibility=hidden", "-Wno-format" ]
|
||||||
|
+ cflags_cc = [ "-fvisibility=hidden", "-Wno-format", "-fpermissive", "-w" ]
|
||||||
|
|
||||||
|
configs = [ ":module_public_config" ]
|
||||||
|
|
||||||
|
--
|
||||||
|
2.45.2.windows.1
|
||||||
|
|
||||||
@ -5,13 +5,14 @@
|
|||||||
|
|
||||||
Name: distributeddatamgr_datamgr_service
|
Name: distributeddatamgr_datamgr_service
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Distributed data manager that provides the capability to store data in the databases of different devices
|
Summary: Distributed data manager that provides the capability to store data in the databases of different devices
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Url: https://gitee.com/openharmony/distributeddatamgr_datamgr_service
|
Url: https://gitee.com/openharmony/distributeddatamgr_datamgr_service
|
||||||
Source1: https://gitee.com/openharmony/distributeddatamgr_datamgr_service/repository/archive/%{oh_version}.tar.gz#/distributeddatamgr_datamgr_service-%{oh_version}.tar.gz
|
Source1: https://gitee.com/openharmony/distributeddatamgr_datamgr_service/repository/archive/%{oh_version}.tar.gz#/distributeddatamgr_datamgr_service-%{oh_version}.tar.gz
|
||||||
Patch1: 0001-remove-useless-dependency.patch
|
Patch1: 0001-remove-useless-dependency.patch
|
||||||
Patch2: 0002-establish-kvstore-dependence-on-boundscheck.patch
|
Patch2: 0002-establish-kvstore-dependence-on-boundscheck.patch
|
||||||
|
Patch3: 0003-feat-for-embedded-permissive-and-include_dirs-errors.patch
|
||||||
|
|
||||||
BuildRequires: libboundscheck, zlib, zlib-devel, jsoncpp, jsoncpp-devel, compat-openssl11-devel
|
BuildRequires: libboundscheck, zlib, zlib-devel, jsoncpp, jsoncpp-devel, compat-openssl11-devel
|
||||||
BuildRequires: distributed-build, distributed-beget, hilog, commonlibrary_c_utils
|
BuildRequires: distributed-build, distributed-beget, hilog, commonlibrary_c_utils
|
||||||
@ -52,6 +53,7 @@ mv %{distributeddata_dir}/%{name}-%{oh_version} %{distributeddata_dir}/datamgr_s
|
|||||||
|
|
||||||
%patch -P1 -p1 -d %{distributeddata_dir}/datamgr_service
|
%patch -P1 -p1 -d %{distributeddata_dir}/datamgr_service
|
||||||
%patch -P2 -p1 -d %{distributeddata_dir}/datamgr_service
|
%patch -P2 -p1 -d %{distributeddata_dir}/datamgr_service
|
||||||
|
%patch -P3 -p1 -d %{distributeddata_dir}/datamgr_service
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
@ -88,6 +90,9 @@ install -m 0755 %{_builddir}/%{config_path}/etc/distributeddata/conf/* %{buildro
|
|||||||
/system/*
|
/system/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 29 2024 s_c_c <shichuchao@huawei.com> - 1.0.0-4
|
||||||
|
- Fix permissive and include_dirs errors for embedded.
|
||||||
|
|
||||||
* Tue Nov 21 2023 Peng He <hepeng68@huawei.com> - 1.0.0-3
|
* Tue Nov 21 2023 Peng He <hepeng68@huawei.com> - 1.0.0-3
|
||||||
- Update build requires and requires.
|
- Update build requires and requires.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user