2010-06-21 12:40:52 -04:00
|
|
|
$OpenBSD: patch-tools_qdbus_qdbuscpp2xml_qdbuscpp2xml_cpp,v 1.3 2010/06/21 16:40:52 espie Exp $
|
|
|
|
--- tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp.orig Thu Feb 11 16:55:15 2010
|
|
|
|
+++ tools/qdbus/qdbuscpp2xml/qdbuscpp2xml.cpp Fri Jun 18 18:56:27 2010
|
2009-04-18 13:25:43 -04:00
|
|
|
@@ -396,7 +396,7 @@ int main(int argc, char **argv)
|
2007-02-24 06:23:49 -05:00
|
|
|
else {
|
|
|
|
// run moc on this file
|
|
|
|
QProcess proc;
|
2007-05-22 05:09:32 -04:00
|
|
|
- proc.start(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/moc"), QStringList() << QFile::decodeName(argv[i]), QIODevice::ReadOnly | QIODevice::Text);
|
|
|
|
+ proc.start(QLibraryInfo::location(QLibraryInfo::BinariesPath) + QLatin1String("/moc4"), QStringList() << QFile::decodeName(argv[i]), QIODevice::ReadOnly | QIODevice::Text);
|
2007-02-24 06:23:49 -05:00
|
|
|
|
|
|
|
if (!proc.waitForStarted()) {
|
|
|
|
fprintf(stderr, PROGRAMNAME ": could not execute moc! Aborting.\n");
|
2010-06-21 12:40:52 -04:00
|
|
|
@@ -405,7 +405,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
|
|
proc.closeWriteChannel();
|
|
|
|
|
|
|
|
- if (!proc.waitForFinished() || proc.exitStatus() != QProcess::NormalExit ||
|
|
|
|
+ if (!proc.waitForFinished(-1) || proc.exitStatus() != QProcess::NormalExit ||
|
|
|
|
proc.exitCode() != 0) {
|
|
|
|
// output the moc errors:
|
|
|
|
fprintf(stderr, "%s", proc.readAllStandardError().constData());
|