maintainer-feedback requested: [Bug 287514] devel/boost-libs: 1.88.0 installs the broken function program_location_impl in include/boost/dll/detail/posix/program_location_impl.hpp

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Jun 2025 21:04:29 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked FreeBSD Office Team
<office@FreeBSD.org> for maintainer-feedback:
Bug 287514: devel/boost-libs: 1.88.0 installs the broken function
program_location_impl in
include/boost/dll/detail/posix/program_location_impl.hpp
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287514



--- Description ---
The "buf" symbol in the following BSD-specific code is not defined anywhere:

> namespace boost { namespace dll { namespace detail {
>     inline boost::dll::fs::path program_location_impl(std::error_code& ec) {
>	  ec.clear();
> 
>	  int mib[4];
>	  mib[0] = CTL_KERN;
>	  mib[1] = KERN_PROC;
>	  mib[2] = KERN_PROC_PATHNAME;
>	  mib[3] = -1;
>	  char path[1024];
>	  size_t size = sizeof(buf);
>	  if (sysctl(mib, 4, path, &size, nullptr, 0) == 0)
>	      return boost::dll::fs::path(path);

"buf" should be replaced with "path".