automoc4/automoc4-0.9.88-check_cmake_QProcess_start.patch

16 lines
592 B
Diff

--- kde4automoc.cpp~ 2009-01-22 20:50:09.000000000 +0200
+++ kde4automoc.cpp 2011-06-21 20:20:56.000000000 +0200
@@ -71,7 +71,11 @@
QStringList args(cmakeEchoColorArgs);
args << msg;
cmakeEcho.start(cmakeExecutable, args, QIODevice::NotOpen);
- cmakeEcho.waitForFinished(-1);
+ if (cmakeEcho.waitForStarted())
+ cmakeEcho.waitForFinished(-1);
+ else
+ cerr << "automoc4: cmake failed to start: "
+ << cmakeEcho.errorString() << endl;
}
QString builddir;