pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files WRKSRC is of type WrkdirSubdire...
details: https://anonhg.NetBSD.org/pkgsrc/rev/86cc0f54fdd0
branches: trunk
changeset: 503123:86cc0f54fdd0
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Nov 14 13:03:32 2005 +0000
description:
WRKSRC is of type WrkdirSubdirectory, but no new checks are added.
diffstat:
pkgtools/pkglint/files/makevars.map | 3 ++-
pkgtools/pkglint/files/pkglint.pl | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r ac28bf8a2ab7 -r 86cc0f54fdd0 pkgtools/pkglint/files/makevars.map
--- a/pkgtools/pkglint/files/makevars.map Mon Nov 14 12:51:57 2005 +0000
+++ b/pkgtools/pkglint/files/makevars.map Mon Nov 14 13:03:32 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: makevars.map,v 1.31 2005/11/14 12:51:57 rillig Exp $
+# $NetBSD: makevars.map,v 1.32 2005/11/14 13:03:32 rillig Exp $
#
# This file contains the guessed type of some variables, according to
@@ -178,5 +178,6 @@
USE_PKGSRC_GCC Userdefined
USE_TOOLS List of Tool
USE_X11 Yes
+WRKSRC WrkdirSubdirectory
X11_PKGSRCDIR Readonly
X11_TYPE Userdefined
diff -r ac28bf8a2ab7 -r 86cc0f54fdd0 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Mon Nov 14 12:51:57 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Mon Nov 14 13:03:32 2005 +0000
@@ -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.356 2005/11/14 12:51:57 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.357 2005/11/14 13:03:32 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1693,6 +1693,9 @@
$line->log_warning("\"${value}\" is not a valid variable name.");
}
+ } elsif ($type eq "WrkdirSubdirectory") {
+ # TODO: check for ${WRKDIR}/${DISTNAME}/foo
+
} elsif ($type eq "WrksrcSubdirectory") {
if ($value =~ qr"^(\$\{WRKSRC\}(?:/|$))") {
my ($prefix) = ($1);
Home |
Main Index |
Thread Index |
Old Index