diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2010-12-20 09:43:52 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2010-12-20 09:43:52 +0000 |
commit | 3299d470da92cf8cf54b3c60b3331c8c6e49002d (patch) | |
tree | 607ad4e396625a6f443115b56c7519631f04c20e /usr.sbin | |
parent | 1a5391eca944d7da3e88e01f2887266d0a75e5dd (diff) |
prepare for reuse in pkgcreate: allow not finding stuff and not failing
also mark as known a special package known as BUILD
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Dependencies.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm index f20148619f0..8051c4faf6e 100644 --- a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm +++ b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Dependencies.pm,v 1.145 2010/12/20 09:41:44 espie Exp $ +# $OpenBSD: Dependencies.pm,v 1.146 2010/12/20 09:43:51 espie Exp $ # # Copyright (c) 2005-2010 Marc Espie <espie@openbsd.org> # @@ -386,6 +386,8 @@ sub solve_depends $package->{before} = []; for my $dep (@{$package->{plist}->{depend}}) { my $v = $self->solve_dependency($state, $dep, $package); + # XXX + next if !defined $v; $self->{all_dependencies}->{$v} = $dep; $self->{to_register}->{$package}->{$v} = $dep; } @@ -400,6 +402,7 @@ sub solve_wantlibs my $okay = 1; my $lib_finder = OpenBSD::lookup::library->new($solver); + $lib_finder->{known}{BUILD} = 1; for my $h ($solver->{set}->newer) { for my $lib (@{$h->{plist}->{wantlib}}) { $solver->{localbase} = $h->{plist}->localbase; |