From 8f44c14ba9c648f4d49327b169b2d60616b4c05a Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Tue, 27 Sep 2016 20:42:28 +0900 Subject: Fix security-manager build error C++11 doesn't recommend to use auto_ptr. Changed it to unique_ptr. Signed-off-by: Kazumasa Mitsunari --- .../recipes-others/security-server/security-server.inc | 5 ++++- .../security-server/replace_auto_ptr_to_unique_ptr.patch | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 meta-application-manager/recipes-others/security-server/security-server/replace_auto_ptr_to_unique_ptr.patch diff --git a/meta-application-manager/recipes-others/security-server/security-server.inc b/meta-application-manager/recipes-others/security-server/security-server.inc index 90b4899..a9aefb4 100644 --- a/meta-application-manager/recipes-others/security-server/security-server.inc +++ b/meta-application-manager/recipes-others/security-server/security-server.inc @@ -4,7 +4,10 @@ SECTION = "Security/Service" LICENSE = "Apache-2.0" PV = "0.1.1" -SRC_URI = "file://0001-remove-dbus-check.patch " +SRC_URI = " \ + file://0001-remove-dbus-check.patch \ + file://replace_auto_ptr_to_unique_ptr.patch \ + " S = "${WORKDIR}/git" diff --git a/meta-application-manager/recipes-others/security-server/security-server/replace_auto_ptr_to_unique_ptr.patch b/meta-application-manager/recipes-others/security-server/security-server/replace_auto_ptr_to_unique_ptr.patch new file mode 100644 index 0000000..67107eb --- /dev/null +++ b/meta-application-manager/recipes-others/security-server/security-server/replace_auto_ptr_to_unique_ptr.patch @@ -0,0 +1,14 @@ +diff --git a/src/server/dpl/core/include/dpl/binary_queue.h b/src/server/dpl/core/include/dpl/binary_queue.h +index 387a71a..5cdfd6e 100644 +--- a/src/server/dpl/core/include/dpl/binary_queue.h ++++ b/src/server/dpl/core/include/dpl/binary_queue.h +@@ -33,7 +33,8 @@ namespace SecurityServer { + * Binary queue auto pointer + */ + class BinaryQueue; +-typedef std::auto_ptr BinaryQueueAutoPtr; ++//typedef std::auto_ptr BinaryQueueAutoPtr; ++typedef std::unique_ptr BinaryQueueAutoPtr; + + /** + * Binary stream implemented as constant size bucket list -- cgit 1.2.3-korg