From 7f80e266612c4ce1f17c7cbdfc268057de9ae58b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 20 Sep 2010 20:17:28 +0000 Subject: fix build dependencies on packages with multiple variants but no selected virtual packages SVN-Revision: 23102 --- scripts/metadata.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 2e90257270..45d202e439 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -640,6 +640,9 @@ sub gen_package_mk() { $pkg->{buildonly} and $config = ""; print "package-$config += $pkg->{subdir}$pkg->{src}\n"; if ($pkg->{variant}) { + if (!defined($done{$pkg->{src}})) { + print "\$(curdir)/$pkg->{subdir}$pkg->{src}/default-variant := $pkg->{variant}\n"; + } print "\$(curdir)/$pkg->{subdir}$pkg->{src}/variants += \$(if $config,$pkg->{variant})\n" } $pkg->{prereq} and print "prereq-$config += $pkg->{subdir}$pkg->{src}\n"; -- cgit v1.2.3