Automoc4 unpredictably hangs when calling cmake to print colored text. The root cause lies in QProcess calling async unsafe functions in a thread as analyzed here: http://lists.freebsd.org/pipermail/freebsd-stable/2011-May/062603.html The symptom is however easily mitigated by attached patch. Fix: Patch below uses a conservative 2 seconds for the QProcess to realize the command has already finished. How-To-Repeat: Build one of the larger kde4 ports to increase chances of bug showing up. Confirmed candidates (2 cores builds): - x11/kde4-runtime - x11/kdelibs4 - x11/kde4-baseapps - deskutils/kdepimlibs4
> Automoc4 unpredictably hangs when calling cmake to print colored text. > The root cause lies in QProcess calling async unsafe functions in a thread > as analyzed here: > http://lists.freebsd.org/pipermail/freebsd-stable/2011-May/062603.html > > The symptom is however easily mitigated by attached patch. There is a bug report [1] regarding this on KDE's bugzilla. > >Fix: > Patch below uses a conservative 2 seconds for the QProcess to realize the > command has already finished. The bug report also includes a patch. Could you give it a try? Of note, with cmake 2.8.6, this is a mute issue as automoc has been integrated into cmake. I am hoping to have a look at the underlying issue in QProcess shortly. [1] https://bugs.kde.org/show_bug.cgi?id=276461
Responsible Changed From-To: freebsd-ports-bugs->kde Fix synopsis and assign.
David Naylor <naylor.b.david@gmail.com> writes: > Of note, with cmake 2.8.6, this is a mute issue as automoc has been integrated > into cmake. Just a correction here: even though automoc has been integrated into CMake, applications themselves and the buildsystem needs to be adapted to use it. This is going to be material for KDE5.
State Changed From-To: open->closed A fix has been committed to devel/automoc4 itself in version 0.9.88_2. Thanks.