diff options
author | rh <rh@pkgsrc.org> | 2003-01-15 23:41:31 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2003-01-15 23:41:31 +0000 |
commit | 0a4ba337b329f0f9fd5cc2744b760a558af6a375 (patch) | |
tree | 2b852cbdbbeb47a2cac8cffdca1b7db4632f8130 /pkgtools | |
parent | 9f2a1467609290a31beae4ea485ca9f6388beafc (diff) | |
download | pkgsrc-0a4ba337b329f0f9fd5cc2744b760a558af6a375.tar.gz |
Update pkglint to 3.43. Check for hard coded share/locale and lib/locale
within PLIST.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/pkgtools/pkglint/Makefile b/pkgtools/pkglint/Makefile index 7480a5ed92f..f4050b489d4 100644 --- a/pkgtools/pkglint/Makefile +++ b/pkgtools/pkglint/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.147 2003/01/11 04:42:57 rh Exp $ +# $NetBSD: Makefile,v 1.148 2003/01/15 23:41:31 rh Exp $ # -DISTNAME= pkglint-3.42 +DISTNAME= pkglint-3.43 CATEGORIES= pkgtools devel MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 8e7eb7ca921..96888c3755d 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -12,7 +12,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.78 2003/01/11 04:42:57 rh Exp $ +# $NetBSD: pkglint.pl,v 1.79 2003/01/15 23:41:32 rh Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by Hubert Feyrer <hubertf@netbsd.org>, @@ -461,6 +461,18 @@ sub checkplist { $infooverwrite++; } + if ($_ =~ /^lib\/locale/) { + &perror("FATAL: \"lib/locale\" should not be listed ". + "in $file. Use \${PKGLOCALEDIR}/locale and ". + "set USE_PKGLOCALEDIR instead."); + } + + if ($_ =~ /^share\/locale/) { + &perror("WARN: use of \"share/locale\" in $file is ". + "deprecated. Use \${PKGLOCALEDIR}/locale and ". + "set USE_PKGLOCALEDIR instead."); + } + if ($_ =~ /\${PKGLOCALEDIR}/ && $seen_USE_BUILDLINK2 && ! $seen_USE_PKGLOCALEDIR) { &perror("WARN: PLIST contains \${PKGLOCALEDIR}, ". "but USE_PKGLOCALEDIR was not found."); |