Skip to content

Commit

Permalink
ooh, don't merge depends from IGNOREd stuff for MULTI_PACKAGES.
Browse files Browse the repository at this point in the history
this allows build to proceed faster on some arches by simply not
building stuff we don't need
  • Loading branch information
marcespie committed Oct 3, 2011
1 parent d648f7e commit 555848a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions infrastructure/lib/DPB/PkgPath.pm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: PkgPath.pm,v 1.11 2011/09/27 17:15:03 espie Exp $
# $OpenBSD: PkgPath.pm,v 1.12 2011/10/03 08:56:40 espie Exp $
#
# Copyright (c) 2010 Marc Espie <[email protected]>
#
Expand Down Expand Up @@ -235,6 +235,15 @@ sub merge_depends
my $global2 = bless {}, "AddDepends";
for my $v (values %$h) {
my $info = $v->{info};
if (defined $info->{DIST}) {
for my $f (values %{$info->{DIST}}) {
$info->{FDEPENDS}{$f} = $f;
bless $info->{FDEPENDS}, "AddDepends";
}
}
# XXX don't grab dependencies for IGNOREd stuff
next if defined $info->{IGNORE};

for my $k (qw(LIB_DEPENDS BUILD_DEPENDS)) {
if (defined $info->{$k}) {
for my $d (values %{$info->{$k}}) {
Expand All @@ -251,12 +260,6 @@ sub merge_depends
}
}
}
if (defined $info->{DIST}) {
for my $f (values %{$info->{DIST}}) {
$info->{FDEPENDS}{$f} = $f;
bless $info->{FDEPENDS}, "AddDepends";
}
}
}
if (values %$global > 0) {
for my $v (values %$h) {
Expand Down

0 comments on commit 555848a

Please sign in to comment.