summaryrefslogtreecommitdiff
path: root/devel/doxygen/patches/patch-src_dirdef.cpp
blob: ae942158a52ce5c068fb53272d2b9d1a55e15c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-src_dirdef.cpp,v 1.3 2022/05/23 13:08:02 micha Exp $

Doxygen encodes the source directory path into some of the output filenames.
This is problematic in a pkgsrc context as it means WRKDIR pathnames can appear
in generated filenames. Fix by reverting to the old way of naming the files.

--- src/dirdef.cpp.orig	2021-08-17 17:10:43.000000000 +0000
+++ src/dirdef.cpp
@@ -214,7 +214,7 @@ QCString DirDefImpl::getOutputFileBase()
 {
   //printf("DirDefImpl::getOutputFileBase() %s->dir_%s\n",
   //    qPrint(m_diskName),qPrint(encodeDirName(m_diskName)));
-  return "dir_"+encodeDirName(m_diskName);
+  return QCString().sprintf("dir_%06d",m_dirCount);
 }
 
 void DirDefImpl::writeDetailedDescription(OutputList &ol,const QCString &title)