Get rid of bp::search_path
Boost filesystem was making some trouble when compiling with libc++. The
CI uses libc++ for LLVM builds, and the symbol names are different
between libc++ and libstdc++ (gnu). This difference would make the code
segfault inside Boost::filesystem. This patch gets rid of
Boost::filesystem linking.
Caveat: execAndWait now needs full file path.
Change-Id: Ia1abedc426f971884abda6c1ccbb897ad29c98ec
diff --git a/src/main-firewall.cpp b/src/main-firewall.cpp
index 277dc40..d9d0066 100644
--- a/src/main-firewall.cpp
+++ b/src/main-firewall.cpp
@@ -6,6 +6,7 @@
#include <unistd.h>
#include "VELIA_VERSION.h"
#include "firewall/Firewall.h"
+#include "system_vars.h"
#include "utils/exceptions.h"
#include "utils/exec.h"
#include "utils/journal.h"
@@ -69,7 +70,7 @@
auto srSess = std::make_shared<sysrepo::Session>(srConn);
velia::firewall::SysrepoFirewall firewall(srSess, [] (const auto& config) {
spdlog::get("firewall")->debug("running nft...");
- velia::utils::execAndWait(spdlog::get("firewall"), "nft", {"-f", "-"}, config);
+ velia::utils::execAndWait(spdlog::get("firewall"), NFT_EXECUTABLE, {"-f", "-"}, config);
spdlog::get("firewall")->debug("nft config applied.");
});