pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc Updated pkglint to 4.23.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/151f1917941e
branches:  trunk
changeset: 499896:151f1917941e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Sep 28 20:47:39 2005 +0000

description:
Updated pkglint to 4.23.2.

The use of "# defined" as variable value in Makefiles is deprecated. It
has too weak semantics, compared to "# none", "# empty" or "yes".

diffstat:

 doc/CHANGES                       |  3 ++-
 pkgtools/pkglint/Makefile         |  4 ++--
 pkgtools/pkglint/files/pkglint.pl |  6 +++++-
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r ce47251da337 -r 151f1917941e doc/CHANGES
--- a/doc/CHANGES       Wed Sep 28 20:31:28 2005 +0000
+++ b/doc/CHANGES       Wed Sep 28 20:47:39 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES,v 1.11241 2005/09/28 18:23:13 rillig Exp $
+$NetBSD: CHANGES,v 1.11242 2005/09/28 20:48:14 rillig Exp $
 
 Changes to the packages collection and infrastructure in 2005:
 
@@ -4167,3 +4167,4 @@
        Updated inputmethod/sj3-lib to 2.0.1.20nb2 [rillig 2005-09-28]
        Updated inputmethod/sj3-server to 2.0.1.20nb2 [rillig 2005-09-28]
        Updated inputmethod/sj3-server-bin to 2.0.1.20nb5 [rillig 2005-09-28]
+       Updated pkgtools/pkglint to 4.23.2 [rillig 2005-09-28]
diff -r ce47251da337 -r 151f1917941e pkgtools/pkglint/Makefile
--- a/pkgtools/pkglint/Makefile Wed Sep 28 20:31:28 2005 +0000
+++ b/pkgtools/pkglint/Makefile Wed Sep 28 20:47:39 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.257 2005/09/28 14:12:38 rillig Exp $
+# $NetBSD: Makefile,v 1.258 2005/09/28 20:47:39 rillig Exp $
 #
 
-DISTNAME=      pkglint-4.23.1
+DISTNAME=      pkglint-4.23.2
 CATEGORIES=    pkgtools devel
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r ce47251da337 -r 151f1917941e pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Wed Sep 28 20:31:28 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Wed Sep 28 20:47:39 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.291 2005/09/28 14:12:38 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.292 2005/09/28 20:47:39 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1507,6 +1507,10 @@
                                        $line->log_warning("COMMENT should not be longer than 70 characters.");
                                }
                        }
+
+                       if ($value eq "# defined" && $varname !~ qr".*_MK$") {
+                               $line->log_warning("Please use \"# empty\", \"# none\" or \"yes\" instead of \"# defined\".");
+                       }
                }
        }
 



Home | Main Index | Thread Index | Old Index