Files
macports-ports/textproc/doxygen-devel/files/patch-src-dotrunner.cpp.diff
T
Renee Otten c96b5b3eb6 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
2026-05-24 22:12:34 -04:00

25 lines
1.1 KiB
Diff

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;
};