aboutsummaryrefslogtreecommitdiff
path: root/depends
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-12-05 09:54:55 +0000
committerfanquake <fanquake@gmail.com>2023-12-05 09:55:01 +0000
commit51c97ffb6989a4cf56ad966d360a9fa0426e174c (patch)
treeac478fb2f61d79747a8338fb160241b0152b6dbf /depends
parent423949a13b39a193dff8b2758d23d6691d11dbc3 (diff)
downloadbitcoin-51c97ffb6989a4cf56ad966d360a9fa0426e174c.tar.xz
build: patch boost process for macOS 14 SDK
Diffstat (limited to 'depends')
-rw-r--r--depends/packages/boost.mk5
-rw-r--r--depends/patches/boost/process_macos_sdk.patch27
2 files changed, 32 insertions, 0 deletions
diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk
index ebc097d686..ab43764b38 100644
--- a/depends/packages/boost.mk
+++ b/depends/packages/boost.mk
@@ -3,6 +3,11 @@ $(package)_version=1.81.0
$(package)_download_path=https://boostorg.jfrog.io/artifactory/main/release/$($(package)_version)/source/
$(package)_file_name=boost_$(subst .,_,$($(package)_version)).tar.bz2
$(package)_sha256_hash=71feeed900fbccca04a3b4f2f84a7c217186f28a940ed8b7ed4725986baf99fa
+$(package)_patches=process_macos_sdk.patch
+
+define $(package)_preprocess_cmds
+ patch -p1 < $($(package)_patch_dir)/process_macos_sdk.patch
+endef
define $(package)_stage_cmds
mkdir -p $($(package)_staging_prefix_dir)/include && \
diff --git a/depends/patches/boost/process_macos_sdk.patch b/depends/patches/boost/process_macos_sdk.patch
new file mode 100644
index 0000000000..ebc556d972
--- /dev/null
+++ b/depends/patches/boost/process_macos_sdk.patch
@@ -0,0 +1,27 @@
+Fix Boost Process compilation with macOS 14 SDK.
+Can be dropped with Boost 1.84.0.
+https://github.com/boostorg/process/pull/343.
+https://github.com/boostorg/process/issues/342.
+
+diff --git a/boost/process/detail/posix/handles.hpp b/boost/process/detail/posix/handles.hpp
+index cd9e1ce5a..304e77b1c 100644
+--- a/boost/process/detail/posix/handles.hpp
++++ b/boost/process/detail/posix/handles.hpp
+@@ -33,7 +33,7 @@ inline std::vector<native_handle_type> get_handles(std::error_code & ec)
+ else
+ ec.clear();
+
+- auto my_fd = ::dirfd(dir.get());
++ auto my_fd = dirfd(dir.get());
+
+ struct ::dirent * ent_p;
+
+@@ -117,7 +117,7 @@ struct limit_handles_ : handler_base_ext
+ return;
+ }
+
+- auto my_fd = ::dirfd(dir);
++ auto my_fd = dirfd(dir);
+ struct ::dirent * ent_p;
+
+ while ((ent_p = readdir(dir)) != nullptr)