diff options
author | marino <marino@pkgsrc.org> | 2011-12-04 21:55:01 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2011-12-04 21:55:01 +0000 |
commit | 3e3d636abfd0f9fb2d80fb069db9f64fd728c5dd (patch) | |
tree | 0f4c78464096f5e3d8f73f820ee4045b228ad5ad /pkgtools/tinderbox-dragonfly/patches/patch-aw | |
parent | d8540a44746819c130d1fbb56bd886d7f5bcbd78 (diff) | |
download | pkgsrc-3e3d636abfd0f9fb2d80fb069db9f64fd728c5dd.tar.gz |
pkgtools/tinderbox-dragonfly: Minor fixes
1) Bulk Build: don't add ports where there's no makefile present (x2)
2) Make hook processing more robust (g option on regex, check for
non-empty string value)
3) Make enterBuild function work with HOST_WKRDIRS option
4) Handle specific DEPENDS+= case for perl where the addition of the
dependency port is conditional on the version of perl used.
This addresses the infinite loop case seen on some perl packages
Diffstat (limited to 'pkgtools/tinderbox-dragonfly/patches/patch-aw')
-rw-r--r-- | pkgtools/tinderbox-dragonfly/patches/patch-aw | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/pkgtools/tinderbox-dragonfly/patches/patch-aw b/pkgtools/tinderbox-dragonfly/patches/patch-aw index f253be0180b..139c748b424 100644 --- a/pkgtools/tinderbox-dragonfly/patches/patch-aw +++ b/pkgtools/tinderbox-dragonfly/patches/patch-aw @@ -1,4 +1,4 @@ -$NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ +$NetBSD: patch-aw,v 1.4 2011/12/04 21:55:01 marino Exp $ --- ../FreeBSD/lib/Tinderbox/MakeCache.pm 2011-10-16 00:52:55.000000000 +0000 +++ lib/Tinderbox/MakeCache.pm @@ -129,7 +129,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ # Internal function for returning a port variable sub _getVariable { my $self = shift; -@@ -90,16 +166,28 @@ sub _getList { +@@ -90,16 +166,30 @@ sub _getList { my $port = shift; my $item = shift; my @deps; @@ -137,15 +137,19 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ $self->_execMake($port); foreach my $dep (split(/\s+/, $self->{CACHE}->{$port}{$item})) { -+ $dep =~ s/^\s+//; -+ $dep =~ s/\s+$//; - my ($d, $ddir) = split(/:/, $dep); +- my ($d, $ddir) = split(/:/, $dep); - if (!defined($ddir) || $item eq 'DEPENDS') { ++ my ($d, $ddir) = split(/:/, $self->_trim($dep)); + if (!defined($ddir)) { $ddir = $d; } - $ddir =~ s|^$self->{BASEDIR}/||; -+ $ddir =~ s|^\.\.\/\.\.\/||; +- $ddir =~ s|^$self->{BASEDIR}/||; ++ if ($d =~ /^{perl>=?5.+,.+}$/) { ++ $ddir = "lang/perl5" ++ } else { ++ $ddir =~ s|^$self->{BASEDIR}/||; ++ $ddir =~ s|^\.\.\/\.\.\/||; ++ } if ($ddir) { - push @deps, $ddir; + $found = 0; @@ -160,7 +164,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ } } return @deps; -@@ -109,7 +197,7 @@ sub _getList { +@@ -109,7 +199,7 @@ sub _getList { sub Name { my $self = shift; my $port = shift; @@ -169,7 +173,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ } # Package name -@@ -133,6 +221,13 @@ sub Maintainer { +@@ -133,6 +223,13 @@ sub Maintainer { return $self->_getVariable($port, 'MAINTAINER'); } @@ -183,7 +187,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ # Extract dependencies sub ExtractDepends { my $self = shift; -@@ -189,8 +284,8 @@ sub IgnoreList { +@@ -189,8 +286,8 @@ sub IgnoreList { my $n = 0; $self->_execMake($port); @@ -194,7 +198,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ } return $n eq 0 ? "" : $self->PkgName($port); } -@@ -206,6 +301,17 @@ sub FetchDependsList { +@@ -206,6 +303,17 @@ sub FetchDependsList { return grep { !$uniq{$_}++ } @deps; } @@ -212,7 +216,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ sub ExtractDependsList { my $self = shift; my $port = shift; -@@ -250,6 +356,7 @@ sub BuildDependsList { +@@ -250,6 +358,7 @@ sub BuildDependsList { push(@deps, $self->FetchDepends($port)); push(@deps, $self->BuildDepends($port)); push(@deps, $self->LibDepends($port)); @@ -220,7 +224,7 @@ $NetBSD: patch-aw,v 1.3 2011/11/20 16:20:24 marino Exp $ my %uniq; return grep { !$uniq{$_}++ } @deps; -@@ -263,6 +370,7 @@ sub RunDependsList { +@@ -263,6 +372,7 @@ sub RunDependsList { my @deps; push(@deps, $self->LibDepends($port)); push(@deps, $self->RunDepends($port)); |