diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-04-15 09:41:22 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-04-15 09:41:22 +0000 |
commit | 329d10ab297e2879517f6891a2c12cb71e1ad54f (patch) | |
tree | 1eccb3042cf11f2452dccd4fc4b5a830bd1d7b3c | |
parent | 504ef6a097073e54479a053d928303d527ed585f (diff) | |
download | pkgsrc-329d10ab297e2879517f6891a2c12cb71e1ad54f.tar.gz |
Update to 3.71: print a fatal error if there are any direct dependencies to
the -dirs packages. Suggest usage of USE_DIRS instead.
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 1c5027b6a82..9846fa1c572 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.182 2004/04/12 08:52:14 jmmv Exp $ +# $NetBSD: Makefile,v 1.183 2004/04/15 09:41:22 jmmv Exp $ # -DISTNAME= pkglint-3.70 +DISTNAME= pkglint-3.71 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index ed36a04dbd5..e4dbf5f234d 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.100 2004/04/12 08:52:14 jmmv Exp $ +# $NetBSD: pkglint.pl,v 1.101 2004/04/15 09:41:22 jmmv Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -1329,6 +1329,13 @@ EOF " USE_GMAKE."); } + # check direct dependencies on -dirs packages + if ($l =~ /^([-a-zA-Z0-9]+)-dirs[-><=]+(.*)/) { + &perror("WARN: dependency to $1-dirs ". + "listed in $j. Consider using". + " USE_DIRS+=$1-$2."); + } + # check pkg dir existence $k = (split(':', $k))[1]; $k =~ s/\${PKGSRCDIR}/$ENV{'PKGSRCDIR'}/; |