Skip to content

Commit

Permalink
Merge pull request #13278 from sap-oc/emulated-build-backport-fix
Browse files Browse the repository at this point in the history
fix emulated build with OBS_VM_TYPE=qemu:$arch in 2.10 branch
  • Loading branch information
adrianschroeter committed Dec 2, 2022
2 parents 96985bd + 6c71bb2 commit 791531c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/backend/bs_worker
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ sub cleanup_job {
sub kill_job {
my @args;
# same args as in the build call
if ($vm =~ /(xen|kvm|zvm|emulator|pvm|openstack)/) {
if ($vm =~ /(xen|kvm|qemu|zvm|emulator|pvm|openstack)/) {
push @args, '--root', "$buildroot/.mount";
push @args, '--vm-type', $vm;
push @args, '--vm-disk', $vm_root;
Expand All @@ -228,7 +228,7 @@ sub kill_job {
sub sysrq_job {
my ($sysrq) = @_;
my @args;
if ($vm =~ /(xen|kvm|zvm|emulator|pvm|openstack)/) {
if ($vm =~ /(xen|kvm|qemu|zvm|emulator|pvm|openstack)/) {
push @args, '--root', "$buildroot/.mount";
push @args, '--vm-type', $vm;
push @args, '--vm-disk', $vm_root;
Expand All @@ -245,7 +245,7 @@ sub sysrq_job {

sub wipe_all {
my @args;
if ($vm =~ /(xen|kvm|zvm|emulator|pvm|openstack)/) {
if ($vm =~ /(xen|kvm|qemu|zvm|emulator|pvm|openstack)/) {
push @args, '--root', "$buildroot/.mount";
push @args, '--vm-type', $vm;
push @args, '--vm-disk', $vm_root;
Expand Down Expand Up @@ -3085,7 +3085,7 @@ sub dobuild {
}

push @args, "$statedir/build/build";
if ($vm =~ /(xen|kvm|zvm|emulator|qemu|pvm)/) {
if ($vm =~ /(xen|kvm|qemu|zvm|emulator|pvm)/) {
mkdir("$buildroot/.mount") unless -d "$buildroot/.mount";
push @args, '--root', "$buildroot/.mount";
push @args, '--vm-type', $vm;
Expand Down Expand Up @@ -3193,7 +3193,7 @@ sub dobuild {
return 1;
}

if ($vm =~ /(xen|kvm|zvm|emulator|pvm|openstack)/) {
if ($vm =~ /(xen|kvm|qemu|zvm|emulator|pvm|openstack)/) {
rm_rf("$buildroot/.build.packages");
# move directory with extracted build results
if(!rename("$buildroot/.mount/.build.packages", "$buildroot/.build.packages")) {
Expand Down Expand Up @@ -3767,7 +3767,7 @@ if ($@) {
}
if ($buildinfo->{'followupfile'}) {
my $buildsrcdir = "$buildroot/.build.packages/SOURCES";
$buildsrcdir = "$buildroot/.build-srcdir" if $vm =~ /(xen|kvm|emulator)/;
$buildsrcdir = "$buildroot/.build-srcdir" if $vm =~ /(xen|kvm|qemu|emulator)/;
# if it was a follow up build, prepend old logfile
if (-s "$buildsrcdir/logfile") {
local *F;
Expand Down

0 comments on commit 791531c

Please sign in to comment.