summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-06-27 07:49:19 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2025-06-27 11:33:14 -0700
commitf9b30321622f332bb2a6b1986dc44a068218c9b8 (patch)
treed8bc1a522ad1d2524518c4f9cdec5311278b11b7
parentReapply "devel/py-wait-for2: Update to 0.4.1" (diff)
devel/boost-libs: Fix broken function program_location_impl
... in include/boost/dll/detail/posix/program_location_impl.hpp This function is FreeBSD-specific. Fixed error: error: use of undeclared identifier 'buf' Approved by: office@FreeBSD.org (maintainer's timeout; 14 days) PR: 287514
-rw-r--r--devel/boost-libs/Makefile2
-rw-r--r--devel/boost-libs/files/patch-boost_dll_detail_posix_program__location__impl.hpp11
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/boost-libs/Makefile b/devel/boost-libs/Makefile
index bd26f416fc1b..819a0fef24d3 100644
--- a/devel/boost-libs/Makefile
+++ b/devel/boost-libs/Makefile
@@ -1,5 +1,5 @@
PORTNAME= boost-libs
-PORTREVISION?= 0
+PORTREVISION?= 1
COMMENT= Free portable C++ libraries (without Boost.Python)
WWW= https://www.boost.org/
diff --git a/devel/boost-libs/files/patch-boost_dll_detail_posix_program__location__impl.hpp b/devel/boost-libs/files/patch-boost_dll_detail_posix_program__location__impl.hpp
new file mode 100644
index 000000000000..4afbd9cc2be5
--- /dev/null
+++ b/devel/boost-libs/files/patch-boost_dll_detail_posix_program__location__impl.hpp
@@ -0,0 +1,11 @@
+--- boost/dll/detail/posix/program_location_impl.hpp.orig 2025-06-14 19:35:17 UTC
++++ boost/dll/detail/posix/program_location_impl.hpp
+@@ -70,7 +70,7 @@ namespace boost { namespace dll { namespace detail {
+ mib[2] = KERN_PROC_PATHNAME;
+ mib[3] = -1;
+ char path[1024];
+- size_t size = sizeof(buf);
++ size_t size = sizeof(path);
+ if (sysctl(mib, 4, path, &size, nullptr, 0) == 0)
+ return boost::dll::fs::path(path);
+