pkgsrc/pkgtools/pkglint
rillig 04612c3d27 Fixed patch detection in distinfo files
Up to now, all files whose names started with "patch-" were considered
patch files. This was wrong, since e.g. devel/patch also has distfiles
with the same naming pattern.
2015-11-02 18:45:31 +00:00
..
files Fixed patch detection in distinfo files 2015-11-02 18:45:31 +00:00
DESCR
Makefile Bump version for recent fixes. 2015-10-19 09:43:59 +00:00
PLIST
README Document the need for many more automated tests. 2013-03-26 15:08:53 +00:00
TODO Moved the code for checking shell commands into its own file 2015-10-15 02:09:49 +00:00

$NetBSD: README,v 1.5 2013/03/26 15:08:53 schmonz Exp $

== Current problems ==

There are finally some automated tests that document a few intended
and actual behaviors. There is still plenty of poorly expressed
code not yet under test and therefore not yet safe to refactor.

The current pkglint architecture will not scale much further. What is
needed next are parsers for nested, non-context-free languages (make(1),
sh(1), sed(1)). The parsers should be able to recognize partial
structures, as well as structures containing foreign parts. This is
because most of pkgsrc is heavily based on preprocessors:

- The .if and .for directives in Makefiles are preprocessed by make(1)
  before building dependencies and shell commands out of the remaining
  text.

- make(1) assembles shell commands from literal text and variables like
  ${PKGNAME}.

- Shell commands often use dynamic evaluation of variables.

All this makes enhancing pkglint non-trivial. If you know of any
academic papers that might be of help in this case, please tell me.

The pkglint source code is much too big for a single file.