Commit graph

2000 commits

Author SHA1 Message Date
rillig
26fbd1036b Updated pkglint to 4.37.
- Added checks for TOOL_* variables.
- Added {pre,do,post}-extract to the list of valid stages.
- Fixed the regular expression for detecting tool names.
- Added a check for invalid syntax in tool names.
- Improved the diagnostic for enumerations.
2005-11-04 20:39:49 +00:00
rillig
9df8a0ff82 - PLIST_SRC may be set with both "=" and "+=".
- Allow variables as Option.
- Improved the diagnostic for "invalid subdirectory of ${WRKSRC}".
2005-11-04 17:29:02 +00:00
rillig
aee7d5cd02 Added trailing dot to the diagnostics where it was missing. 2005-11-04 17:04:49 +00:00
rillig
0e8bf529d9 Updated pkglint to 4.36.1.
- Added many of the variables found in pkgsrc/mk/* to makevars.map.
- Added the function log_fatal, whose output goes to stderr instead of
  stdout.
- All files in pkgsrc/mk/ are excluded from checking, as they may use
  private variables and do other questionable things.
- Removed the Language type, as it is a simple enumeration.
- Added the Userdefined type to distinguish user-definable and read-only
  variables.
2005-11-04 17:00:58 +00:00
rillig
84dc0f88aa Updated pkglint to 4.36.
Implemented checking for enumeration types. Added new types Filemask,
Filename, Language, Option, Pathmask, Pathname, Stage, Varname and
WrksrcSubdirectory. Made the check for URLs stricter. Added some
variables to the makevars.map file.
2005-11-04 13:57:35 +00:00
rillig
916d79ef91 I knew there had been a program that uses the (now removed) -Wno-workdir
option. I just didn't think it was pkglint itself. :)
Thanks to Martti for notifying me about that.
2005-11-04 10:09:13 +00:00
rillig
4478d43858 Updated pkglint to 4.35.
Removed the -Wworkdir option. Added an --import option that replaces
-Wworkdir. Changed the warning about uncleaned work* directories into an
error. Updated the man page.
2005-11-04 09:32:03 +00:00
rillig
b50c1b58d7 Updated pkglint to 4.34.
Fixed the --autofix handling of category Makefiles. Added an --import
option that helps importing packages from pkgsrc-wip. When checked with
--import, the package is checked as if it weren't part of pkgsrc-wip.
2005-11-04 08:40:59 +00:00
rillig
94c299cd71 include ../../mk/bsd.prefs.mk before using "+=". 2005-11-03 23:28:09 +00:00
rillig
3dd3e17928 The "../.." and PERL5_PACKLIST checks are implemented. 2005-11-03 23:27:10 +00:00
rillig
fb6d872ea2 Updated pkglint to 4.33.1.
Fixed undefined behavior when reading a file that ends in a continuation
line. Any use of ${WRKSRC}/.. is considered an error, as ${WRKSRC} is
meant to point to the top of the build directories. A proper combination
of WRKSRC, CONFIGURE_DIRS and BUILD_DIRS should be used instead. Sorted
the makevars.map file and added SUBST_CLASSES.
2005-11-03 18:49:32 +00:00
rillig
6030a9b69a Updated pkglint to 4.33.
Changes since 4.32.2:
  - Added checks for CATEGORIES.
  - Modernized checks for DEPENDS and BUILD_DEPENDS.
  - Simplified PLIST directive checks.
2005-11-03 12:35:05 +00:00
rillig
4e20502765 Added "linux" to the list of allowed categories. 2005-11-03 12:32:07 +00:00
rillig
80c7827080 Added comments for global variables. Renamed $loglines to $lines, as the
checking routines don't use physical lines anymore, so there's no need
to distinguish them. Removed deprecated "@" line checks from the PLIST
checker. These lines are all reported as "Unknown PLIST directive" now.
2005-11-03 10:34:26 +00:00
rillig
7fb03012a3 Added DEPENDS_TARGET, FETCH_DEPENDS, LIB_DEPENDS and RUN_DEPENDS to the
list of deprecated variables.
2005-11-02 23:18:38 +00:00
rillig
fdde06dd95 Modernized the check for dependency items. Stricter URL checking.
Removed the warning for a single element in DISTFILES, as I don't see
any reason for keeping it.
2005-11-02 23:11:54 +00:00
rillig
d17bab85f0 Added two global variables, $current_dir and $is_wip. This reduces the
number of parameters to many subroutines.
2005-11-02 21:33:37 +00:00
rillig
f7d9a0a2cb Added a check for valid CATEGORIES. The new type List* is the same as
List, except that no warning is reported for not using the "+="
operator.
2005-11-02 20:16:02 +00:00
rillig
57a5599717 Replaced the global $conf_* variables with constants of the same name. 2005-11-02 19:00:16 +00:00
rillig
9123ffe699 Converted the global regular expression variables into constants. 2005-11-02 18:55:15 +00:00
rillig
9165945bb1 Added the --long-options to the --help output. Replaced some constants
inline, as they had only been used once.
2005-11-02 18:50:52 +00:00
rillig
61d017f3a0 Updated pkglint to 4.32.2.
Added a check for invalid uses of MASTER_SITE_* variables.
2005-11-01 23:08:42 +00:00
rillig
7024427060 Updated pkglint to 4.32.1.
Added type check for USE_TOOLS. Fixed false warning about direct use of
tools in comments.
2005-11-01 21:39:31 +00:00
rillig
438ad41261 Updated pkglint to 4.32.
The --autofix support has been rewritten to be more easily usable.
Automatic fixes are currently restricted to the sort order of SUBDIR
entries in category Makefiles. It had been the complete category
Makefile before. Added a new diagnostic, prefixed with "NOTE:", that is
used for important informational diagnostics, for example autofixed
files.
2005-11-01 01:08:38 +00:00
rillig
433d544b58 As I don't know how many backslashes are needed inside backticks to make
one backslash reach the argument to sed(1), the backticks are replaced
with a call to open("... |"). Now the first argument to sed(1) contains
\$ instead of a simple $.
2005-11-01 00:26:35 +00:00
rillig
6b5a2446b0 Updated pkglint to 4.31.2.
Added the expected and actual checksums to the diagnostics if they
differ for patches.
2005-10-30 23:09:40 +00:00
rillig
6e9dde0fd4 Added three methods insert_before(), insert_after() and delete() to a
Pkglint::FileUtil::Line, which will be used for the --autofix option.
No user-visible changes.
2005-10-30 23:03:41 +00:00
rillig
41fe22047c When checking Makefiles, get rid of the "physical" lines as soon as
possible and base all other checks on the logical lines. The physical
source lines are saved literally to make implementing the --autofix
option easier.
2005-10-30 22:11:38 +00:00
joerg
cb701234ba Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard
2005-10-30 21:27:47 +00:00
rillig
6b1c7caead Removed two unused variables. 2005-10-30 19:54:36 +00:00
rillig
ec7b393671 Updated pkglint to 4.31.
Changed the names of the datatypes (Yes_Or_Undefined => Yes, Boolean =>
YesNo, Integer => PkgRevision) in makevars.map. It is now an error if
PKGREVISION appears outside a package Makefile. Improved detection of
Makefile.common. Improved wording of the warning for relative
directories in the form ../package.
2005-10-26 23:17:49 +00:00
rillig
5219926c41 Updated pkglint to 4.30.
Rewrote the typechecking code for Makefile variables. The variable
definitions are extracted from logical lines instead of physical lines,
comments are separated from actual values, for Lists of something, each
something is checked. All URLs are subject to MASTER_SITES expansion.
MASTER_SITES is checked to be a List of URLs.
2005-10-24 23:54:37 +00:00
rillig
cbf57a228a Completely rewrote plist-clash.pl. It has been unmodified for 7 years,
while pkgsrc has changed dramatically. Now it is usable again, although
far from perfect.
2005-10-24 20:56:53 +00:00
rillig
166c6a1177 Report an error if an unknown line occurs in a PLIST. (Most of these
lines are actually empty.)
2005-10-24 20:37:57 +00:00
rillig
a047b04902 Allow all variables ending in _SED or _AWK to be constructed using the
"+=" operator.
2005-10-24 19:56:05 +00:00
rillig
eaf1102c55 Removed those deprecated variables that are unused in current pkgsrc and
pkgsrc-wip.
2005-10-24 19:52:26 +00:00
rillig
71d6878bea Generally allow $Id$ instead of $NetBSD$ in files from pkgsrc-wip. 2005-10-24 18:20:40 +00:00
rillig
2646e626ec Updated pkglint to 4.29.1.
Added CONFLICT to the list of deprecated variables (actually it's a
typo). Added PLIST_SUBST to makevars.map as a List. Allow comments after
a YES/yes/NO/no value of variables.
2005-10-23 23:14:57 +00:00
rillig
fd5dffd960 Replaced $f with ${f} to fix some pkglint warnings. 2005-10-23 21:54:35 +00:00
rillig
c751f422d3 Updated pkglint to 4.29.
Fixed the detection of list variables that are modified with operators
other than "+=". Added *_SKIP to the list of plural variable names.
Removed some unused variables from main(). (This change include
white-space changes.)
2005-10-23 19:20:33 +00:00
rillig
1f0db6c2cc Updated pkglint to 4.28.2.
Added a data type Readonly for variables that must not be given any
value at all by the package Makefile. Marked PKGBASE and PKGVERSION
read-only, because leaving them read-write would make the way PKGNAME is
calculated too complex. Made the check for the "+=" operator independent
of the data type. Added more patterns for accepted variable names for
lists.
2005-10-21 07:20:24 +00:00
rh
5724f633ed Update url2pkg to 1.31. This reinstates correct handling of
"prdownloads.sourceforge.net" URLs.
2005-10-18 21:10:28 +00:00
seb
f01e6ca40e x11/render package had been moved as x11/renderext. 2005-10-16 08:57:30 +00:00
rillig
e95f2f49e0 Updated pkglint to 4.28.1.
Declared some more variables as List types. Added a check that
PERL5_PACKLIST matches the PKGNAME.
2005-10-14 09:23:46 +00:00
rillig
14948b389c Updated pkglint to 4.28.
Added support to typecheck "List of Something" in Makefile variables.
DEPENDS and BUILD_DEPENDS are of type List of Dependency, CFLAGS are
simply a List.
2005-10-14 00:05:23 +00:00
rillig
e79b082b35 "-Wl,-rpath" should not be used directly. ${COMPILER_RPATH_FLAG} is better. 2005-10-13 20:17:45 +00:00
rillig
23a0f74cf2 Updated pkglint to 4.27.
Added a warning that ${PKGNAME} and ${PKGVERSION} should not be used in
some other variables, as they may contain the PKGREVISION.
2005-10-13 00:23:53 +00:00
reed
3f94d58331 Instead of using hard-coded 555 mode for installing library,
use BINMODE setting. This helps with non-privileged pkgsrc use.
2005-10-10 18:28:08 +00:00
rillig
22b947030e Updated pkglint to 4.26.
Improved the wording of two diagnostics. Added a check for SUBST_STAGE.
2005-10-09 18:24:11 +00:00
jmmv
e829ceaf2b Update to 1.3:
- Clarify the difference between a "not found package" and a "not a direct
  dependency" one.
2005-10-09 10:30:23 +00:00
reed
bb35b0ea3d Remove CONFIGURE_ARGS setting --mandir as this is now done for
GNU_CONFIGURE.

Also add a note: This breaks for those who set their own LOCALBASE
to /usr and also define PKGMANDIR to different than share/man.
2005-10-07 18:05:07 +00:00
rillig
593971ad6f Updated pkglint to 4.25.
Improved heuristics for packages that use some common Makefiles,
reducing the number of false diagnostics in -Wvague mode. Moved checks
for SVR4_PKGNAME out of -Wvague mode. Added check for misspelled
NO_{SRC,BIN}_ON_{FTP,CDROM}.
2005-10-07 17:34:11 +00:00
rillig
2614ff83d0 Updated pkglint to 4.24.
Warn if option names contain underscore characters (suggested by dillo).
NO_TOOLS and NO_WRAPPER are deprecated, as they are not used anymore.
2005-10-07 10:24:42 +00:00
wiz
7810313db3 1.30:
Unbreak url2pkg on sourceforge hosted packages -- the MASTER_SITES
did not contain the trailing slash, thus breaking the download.

XXX: prdownloads.sf.net is not recognized as a sourceforge "mirror"
since the previous version of url2pkg.
2005-10-03 19:54:10 +00:00
jmmv
47b9407ba8 Update to 1.2:
- Package names can have dashes in them, so use a correct regexp to extract
  the package name from a dependency specification.
2005-10-03 09:45:45 +00:00
jmmv
a13cc4da40 Update to 1.23:
- Sync SETS_X11's default value with recent NetBSD versions: xcontrib.tgz
  and xmisc.tgz disappeared while xetc.tgz was added, starting in NetBSD 2.0.
2005-10-02 09:38:39 +00:00
jmmv
d5be86ac47 Update to 1.1:
- Raise an appropriate warning if pkg_admin pmatch fails due to an incorrect
  pattern (e.g., cairo>=0.5.2-head is unrecognized).
2005-10-02 09:29:29 +00:00
heas
852277e6aa Solaris 2.9's nawk does not like the syntax ($0 ~ /=/); it seems as if the
parser interprets this as the division operator '/=', so escape the =.
2005-10-02 02:05:29 +00:00
jmmv
4295bb0a3a Add and enable verifypc. 2005-10-01 12:57:21 +00:00
jmmv
bffce6edab Initial import of verifypc, version 1.0:
verifypc is a tool that sanity checks the dependencies of a package based on
the results of a successful build, assuming the package uses pkg-config to
detect dependencies.

verifypc will warn you if the configuration script requests an uninstalled
or unavailable package (not specified as a direct dependency) or if the
requested package does not match the version specification in the packages'
dependencies.
2005-10-01 12:56:51 +00:00
wiz
b318c48fb9 Typo and whitespace fixes. Use Sq. Capitalize NetBSD properly. 2005-09-30 12:10:44 +00:00
rillig
74c36f7f68 Removed unused NO_TOOLS. 2005-09-29 13:38:37 +00:00
rillig
76d2a550ec Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 21:55:32 +00:00
rillig
f89bcc71b5 Allow "# defined" as value for multiple inclusion guards in Makefile.common. 2005-09-28 21:39:05 +00:00
rillig
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +00:00
rillig
2c69e8a894 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".
2005-09-28 20:47:39 +00:00
rillig
3184319c95 Cleaned up the TODO list. 2005-09-28 16:34:47 +00:00
rillig
5ac8ad7004 Removed trailing white-space. 2005-09-28 14:31:06 +00:00
rillig
ef92691af7 Updated pkglint to 4.23.1.
BUILD_USES_MSGFMT should always be set to YES/yes or left undefined. When
checking for direct use of tools, respect shell commands.
2005-09-28 14:12:38 +00:00
rillig
254a069785 Fixed the indentation for "Other arguments". 2005-09-28 10:39:35 +00:00
wiz
509439f0fd Regen. 2005-09-28 10:06:58 +00:00
wiz
be89638ba1 Sort option descriptions. 2005-09-28 10:06:29 +00:00
rillig
7024fb38d4 Updated to pkglint-4.23.
Added the -R command line option to allow more RCS Id tags than $NetBSD$
to appear in line 1 of almost every file. Suggested by dillo.
2005-09-28 09:44:42 +00:00
rillig
234e62b9d0 Updated pkglint to 4.22.
A distfile that only has an SHA1 checksum, but not an RMD160 one, is
considered an error. While at it, made the distinfo file check a little
stricter.
2005-09-27 21:13:20 +00:00
rillig
d8c6d398a6 Updated pkglint to 4.21.5.
Insist that PKGREVISION should be an integer or be undefined at all.
2005-09-27 18:58:56 +00:00
abs
c413838a65 Update pkg_chk to 1.62:
+ Implement defining tag groups in pkgchk.conf. For example
      "mailserver = tll gta tycoon jeeves iris"
    + If the first tag on a line starts with a '-', there is now an
      implicit '*' before it
    + -B no longer implies -i
2005-09-27 17:13:03 +00:00
rillig
718b487651 Updated pkglint to 4.21.4.
The last change introduced some false positive diagnostics. If a
distinfo file contains the checksum for a patch that does not exist,
this is not considered to be an error, but only a warning, as the
additional checksums do not influence the package.
2005-09-23 13:08:23 +00:00
rillig
24412e2a4e Updated pkglint to 4.21.3.
Fixed false positive errors for PHP packages.
2005-09-22 15:54:23 +00:00
rillig
5ed3de4dcc Updated pkglint to 4.21.2.
Changed the file name pattern for patch files to avoid false positives
for DISTFILES that start with "patch-" (requested by salo). Added a
warning for invalid patch file names.
2005-09-22 11:56:37 +00:00
rillig
5ea208ffc4 The diagnostics for the COMMENT variable checks include the location and
are therefore enabled by default. Requested by wiz.

Set the version to 4.21.1.
2005-09-22 01:46:46 +00:00
martti
2c976e8ade Removed distfetch from pkgsrc 2005-09-16 07:41:50 +00:00
abs
345ac26c9b update pkgtools/pkg_chk to 1.61.
Accept relative paths for -C and -P - fixes PR/31277 from Tero Kivinen
2005-09-11 10:39:03 +00:00
wiz
9c8b05d7af regen 2005-09-10 22:33:14 +00:00
wiz
2624c4e38a Date string needs no leading zeroes. 2005-09-10 22:32:54 +00:00
wiz
81184e6850 Use \*[Am] instead of & for HTML output. 2005-09-10 22:32:43 +00:00
rillig
eadbcbe2f0 This is pkglint-4.21.
Changes since 4.20 include:
 - In the diagnostics, FATAL is replaced with ERROR.
 - The command line option -g changes the format of the diagnostics to be
   similar to the one of gcc.
 - Removed false warnings when checking if PLISTS are ordered.
 - Removed the check for contiguous blank lines.
 - Added a check to PLISTs that man pages are not installed in share/man.
 - pkglint -r allows to recursively check directories.
 - The pkgsrc root directory can be checked.
 - Removed false warnings for patches that contain "---" lines.
 - Switched to checking logical lines instead of physical lines.
   Diagnostics for logical lines contain the range of physical lines
   instead of a single line number.
 - Some ../.. path components are stripped from the diagnostics.
 - When checking for the direct use of tool names, only the context of the
   use, not the whole shell command is output.
 - Patches that contain RCS Ids should not have the -ko CVS mode anymore.
 - Variables that are modified using the "+=" operator are considered to be
   lists, so they should have a name indicating a plural.
2005-09-09 12:16:29 +00:00
rillig
fe420411f3 Changed the regular expression for detecting valid .include lines in
Makefiles. I had intended not to read files whose name contains $
characters, but had not written exactly that in the code.
Fixes PR 31213.
2005-09-09 11:05:00 +00:00
rillig
15b9d4d943 Bugfix: The subdirectories of the pkgsrc root directory are listed
correctly. With the -r option, the order of directories is now
depth-first.
2005-09-06 10:30:00 +00:00
rillig
c3115e6a7c Added a check for variables that are modified using "+=". As they are
mostly lists of something, their name should be a plural form. There are
many exceptions to this rule, mostly because of backwards compatibility.
2005-09-05 15:45:29 +00:00
rillig
ffc5bb8970 Replaced two instances of ad-hoc regular expressions with regex_varassign. 2005-09-05 13:27:36 +00:00
rillig
771539924d The continuation line indicator in regex_varassign is not needed
anymore, since assignments are checked on logical lines instead of
physical lines.
2005-09-05 13:06:20 +00:00
rillig
29776bf19e Use logical lines for the validation of Makefiles rather than physical
lines. Print line ranges instead of the starting line in diagnostics.
2005-09-04 21:06:05 +00:00
hubertf
cd5fa34ef1 Update url2pkg to 1.29. Change:
Patch by pancake <pancake@phreaker.net> that permits url2pkg to scan
bsd.sites.mk and recreate the MASTER_SITE string. He has tested a bit
against GNU, GNOME, SOURCEFORGE master sites, and seems to do the things
fine.
2005-09-04 20:02:55 +00:00
wiz
072a396460 regen (under 2.0) 2005-09-04 18:45:46 +00:00
wiz
1d897c6696 New sentence, new line. 2005-09-04 18:45:36 +00:00
rillig
71c7552b19 Changed the wording of the diagnostics message when a patch contains an
RCS tag. Suggested by hubertf.
2005-09-04 00:33:18 +00:00
rillig
4184bfe32f Made the code in get_logical_line easier. 2005-09-04 00:26:13 +00:00
rillig
188a8676f4 Updated the man pages. 2005-09-04 00:04:15 +00:00
rillig
c99410f597 When RCS Ids are detected in patches, don't suggest the -ko mode, but
ask the user to remove the offending line from the patch.
2005-09-03 22:23:46 +00:00
rillig
ab783f6d5a As the shell commands in Makefiles can be quite long, only the close
neighborhood of the tool name is printed when checking for direct use of
tools.
2005-09-03 11:53:15 +00:00
rillig
d646a03983 Added section comments and renamed some subroutines and variables. 2005-09-03 10:41:23 +00:00
rillig
b27cb882b9 Made the import clauses uniform. 2005-09-03 10:19:05 +00:00
rillig
b57ad50501 Removed the -Winternal flag and the checks for the ":=" operator. There had
been too many spurious warnings to be worth the effort.
2005-09-02 22:45:31 +00:00
rillig
5ba3f69424 Removed the (undocumented) -d/--debug option. 2005-09-02 12:39:42 +00:00
rillig
8e2103a120 The command line options are now defined in one table instead of two. 2005-09-02 12:10:16 +00:00
rillig
3b87a70054 In logical lines from Makefiles, white-space surrounding the
continuation is stripped from the string to make the output shorter.
2005-09-02 11:43:52 +00:00
rillig
093cc95760 In the diagnostics, "../../" path components that are not at the
beginning are stripped to make the output less verbose. The beginning is
needed to have a reference from which package the file is included, so
it is not stripped.
2005-09-02 10:42:18 +00:00
rillig
1e45f525ef The PKGDIR variable is extracted from the Makefile first, because other
variables like PATCHDIR and DISTINFO_FILE depend on it.
2005-09-02 10:11:24 +00:00
rillig
5deb0fcc3e When checking for direct use of tools, the Makefile lines are
interpreted as "logical lines", that is, lines ending in a backslash are
continued on the next line. This led to a false warning for
PKG_FAIL_REASON, which is suppressed.
2005-09-02 01:03:20 +00:00
rillig
1c2f92a2b4 Fixed a newly introduced bug that prevented multiple patches per file from
being detected.
2005-09-01 23:24:35 +00:00
rillig
772fe05470 Fixed the false warnings for lines in patches that start with "---". The
old parser had been a little too simple.
2005-09-01 22:45:16 +00:00
rillig
0753a70b6e Pkglint can check the pkgsrc root directory now. The checks are kept
minimal, as I use it mainly to check all the categories using the -r
flag.
2005-09-01 22:09:39 +00:00
rillig
ac22c61ffe Added an (undocumented) option -r/--recursive that checks all the packages
in a category Makefile that are not commented out.
2005-09-01 21:39:57 +00:00
hubertf
55592c0463 fix typo in comment, reported by Leonard Schmidt on tech-pkg@ 2005-09-01 18:09:26 +00:00
xtraeme
7d23f8d60d Update to 20050817.
Changes:

	* Patches to make this build on NetBSD -current
	* Various contribs plus colorization and fixes
2005-08-25 10:34:12 +00:00
rillig
6dc00852e4 Added a check for PLISTs: Man pages should be installed into man/, not
share/man/.
2005-08-25 07:27:23 +00:00
rillig
a5453ed697 Removed all references to the -B/contblank command line option. 2005-08-25 07:24:00 +00:00
rillig
06693d3602 Removed the -p flag from the usage message. It hasn't been implemented
for quite some time. I don't know when it had been removed, but
apparently no-one had used it anyway.
2005-08-24 17:32:43 +00:00
rillig
d6720c2287 Removed the check for contiguous blank lines completely. As long as
pkglint does not catch the important facts correctly it shouldn't be
nitpicking about white-space. I doubt that anyone has used the -B# and
the -Wwhitespace options at all, so there's no harm removing them.
2005-08-24 17:29:52 +00:00
rillig
3497c6f0f7 Added a -Wwhitespace flag that is off by default to control whether
multiple contiguous blank lines should result in warnings.
2005-08-24 16:50:13 +00:00
jmmv
27d05a3d93 Update to 1.22:
- Honour INSTALL_PACKAGES during the 'auto' target.  Found by jwise@.
2005-08-23 14:52:58 +00:00
rillig
5a878cee18 Sorted the regular expression constants alphabetically. Renamed two of them. 2005-08-22 13:51:40 +00:00
rillig
fb408275e2 Don't warn about unsorted PLIST entries that contain ${foo}. Only make
sure the others are sorted.
2005-08-22 05:12:01 +00:00
rillig
f1209e71c7 Reduced the number of warnings for replacing ":=" with "=". Added a command
line flag -Winternal to enable checking of the pkgsrc infrastructure files.
By default these files are not checked.
2005-08-21 23:05:01 +00:00
rillig
c4c597dc44 Buildlink files may use the := assignment operator for variable names that
contain "BUILDLINK". All other uses are still flagged.
2005-08-21 18:25:27 +00:00
rillig
a68e869480 Added a flag -g or --gcc-output-format that makes the messages parseable by
the Emacs compile.el program. Changed the keyword for errors from FATAL to
ERROR. Sorted command line options alphabetically in the source code.
2005-08-21 15:33:45 +00:00
rillig
cf0abff1fe This is pkglint-4.20. Changes since 4.19 include:
- Very much code cleanup
- Introduction of the --autofix flag for category Makefiles
- Rewrite of the code to check the DISTNAME section in package Makefiles
- Rewrite of the code to check category Makefiles
2005-08-21 10:31:43 +00:00
rillig
815d49418b Generally warn about the use of the := operator in Makefiles. 2005-08-21 10:20:13 +00:00
rillig
b5a201135e Rewrote the checking of the Makefile variables in the DISTNAME section.
This reduces the number of false warnings.
2005-08-21 08:55:52 +00:00
grant
ecf46f2b5a include digest-types.h so the various {u,}intNN_t types are defined.
fixes build on BSD/OS.

from T. M. Pederson in PR pkg/31024.
2005-08-21 05:26:33 +00:00
jlam
cf4dfe44a5 Use REQD_DIRS instead of MAKE_DIRS for directories under ${PREFIX} so
that these directories will be conditionally removed (based on reference
counts), regardless of the value of PKG_CONFIG.  Bump the PKGREVISION
for packages that were modified as a result.
2005-08-20 19:16:21 +00:00
rillig
ed097917ca Fixed a syntax error (a string had not been enclosed in double quotes). 2005-08-20 10:53:44 +00:00
rillig
0493ce98e5 The default values for some variables in checkfile_package_Makefile are
chosen more carefully to avoid false warnings. The local variables are
sorted by categories. Unnecessary variables have been removed.
2005-08-20 10:05:00 +00:00
rillig
e956158a4e Added the command line option -CDESCR, for consistency. 2005-08-19 17:32:13 +00:00
rillig
fc379838f0 The --help message was wrong. The progress messages are not printed on
STDERR but on STDOUT.
2005-08-19 16:08:08 +00:00
rillig
0045e32bfa Reduced two errors to warnings for the category Makefiles: The sort
order and  subdirectories which are commented out without giving a
reason.
2005-08-19 15:58:30 +00:00
rillig
36d44c0a34 Don't check the distinfo twice if it is defined as ./distinfo in the
package Makefile. This occurs for example in multimedia/gmplayer.
2005-08-19 15:32:50 +00:00
rillig
eeaeeeb8f3 Changed the way how the direct use of tools is detected in Makefiles.
Now the valid sequences are deleted from the string. If after the
deletion the string contains a tool name, a warning is printed.
2005-08-17 19:06:41 +00:00
rillig
c604bf96f3 Moved the checkdir_package subroutine directly before the main subroutine
to reduce the number of necessary forward declarations. Subsequently,
removed those forward declarations.
2005-08-17 11:28:12 +00:00
rillig
88a92d894a Renamed check_{package,category} to checkdir_{package,category} to
distinguish them from the checkfile_* and checklines_* subroutines.
2005-08-17 10:55:22 +00:00
rillig
7a65dc8e0e Fixed some bugs that appeared while checking the databases/ category
Makefile.
2005-08-17 10:49:59 +00:00
rillig
b800379954 When checking category Makefiles, avoid false warnings about
subdirectories that are in one of filesystem/Makefile, but not in the
other.
2005-08-17 10:42:51 +00:00
rillig
8b7294f45e Don't require the second line of a category Makefile to contain an empty
comment. Instead, allow arbitrary comments at the beginning of the file.
This change required a major rewrite of the code, which had been quite
inflexible before.
2005-08-17 09:43:29 +00:00
xtraeme
b274e3ade5 Don't install the manpage on FreeBSD. 2005-08-08 21:40:48 +00:00
rillig
d287119b6d Added an experimental --autofix or -F command line option. It currently
has only effects for category Makefiles. While implementing it I
probably fixed some other bugs in the category Makefile checking code.
2005-08-07 00:14:22 +00:00
rillig
e5aadae863 Fixed a bug which led to an endless loop. While happily changing the
code, I had forgotten one assumption I made. It was that in the ifelse
chain the case ( && ) couldn't occur because
the outer loop already cought that. And then I had inserted code that
violated exactly this assumption. Fixed.
2005-08-06 22:41:07 +00:00
rillig
810752a20e Fixed the indentation. Replaced a nested if with an &&. Noticed that I
had put the closing indentation FIXME comment at a wrong place. But as
it is removed now, this doesn't matter.
2005-08-06 22:24:07 +00:00
rillig
49fa8bb914 The check_category subroutine has been converted to a one-pass checker.
The new code, which is not as nice as the old code, will hopefully allow
the --autofix option to be implemented really easily. If that will not
become true, I will probably revert to the old code. There's an
indentation FIXME in the code to keep this patch small. I will remove
that FIXME in a minute.
2005-08-06 22:20:10 +00:00
rillig
4b3ddd1d43 Don't be too strict to the "wip" category Makefile. It may have a
different second line and additional targets after the SUBDIR entries.
2005-08-06 21:08:05 +00:00
rillig
f312ca3921 Made the checks for category Makefiles much stricter. Only the "category
normal form" passes all checks.
2005-08-06 20:32:35 +00:00