[Bug 288761] textproc/source-highlight: Add --with-boost

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 Aug 2025 00:10:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288761

            Bug ID: 288761
           Summary: textproc/source-highlight: Add --with-boost
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tcberner@freebsd.org
          Reporter: ivy@FreeBSD.org
          Assignee: tcberner@freebsd.org
             Flags: maintainer-feedback?(tcberner@freebsd.org)

Created attachment 262837
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262837&action=edit
patch

without --with-boost, the port fails to build when LOCALBASE is not /usr/local.
 i'm not entirely sure this is the right fix, but it does make it build.

configure:17694: checking whether the Boost::Regex library is available
configure:17717: c++ -c -O2 -pipe  -fstack-protector-strong -isystem
/pkg/include -fno-strict-aliasing   -isystem /pkg/include -std=gnu++11 
-isystem /pkg/include  conftest.cpp >&5
conftest.cpp:42:15: warning: empty parentheses interpreted as a function
declaration [-Wvexing-parse]
   42 | boost::regex r(); return 0;
      |               ^~
conftest.cpp:42:15: note: replace parentheses with an initializer to declare a
variable
   42 | boost::regex r(); return 0;
      |               ^~
      |               {}
1 warning generated.
configure:17717: $? = 0
configure:17731: result: yes
configure:17879: error: Could not find a version of the Boost::Regex library!

-- 
You are receiving this mail because:
You are the assignee for the bug.