Commit graph

84 commits

Author SHA1 Message Date
rillig
4e2f61b1ea Updated pkglint to 5.3.5
Changes since 5.3.4:

* Added parser for Makefile conditionals
* Variables that are matched using the :M modifier are checked whether
  the matched value is sensible
* Reworded and explained warning for variable ordering in packages
* Fixed bug in Tree.String
* Fixed a few variable types
2016-01-31 17:18:54 +00:00
rillig
c5a35047e9 Updated pkglint to 5.0
Notable changes include:
* The whole code has been rewritten in Go
* It is much faster, especially in recursive mode
* The code has unit tests, providing examples of use
* Some new explanations for existing warnings
* Some adjustments to previous warnings
2015-11-25 13:29:07 +00:00
rillig
52076b148e Moved the code for checking shell commands into its own file 2015-10-15 02:09:49 +00:00
rillig
e2cfc9075a Fixed warning for using github.com in MASTER_SITES. 2015-10-11 07:27:12 +00:00
tnn
e3b246a370 add TODO item for warning about MASTER_SITES containing github.com. 2015-03-07 15:33:21 +00:00
rillig
99e9483d6d Cleaned up the TODO list; the license check has been implemented. 2014-10-08 19:19:43 +00:00
rillig
de7761b3fc - Added check for unused license files
- Improved allowed filenames for patches
- Added license for pkglint itself
- Cleaned up Makefile and TODO
2013-10-12 18:09:59 +00:00
rillig
a53a0e63f5 The hicolor-icon-theme issue has been resolved. 2013-10-12 15:01:45 +00:00
wiz
5f6798ddba + Warn about using REPLACE_PYTHON without including application.mk. 2013-07-30 19:50:04 +00:00
schmonz
6ac8ad3cf0 Document the need for many more automated tests. 2013-03-26 15:08:53 +00:00
wiz
9adba466d0 Do not warn about setting PKG_DESTDIR_SUPPORT any longer, it is now
set by default by the infrastructure.
Remove highly obsolete TODO entry about destdir.
Bump version.
2012-09-15 10:55:15 +00:00
rillig
50da92c78c Updated pkglint to 4.93.
Changes since 4.92:
- Changes for the changing pkgsrc infrastructure
- Added basic support for LICENSE expressions
2010-03-11 20:54:19 +00:00
wiz
89320e2639 + complain if LICENSE definition is missing 2010-02-16 10:06:55 +00:00
tnn
516378a3c7 note that pkglint doesn't understand dual licenses 2009-10-21 20:08:01 +00:00
rillig
195fbce98e take case-insensitive filesystems into account. 2009-04-05 13:05:16 +00:00
rillig
f85556e344 more to do. 2008-11-25 19:11:39 +00:00
rillig
620e416521 It already tries. 2008-10-09 16:01:51 +00:00
joerg
98a3da97e5 Main tree must not depend on wip, so pkglint should try to warn about
it.
2008-09-16 14:41:18 +00:00
joerg
8a32fdfe06 Add note about LOCALBASE 2008-04-07 17:34:51 +00:00
tnn
f6d2ec23a6 Add a suggestion from Aleksej Saushev. 2008-03-10 22:01:04 +00:00
rillig
d3e9cc4b03 There's more to do ... 2008-03-06 09:34:41 +00:00
tnn
0541dead28 Add TODO item from PR pkg/38178. 2008-03-05 21:14:05 +00:00
rillig
4a2b7dfc86 Added a suggestion from Tobias Nygren. 2008-02-08 22:43:27 +00:00
rillig
fbf42c9d3e Something more to do. 2008-02-05 02:10:38 +00:00
rillig
34e8a5cf5d Greg wants me to check for unused license files. 2008-01-10 03:48:34 +00:00
rillig
6dc93e6b52 Cleaned up the TODO list from things I don't find worth implementing. 2007-09-10 07:38:46 +00:00
schmonz
6b009865ac Fix a couple misspellings, and add a couple items:
* Check for parallel files/dirs whose names differ only in case
    (suggested by heinz)
* Check for German text in pkgtools/pkglint/TODO.
2007-05-29 01:35:05 +00:00
joerg
6df0f6f093 Another wish item: configure patches should not contain the pkgsrc
magic.
2007-01-30 20:32:23 +00:00
rillig
d5b5fbc9f8 Some of the TODO entries have been done. 2007-01-18 18:37:38 +00:00
gdt
671b078c9d * Warn if LICENSE/RESTRICTED/NO_*_ON_* are misordered. 2007-01-11 19:09:50 +00:00
joerg
7575c0c213 From the discussion in #pkgsrc of build problems of wip/gxmms2:
Packages using lang/python/extension.mk must follow the naming scheme
or otherwise they can't be depended on.
2007-01-11 18:39:34 +00:00
joerg
34eea79bcf ${MARCH_ARCH}-${LOWER_OPSYS}elf and related constructs should be fixed. 2006-10-12 13:58:48 +00:00
rillig
fa79055deb TODO:
* Check all the shell commands to see if they are mentioned in USE_TOOLS.
2006-09-08 07:45:40 +00:00
rillig
9c98b7790e * Invent an annotation scheme for files that intentionally define
variables for use in other files.
2006-07-04 10:01:06 +00:00
rillig
f8102338f3 Updated pkglint to 4.66.
This change includes all the things I thought of during the freeze of
2006Q2.

Some variables have disappeared from pkgsrc without notice. Marked them
deprecated to help the package authors at least a bit.

Renamed some ACL abbreviations in makevars.map and adjusted the variable
definitions.

Added the command line options -Dtrace, -Dunchecked and -Dunused.

Some variables may contain unexpected white-space and therefore should
not be used in .for loops.

The -Dmisc option replaces the --verbose option (and the log_info
subroutine), which does not exist any longer. This eliminates all
instances of "OK:" from the output, which I didn't like from the
beginning. The -Dmisc option also takes over many warnings that have
been issued by --debug before.

Improved the check for absolute pathnames. Especially, everything that
follows ${DESTDIR} or $(DESTDIR) in a Makefile is considered an absolute
pathname. This reveals many wrong uses of DESTDIR (as defined by the GNU
coding standards), for example $(DESTDIR)/$(prefix), which should be
$(DESTDIR)$(prefix) instead.

Almost every use of a make(1) variable is checked for spelling mistakes.
Before, only the definitions of variables have been checked.

Restricted the use of variables to specific files, which are defined in
makevars.map. This catches especially buildlink3.mk files with
unexpected side effects.

In shell commands, neither "echo" nor "echo -n" or "${ECHO} -n" should
be used. Since the INSTALL_*_DIR commands can only handle one directory
at a time, suggest to use INSTALLATION_DIRS instead.

Greatly improved the checks for dependency specifications, especially to
find foo-*, which should rather be foo-[0-9]*.

Fixed the incorrect handling of LICENSE_FILE (now using $line->text
instead of $line).

Improved the wording of the "plural names" warnings, so that for known
variables it is "The += operator should only be used with lists." now.

In buildlink3.mk files the uppercase and lowercase names of the package
should correspond with the package name. This catches many
copy-and-paste mistakes. Fixed many null pointer exceptions as well. In
addition, every buildlink3.mk file needs a definition of
BUILDLINK_API_DEPENDS.

In patch files, absolute pathnames and unportable macro names are
checked not only in added lines, but also in the context lines.

In the pkgsrc root directory and the category directories, the Makefiles
are checked like every other Makefile, too.

Fixed the place where the global variables for the package context are
defined and later undefined.

Variables that are mentioned in EVAL_PREFIX may be used in the current
file and are not flagged as "used but not defined".

When parsing shell words in Makefiles, recognize $<, $@, $^ and $/.
(The latter is used extensively by openoffice to represent a directory
separator.)

Fixed some minor bugs:
* $makevar had been defined unintentionally by using the -> operator.
2006-07-02 09:47:17 +00:00
rillig
9f330148b3 Some things from the TODO list have been done. 2006-06-08 15:14:22 +00:00
joerg
4726a63c51 Add a wish for PYTHON_VERSIONS_INCOMPATIBLE. 2006-06-03 00:25:34 +00:00
rillig
5138f12646 Updated the TODO list. 2006-06-03 00:12:38 +00:00
rillig
79494065d4 Updated pkglint to 4.62.
Changes since 4.61:
- Bug fixes.
2006-05-16 22:18:59 +00:00
rillig
c0f3775f92 * In the vartypes.map, distinguish FOO and FOO.*. 2006-05-10 09:01:15 +00:00
rillig
fff7c773b6 Updated pkglint to 4.60.
Changes since 4.59:
- For many variables the :Q operator is not needed (by definition), for
  example some pathnames, user names, group names.
- Improved the diagnostics for planned package updates.
- Various catch-ups to recent changes in the infrastructure, among them
  BUILDLINK_ABI_DEPENDS and gettext.mk.
- When the PLIST contains a libtool archive, the *.a and *.so files don't
  have to be mentioned explicitly.
2006-04-21 10:37:51 +00:00
joerg
7633711ecd Possible warnings if the PLIST contains libtool archives, but the
package doesn't say it uses libtool. Warn for redundant libraries,
when the libtool archive is also included in the PLIST.
2006-04-19 15:05:34 +00:00
rillig
8da147b378 Debian's lintian has many ideas for things that pkglint could also check.
Maybe we can use some of them.
2006-03-01 22:11:15 +00:00
rillig
0514bb16a6 * Many of the checking routines need some context to provide better
warnings. For example, checkline_foo() may need to know what has
  happened in the file before that line.
2006-02-04 03:39:40 +00:00
joerg
41ad43f789 Wish for warning about BUILD_USES_MSGFMT being used without
devel/gettext-lib/buildlink3.mk being included. This is often,
but not always incorrect.
2006-02-02 17:41:57 +00:00
rillig
7fa0c4e8e9 Added an RCS Id and an introductory comment. 2006-01-06 17:24:38 +00:00
joerg
a485b489e3 Ask for warnings so that e.g. CONFIGURE_DIRS has overrides for
config.guess and config.sub as well.
2006-01-03 20:52:27 +00:00
rillig
1c0702676a Cleaned up the TODO list. 2006-01-02 10:12:09 +00:00
rillig
862032689f * record with each substring its source location to be able to make
even more precise diagnostics
2006-01-02 09:42:52 +00:00
joerg
ff4b54c998 Index: has sometimes different precedence in patch, avoid problems. 2005-12-30 16:27:13 +00:00