Remove Boost dependency
phosphor-user-manager no longer uses any Boost functionality, so
remove Boost from meson.build and all related includes.
Change-Id: I7432e65c2b91e35892bc587e88dd9bb861843775
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
diff --git a/meson.build b/meson.build
index 9b0040f..1efe9d2 100644
--- a/meson.build
+++ b/meson.build
@@ -81,7 +81,6 @@
cpp = meson.get_compiler('cpp')
-boost_dep = dependency('boost')
ldap_dep = cpp.find_library('ldap', required: get_option('ldap'))
nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')
pam_dep = dependency('pam')
@@ -115,7 +114,6 @@
user_manager_deps = [
- boost_dep,
nlohmann_json_dep,
pam_dep,
phosphor_dbus_interfaces_dep,
@@ -139,11 +137,6 @@
'mainapp.cpp',
dependencies: user_manager_dep,
link_args: ['-lcrypt'],
- cpp_args: [
- '-DBOOST_ALL_NO_LIB',
- '-DBOOST_SYSTEM_NO_DEPRECATED',
- '-DBOOST_ERROR_CODE_HEADER_ONLY',
- ],
install: true,
)
diff --git a/phosphor-ldap-config/meson.build b/phosphor-ldap-config/meson.build
index 05654f2..ea9e686 100644
--- a/phosphor-ldap-config/meson.build
+++ b/phosphor-ldap-config/meson.build
@@ -1,5 +1,4 @@
phosphor_ldap_conf_deps = [
- boost_dep,
cereal_dep,
phosphor_dbus_interfaces_dep,
phosphor_logging_dep,
diff --git a/subprojects/boost.wrap b/subprojects/boost.wrap
deleted file mode 100644
index 49a32b84..0000000
--- a/subprojects/boost.wrap
+++ /dev/null
@@ -1,11 +0,0 @@
-[wrap-file]
-directory = boost_1_84_0
-
-source_url = https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.bz2
-source_hash = cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454
-source_filename = 1_84_0.tar.bz2
-
-patch_directory = boost
-
-[provide]
-boost = boost_dep
diff --git a/subprojects/packagefiles/boost/meson.build b/subprojects/packagefiles/boost/meson.build
deleted file mode 100644
index 6935475..0000000
--- a/subprojects/packagefiles/boost/meson.build
+++ /dev/null
@@ -1,5 +0,0 @@
-project('boost', 'cpp', version: '1.84.0', license: 'Boost')
-
-boost_dep = declare_dependency(include_directories: include_directories('.'))
-
-meson.override_dependency('boost', boost_dep)
diff --git a/user_mgr.cpp b/user_mgr.cpp
index fa363b4..6b31208 100644
--- a/user_mgr.cpp
+++ b/user_mgr.cpp
@@ -30,7 +30,6 @@
#include <time.h>
#include <unistd.h>
-#include <boost/algorithm/string/split.hpp>
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/elog.hpp>
#include <phosphor-logging/lg2.hpp>