metadata.pl: fix handling of HOST_BUILD_DEPENDS if a package is referenced that only exists as source pkg, e.g. libtool

SVN-Revision: 22946
v19.07.3_mercusys_ac12_duma
Jo-Philipp Wich 14 years ago
parent 8315505605
commit 097d38615b

@ -667,14 +667,15 @@ sub gen_package_mk() {
$dep = $1;
$suffix = $2;
}
my $pkg_dep = $package{$dep};
next unless $pkg_dep;
my $idx = "";
if (defined $pkg_dep->{src}) {
my $pkg_dep = $package{$dep};
if (defined($pkg_dep) && defined($pkg_dep->{src})) {
$idx = $pkg_dep->{subdir}.$pkg_dep->{src};
} elsif (defined($srcpackage{$dep})) {
$idx = $subdir{$dep}.$dep;
} else {
next;
}
my $depstr = "\$(curdir)/$idx$suffix/compile";
my $depline = get_conditional_dep($condition, $depstr);

Loading…
Cancel
Save