summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-06 01:43:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-06 01:43:20 +0000
commit097d38615bd44d91a6b1f12748cc4ce62bbd008c (patch)
tree8703eb0d9d0a4144db46e1afc4c8513c74bee36a
parent831550560584751e1055eb6ef8918cea225ad1ec (diff)
downloadmtk-20170518-097d38615bd44d91a6b1f12748cc4ce62bbd008c.zip
mtk-20170518-097d38615bd44d91a6b1f12748cc4ce62bbd008c.tar.gz
mtk-20170518-097d38615bd44d91a6b1f12748cc4ce62bbd008c.tar.bz2
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
-rwxr-xr-xscripts/metadata.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index a9242d0..336605f 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -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);