Static-linking against boost may be better because it may be updated regularly in the default repository.
fatx.patch
diff --git CMakeLists.txt CMakeLists.txt
index 02570e2..03b61c2 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.0)
project(
fatx
- VERSION 1.17
+ VERSION 1.18
LANGUAGES C CXX)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
if(CMAKE_BUILD_TYPE STREQUAL "")
@@ -12,11 +12,13 @@ endif(CMAKE_BUILD_TYPE STREQUAL "")
set(SANITIZE false)
-include(FindBoost)
include(CTest)
+set(Boost_USE_STATIC_LIBS ON)
+
find_package(
Boost 1.65.0
+ CONFIG
COMPONENTS program_options thread
REQUIRED)
find_package(Doxygen COMPONENTS dot)
@@ -31,7 +33,7 @@ link_directories(${Boost_LIBRARY_DIRS})
add_compile_options(
-D_FILE_OFFSET_BITS=64
- -std=c++2b
+ -std=c++20
-fdiagnostics-color
-Werror
-DPACKAGE_VERSION=${PROJECT_VERSION}
@@ -192,11 +194,11 @@ foreach(i ${aliases})
${i} ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink fatx ${i}
DEPENDS fatx)
-install(FILES ${PROJECT_BINARY_DIR}/${i} TYPE SBIN)
+install(FILES ${PROJECT_BINARY_DIR}/${i} TYPE BIN)
endforeach(i)
include(GNUInstallDirs)
-install(TARGETS fatx RUNTIME DESTINATION sbin)
+install(TARGETS fatx RUNTIME DESTINATION bin)
install(DIRECTORY man8 TYPE MAN)
install(
FILES README
diff --git src/fatx.hpp src/fatx.hpp
index a6abd92..37dfbbd 100644
--- src/fatx.hpp
+++ src/fatx.hpp
@@ -53,21 +53,23 @@
#define FUSE_USE_VERSION 31
#include <fuse.h>
+#include <bitset>
+#include <cassert>
+#include <cstdint>
+#include <filesystem>
#include <fstream>
+#include <functional>
#include <iostream>
-#include <filesystem>
-#include <thread>
-#include <string>
-#include <vector>
-#include <memory>
#include <map>
+#include <memory>
#include <set>
-#include <cassert>
-#include <functional>
-#include <cstdint>
#include <shared_mutex>
+#include <string>
+#include <thread>
+#include <vector>
#include <boost/program_options.hpp>
+#include <boost/integer.hpp>
#include <boost/format.hpp>
#include <boost/tokenizer.hpp>
#include <boost/bimap.hpp>
Pinned Comments
Bakasura commented on 2021-07-24 22:05 (UTC)
@everyone this package works again!