File doxygen-dot-one-thread.patch of Package doxygen

From: Michel Normand <normand@linux.vnet.ibm.com>
Subject: doxygen ppc64le ignore DOT NUM THREADS to 0
Date: Wed, 07 Oct 2015 14:11:22 +0200

doxygen ppc64le ignore DOT NUM THREADS to 0 as a bypass to boo#921577

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
---
 src/dot.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: doxygen-1.8.10/src/dot.cpp
===================================================================
--- doxygen-1.8.10.orig/src/dot.cpp
+++ doxygen-1.8.10/src/dot.cpp
@@ -1240,9 +1240,12 @@ DotManager::DotManager() : m_dotMaps(100
   m_queue = new DotRunnerQueue;
   int i;
   int numThreads = QMIN(32,Config_getInt("DOT_NUM_THREADS"));
+  if (numThreads==0) {
+    numThreads = 1;
+    msg("use single threaded despite DOT_NUM_THREADS=0 (bypass boo#921577)\n");
+  }
   if (numThreads!=1)
   {
-    if (numThreads==0) numThreads = QMAX(2,QThread::idealThreadCount()+1);
     for (i=0;i<numThreads;i++)
     {
       DotWorkerThread *thread = new DotWorkerThread(m_queue);

openSUSE Build Service is sponsored by