Skip to content

Commit

Permalink
Always add extra dependencies when doing sysdeps expansion
Browse files Browse the repository at this point in the history
They contain the buildtime service dependencies which are run
in the system.
  • Loading branch information
mlschroe committed Jun 22, 2018
1 parent 9f6543d commit 7b8232c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -612,12 +612,10 @@ sub get_sysbuild {
@sysdeps = @{$config->{'substitute'}->{'system-packages:kiwi-image'} || []};
@sysdeps = @{$config->{'substitute'}->{'kiwi-setup:image'} || []} unless @sysdeps;
@sysdeps = @{$subst_defaults{'system-packages:kiwi-image'} || []} unless @sysdeps;
push @sysdeps, @$extradeps if $extradeps;
} elsif ($buildtype eq 'kiwi-product') {
@sysdeps = @{$config->{'substitute'}->{'system-packages:kiwi-product'} || []};
@sysdeps = @{$config->{'substitute'}->{'kiwi-setup:product'} || []} unless @sysdeps;
@sysdeps = @{$subst_defaults{'system-packages:kiwi-product'} || []} unless @sysdeps;
push @sysdeps, @$extradeps if $extradeps;
} elsif ($buildtype eq 'docker') {
@sysdeps = @{$config->{'substitute'}->{'system-packages:docker'} || []} unless @sysdeps;
@sysdeps = @{$subst_defaults{'system-packages:docker'} || []} unless @sysdeps;
Expand All @@ -628,7 +626,8 @@ sub get_sysbuild {
@sysdeps = @{$config->{'substitute'}->{'system-packages:deltarpm'} || []};
@sysdeps = @{$subst_defaults{'system-packages:deltarpm'} || []} unless @sysdeps;
}
return () unless @sysdeps;
return () unless @sysdeps; # no extra build environment used
push @sysdeps, @$extradeps if $extradeps;
if ($config->{'expandflags:preinstallexpand'} && !$config->{'preinstallisexpanded'}) {
my $err = expandpreinstalls($config);
return (undef, $err) if $err;
Expand Down

0 comments on commit 7b8232c

Please sign in to comment.