pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files lintpkgsrc(1) honors the PKGLIN...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a78161597c8c
branches:  trunk
changeset: 494337:a78161597c8c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon May 23 08:35:41 2005 +0000

description:
lintpkgsrc(1) honors the PKGLINT_FLAGS environment variable, which can be
used together with the -l option.

diffstat:

 pkgtools/pkglint/files/lintpkgsrc.0  |  39 ++++++++++++++++++++---------------
 pkgtools/pkglint/files/lintpkgsrc.1  |  11 +++++++++-
 pkgtools/pkglint/files/lintpkgsrc.pl |   4 +-
 3 files changed, 34 insertions(+), 20 deletions(-)

diffs (131 lines):

diff -r 7325fae86f4a -r a78161597c8c pkgtools/pkglint/files/lintpkgsrc.0
--- a/pkgtools/pkglint/files/lintpkgsrc.0       Mon May 23 08:26:03 2005 +0000
+++ b/pkgtools/pkglint/files/lintpkgsrc.0       Mon May 23 08:35:41 2005 +0000
@@ -1,11 +1,11 @@
-LINTPKGSRC(1)           NetBSD General Commands Manual           LINTPKGSRC(1)
+LINTPKGSRC(1)               NetBSD Reference Manual              LINTPKGSRC(1)
 
 NNAAMMEE
      lliinnttppkkggssrrcc - verifier for the pkgsrc tree
 
 SSYYNNOOPPSSIISS
-     lliinnttppkkggssrrcc [--BBDDLLOORRSSVVddhhiillmmoopprruu] [--EE _f_i_l_e] [--gg _p_k_g_s_r_c_m_a_p] [--II _f_i_l_e]
-                [--KK _P_A_C_K_A_G_E_S] [--MM _D_I_S_T_D_I_R] [--PP _P_K_G_S_R_C_D_I_R] [_m_a_k_e_f_i_l_e _._._.]
+     lliinnttppkkggssrrcc [--BBDDLLOORRSSVVddhhiillmmoopprruu] [--EE _f_i_l_e] [--gg _p_k_g_s_r_c_m_a_p] [--II _f_i_l_e] [--KK
+                _P_A_C_K_A_G_E_S] [--MM _D_I_S_T_D_I_R] [--PP _P_K_G_S_R_C_D_I_R] [_m_a_k_e_f_i_l_e _._._.]
 
 DDEESSCCRRIIPPTTIIOONN
      lliinnttppkkggssrrcc tries to verify the entire contents of the pkgsrc tree.
@@ -14,6 +14,7 @@
      plete Makefile parser.
 
    OOppttiioonnss
+
      --BB            List packages marked as BROKEN.
 
      --DD _p_a_t_h_s      Parse Makefiles and output contents (useful for debugging).
@@ -63,8 +64,8 @@
 
                    Which would be an alternative to --KK.
 
-     --LL            List the filenames of Makefiles as they are parsed (for
-                   debugging).
+     --LL            List the filenames of Makefiles as they are parsed (for de-
+                   bugging).
 
      --ll            Run pkglint(1) on every package in pkgsrc.
 
@@ -102,32 +103,36 @@
 
      --SS            List packages missing from category _S_U_B_D_I_R lists.
 
-     --uu            As --ii plus for mismatched packages, display REQUIRED
-                   details and run `@MAKE@ fetch-list | sh' to ensure all the
+     --uu            As --ii plus for mismatched packages, display REQUIRED de-
+                   tails and run `@MAKE@ fetch-list | sh' to ensure all the
                    distfiles needed for the latest version are present.
 
-                   Warning: The behaviour of this command may change in a
-                   later version.
+                   Warning: The behaviour of this command may change in a lat-
+                   er version.
 
      --VV            List any prebuilt packages in any subdirs of _P_A_C_K_A_G_E_S with
                    known vulnerabilities, based on the data in
                    _$_{_P_K_G_S_R_C_D_I_R_}_/_d_i_s_t_f_i_l_e_s_/_p_k_g_-_v_u_l_n_e_r_a_b_i_l_i_t_i_e_s.
 
+EENNVVIIRROONNMMEENNTT
+     PKGLINT_FLAGS are the flags passed to pkglint(1) when lliinnttppkkggssrrcc is in-
+     voked with the --ll option.
+
 AAUUTTHHOORRSS
      David Brownlee <abs%netbsd.org@localhost>
 
 BBUUGGSS
-     The --RR, --VV, and --pp options default to using _P_A_C_K_A_G_E_S as the base direc-
-     tory from which to search for binary packages. If this includes OS or
-     architecture information then packages for other OS/architecture combina-
+     The --RR, --VV, and --pp options default to using _P_A_C_K_A_G_E_S as the base directo-
+     ry from which to search for binary packages. If this includes OS or ar-
+     chitecture information then packages for other OS/architecture combina-
      tions will be missed.  In this case _P_A_C_K_A_G_E_S can be overridden with --KK or
      set conditionally in _/_e_t_c_/_m_k_._c_o_n_f based on the value of _L_I_N_T_P_K_G_S_R_C.
 
-     The `Makefile parsing' algorithm used to obtain package versions and
-     DEPENDS information is geared towards speed rather than perfection,
-     though it has got somewhat better over time, it only parses the simplest
-     Makefile conditionals. (a == b, no && etc).
+     The `Makefile parsing' algorithm used to obtain package versions and DE-
+     PENDS information is geared towards speed rather than perfection, though
+     it has got somewhat better over time, it only parses the simplest Make-
+     file conditionals. (a == b, no && etc).
 
      Potentially others, but non serious to date.
 
-NetBSD 2.0                      April 19, 1999                      NetBSD 2.0
+                                April 19, 1999                               3
diff -r 7325fae86f4a -r a78161597c8c pkgtools/pkglint/files/lintpkgsrc.1
--- a/pkgtools/pkglint/files/lintpkgsrc.1       Mon May 23 08:26:03 2005 +0000
+++ b/pkgtools/pkglint/files/lintpkgsrc.1       Mon May 23 08:35:41 2005 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: lintpkgsrc.1,v 1.25 2005/02/04 15:44:50 wiz Exp $
+.\"    $NetBSD: lintpkgsrc.1,v 1.26 2005/05/23 08:35:41 rillig Exp $
 .\"
 .\" Copyright (c) 1999 by David Brownlee (abs%netbsd.org@localhost)
 .\" Absolutely no warranty.
@@ -166,6 +166,15 @@
 with known vulnerabilities, based on the data in
 .Pa ${PKGSRCDIR}/distfiles/pkg-vulnerabilities .
 .El
+.Sh ENVIRONMENT
+.Ev PKGLINT_FLAGS
+are the flags passed to
+.Xr pkglint 1
+when
+.Nm
+is invoked with the
+.Fl l
+option.
 .Sh AUTHORS
 .An David Brownlee Aq abs%netbsd.org@localhost
 .Sh BUGS
diff -r 7325fae86f4a -r a78161597c8c pkgtools/pkglint/files/lintpkgsrc.pl
--- a/pkgtools/pkglint/files/lintpkgsrc.pl      Mon May 23 08:26:03 2005 +0000
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl      Mon May 23 08:35:41 2005 +0000
@@ -1,6 +1,6 @@
 #!@PERL@
 
-# $NetBSD: lintpkgsrc.pl,v 1.100 2005/05/10 19:07:07 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.101 2005/05/23 08:35:41 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -73,7 +73,7 @@
 
     $pkgsrcdir = $default_vars->{PKGSRCDIR};
     $pkgdistdir = $default_vars->{DISTDIR};
-    $pkglint_flags = '-q -Wno-workdir';
+    $pkglint_flags = $ENV{"PKGLINT_FLAGS"} || '-q -Wno-workdir';
 
     if ($opt{r} && !$opt{o} && !$opt{m} && !$opt{p})
        { $opt{o} = $opt{m} = $opt{p} = 1; }



Home | Main Index | Thread Index | Old Index