[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#563298: automoc: 01_patch_out_qprocess_bug561203.diff breaks many builds on kfreebsd-*



Package: automoc
Version: 1.0~version-0.9.88-3
Severity: grave
Justification: Breaks many rbdeps.

Hi,

as mentioned on IRC, many qt/kde builds (e.g. kde-style-qtcurve or
kdiff3) are broken by this version of automoc. I also confirmed
reverting to squeeze's version (1.0~version-0.9.88-2) make those
packages build fine.

I applied the attached patch to see what was going on, and kdiff3's
build goes as quoted below. I'm not sure what's causing this, let's just
open a bug for now to keep track of build failures.
| make[3]: Entering directory `/srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu'
| cd /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4 && /usr/bin/automoc4 /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/kdiff3_automoc.cpp /srv/storage/kibi/hack/kdiff3-0.9.95/src-QT4 /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4 /usr/bin/moc-qt4 /usr/bin/cmake
| Generating moc_optiondialog.cpp
| (D) ret: -1
| (D) pid: 46766
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46767
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_optiondialog.cpp failed with -1
| Generating moc_fileaccess.cpp
| (D) ret: -1
| (D) pid: 46768
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46769
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_fileaccess.cpp failed with -1
| Generating moc_kdiff3.cpp
| (D) ret: -1
| (D) pid: 46770
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46771
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_kdiff3.cpp failed with -1
| Generating moc_difftextwindow.cpp
| (D) ret: -1
| (D) pid: 46772
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46773
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_difftextwindow.cpp failed with -1
| Generating moc_mergeresultwindow.cpp
| (D) ret: -1
| (D) pid: 46774
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46775
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_mergeresultwindow.cpp failed with -1
| Generating moc_smalldialogs.cpp
| (D) ret: -1
| (D) pid: 46776
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46777
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_smalldialogs.cpp failed with -1
| Generating moc_kdiff3_shell.cpp
| (D) ret: -1
| (D) pid: 46778
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46779
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_kdiff3_shell.cpp failed with -1
| Generating moc_kdiff3_part.cpp
| (D) ret: -1
| (D) pid: 46780
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46781
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_kdiff3_part.cpp failed with -1
| Generating moc_directorymergewindow.cpp
| (D) ret: -1
| (D) pid: 46782
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| (D) ret: -1
| (D) pid: 46783
| (D) errno: 4 -> Interrupted system call
| (D) status: 134554544
| (D) WIFEXITED(status): false
| automoc4: process for /srv/storage/kibi/hack/kdiff3-0.9.95/obj-i486-kfreebsd-gnu/src-QT4/moc_directorymergewindow.cpp failed with -1
| returning failed..

(In the above log, I've #ifdef'd out the output of argv; running the command
manually by copying&pasting results in a successful run, so that'd rather be
the fork()/waitpid() stuff that's causing troubles.)

Mraw,
KiBi.
--- a/kde4automoc.cpp
+++ b/kde4automoc.cpp
@@ -124,6 +124,9 @@ int AutoMoc::executeCommand(const QStrin
             argv[i] = ::strdup(arg.toLocal8Bit().constData());
         }
         argv[i+1] = static_cast<char*>(0);
+	cout << "Calling: " << endl;
+	for (int j=0; j<i+1; j++)
+		cout << "  " << argv[j] << endl;
         ::execvp(cmd, argv);
         ::perror(QString("automoc4: unable to execute command %1").arg(cmd).toLocal8Bit().constData());
         ::exit(-1);
@@ -134,6 +137,11 @@ int AutoMoc::executeCommand(const QStrin
         if (ret == pid && WIFEXITED(status)) {
             return WEXITSTATUS(status);
         }
+	cout << "(D) ret: " << ret << endl;
+	cout << "(D) pid: " << pid << endl;
+	cout << "(D) errno: " << errno << " -> " << strerror(errno) << endl;
+	cout << "(D) status: " << status << endl;
+	cout << "(D) WIFEXITED(status): " << (WIFEXITED(status)?"true":"false") << endl;
         return -1;
     }
 }

Reply to: