doxygen-devel: upstream fix for build failure

Fixes:
/opt/local/var/macports/build/doxygen-devel-5f6bc1d1/work/doxygen-1.17.0/src/dotrunner.cpp:400:38: error: 'dirStr' in capture list does not name a variable
            auto process = [this,cmd,dirStr]() -> size_t
This commit is contained in:
Renee Otten
2026-05-24 22:12:00 -04:00
parent 69dad59450
commit c96b5b3eb6
2 changed files with 27 additions and 0 deletions
+3
View File
@@ -64,6 +64,9 @@ conflicts_build libmd
patchfiles-append patch-src-portable_c.c.diff
patchfiles-append patch-CMakeLists.txt.diff
# error: 'dirStr' in capture list does not name a variable
patchfiles-append patch-src-dotrunner.cpp.diff
depends_build-append port:bison \
port:flex \
path:bin/perl:perl5 \
@@ -0,0 +1,24 @@
See: https://github.com/doxygen/doxygen/issues/12118
Fixed upstream in commit: https://github.com/doxygen/doxygen/commit/a9eb9243717b93a44dbd046cccd52b96bd7520d2
diff --git a/src/dotrunner.cpp b/src/dotrunner.cpp
index 63f72d4cbf..c359568115 100644
--- src/dotrunner.cpp.orig
+++ src/dotrunner.cpp
@@ -397,14 +397,15 @@ bool DotRunner::run(const DotJobs &dotJobs)
{
if (cmd.numDotFiles>0)
{
- auto process = [this,cmd,dirStr]() -> size_t
+ std::string locDirStr = dirStr;
+ auto process = [this,cmd,locDirStr]() -> size_t
{
int exitCode;
if ((exitCode = Portable::system(m_dotExe, cmd.arguments, FALSE)) != 0)
{
err_full(cmd.firstJob->srcFile, 1,
"Problems running dot: exit code={}, command='{}', dir='{}', arguments='{}'",
- exitCode, m_dotExe, dirStr, cmd.arguments);
+ exitCode, m_dotExe, locDirStr, cmd.arguments);
}
return cmd.numDotFiles;
};