Permalink
Browse files

[backend] Avoid endless rebuilds if qemu-linux-user is missing

A common error happening on the build.opensuse.org instance
is that buidl is enabled for armv7l, but no or not the right
qemu-linux-user is installed. In those cases the builds
are looping endlessly on the build cluster, wasting a lot of
CPU. Detect that case and end it.
  • Loading branch information...
dirkmueller authored and adrianschroeter committed Apr 2, 2013
1 parent 2ac9248 commit 8a19bba741df3b772c814c36215ead88da8706dc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/backend/bs_worker
View
@@ -2789,7 +2789,8 @@ if (!$ex) {
sysseek(LL, -10240, 2);
sysread(LL, $data, 10240);
close LL;
- if ($data =~ /^mount: error while loading shared libraries:/m) {
+ if ($data =~ /^mount: error while loading shared libraries:/m
+ || $data =~ /^execve: Exec format error/m) {
print "Wait ... spotted failed build. Host is good.\n";
$code = 'failed';
}

0 comments on commit 8a19bba

Please sign in to comment.