summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
AgeCommit message (Collapse)AuthorFilesLines
2011-02-01Make a missing LICENSE an error.wiz1-7/+7
Be more permissive wrt what characters are allowed in patch file names. Bump version to 4.97.
2010-10-26Put LICENSE into MAINTAINER section, where other documentation puts it.wiz1-2/+2
Bump version.
2010-06-15In patch files, comments are so useful that this is no longer arillig1-5/+5
warning that only applies when -Wextra is given. ok wiz@
2010-03-10Updated the handling of the LICENSE variable. It is no longer a simple ↵rillig1-11/+23
identifier, but may be a complex boolean expression.
2009-11-20The GNU tools usually provide replacements for their counterparts whoserillig1-2/+2
name doesn't start with a "g". Fixes PR 40261.
2009-09-10SuSE packages live in suse100 nowadays and for Python pick 2.6.joerg1-3/+3
2009-07-26Fixed the parser for shell commands, so that it recognizes the $$$$rillig1-2/+4
variable.
2009-07-26Added support for LICENSE_FILE, OPSYSVARS and @pkgdir.rillig1-1/+26
2009-07-22Don't suggest to use obsolete features.rillig1-3/+3
2009-07-22Remove USE_DIRS handling.wiz1-43/+7
Warn about obsolete @dirrm. Add an XXX for hicolor-icon-theme check.
2009-07-17Added the ability to resolve simple variable references of the formrillig1-2/+34
${VARNAME} into their values. This was intended to fix the false positive warnings about missing distinfo files, but it cannot handle database/ruby-gdbm for example, because _RUBY_VER_MAJOR uses pattern substitution. Run pkglint with -Dtrace,misc and look for resolve_var to see what happens up to now.
2009-07-17Variables that are defined by the package may be used as shell commands.rillig1-1/+6
2009-06-13Introduced the emulation framework to pkglint.rillig1-1/+25
2009-05-26Shell comments may be hidden using @, as they have no side effects.rillig1-2/+5
2009-04-26Removed unnecessary code.rillig1-33/+23
2009-04-26Optimized the doc/CHANGES handling to get the get_doc_CHANGES functionrillig1-10/+10
out of the top-15 time consumers, as measured by DProf. The execution time decreased by about 15 percent.
2009-04-26Added a check that ensures that all types in makevars.map actually existrillig1-8/+36
in the code, avoiding "Type not found" fatal errors at runtime. In this case, only the variables *_SPECIFIC_PKGS were affected. The real problem that induced the above change was the unknown type "List of Pathname", which was a bug in the pkglint code itself, introduced three years ago (revision 1.574).
2009-04-26Removed unused functions.rillig1-14/+1
2009-04-04Added a warning for the old buildlink3.mk format.rillig1-1/+7
2009-03-25Improve explanation for missing man pages for sbin/ programs.wiz1-4/+4
2009-03-25Added explanations for all warnings that currently appear in wip/dcc.rillig1-1/+34
2009-03-22Fixed the .if/.endif handling in the new buildlink3.mk format.rillig1-2/+2
2009-03-22Oops. :)rillig1-2/+2
2009-03-22Adjusted pkglint to the new format of the buildlink3.mk files, which isrillig1-13/+171
pretty neat.
2009-03-10Implemented the suggestion by abs@ of reducing the number of warnings inrillig1-21/+34
patch files. Up to now, the lines that only provide the context for the patches have been checked for absolute pathnames and the like. Now, only those lines that really add something to the patched file are checked. The context lines are checked when the -Wextra option is given. While here, added some comments to help me understand the code that I wrote years ago.
2009-02-14Remind the package developers that AUTO_MKDIRS is more convenient thanrillig1-9/+15
using the INSTALL_*_DIR commands or the INSTALLATION_DIRS variable. Suggested by abs@ on tech-pkg@.
2009-01-26Packages that install *.desktop files should includerillig1-3/+14
sysutils/desktop-file-utils/desktopdb.mk. Suggested by Matthias Drochner.
2009-01-26Added but disabled a check that tests whether the PKGNAME and therillig1-1/+6
package directory match. There is much work to do until this can be enabled.
2008-12-21Warn about missing PKG_DESTDIR_SUPPORT definition. Every package shouldrillig1-1/+5
have one.
2008-12-15TOOLS_DEPENDS.* names a dependency, and all the directories that arerillig1-2/+8
mentioned in it must actually contain a Makefile.
2008-12-14Changed one of the explanations to be more permissive. Fixed arillig1-3/+3
grammatical mistake in the same sentence.
2008-12-05Make complaints about hicolor icon themes directories errors.wiz1-2/+2
Ok rillig
2008-12-04Added explicit checks for share/icons/hicolor directories in PLISTs, asrillig1-1/+7
suggested by wiz.
2008-12-02Removed unused code. Changed one constructor call to match the patternrillig1-56/+5
of all the others. Explained how to get an overview of the code.
2008-11-30Banned the warnings about SUBST_* groups into the -Wextra option, sincerillig1-18/+18
they are used less strict than pkglint wants them.
2008-11-24Allowed pkglint to check doc/CHANGES-* files individually.rillig1-26/+34
2008-11-19Fixed the (hopefully) last issue with the downgrading warning.rillig1-4/+8
2008-11-18It's pretty tricky to get the bmake substitution right. At least ifrillig1-2/+7
you're a lazy programmer. Now the ${DISTNAME:S...} is interpreted correctly.
2008-11-18Get rid of the false positive warnings for downgrading, by doing morerillig1-1/+8
magic to the PKGNAME and DISTNAME in the package Makefile. Thanks, wiz, for insisting on this.
2008-11-18Emit a note instead of a warning when the :Q operator is used in placesrillig1-6/+12
where it isn't necessary. The :Q operator is necessary for URLs, since they may contain ampersands.
2008-11-18It is not necessary to save the whole text of the package Makefilerillig1-44/+32
including all included files. By now, all checks are done by checking individual lines, not the whole text.
2008-11-18The PKGREVISION is included in the version comparison, to fix the bogusrillig1-4/+17
warning that a package "is being downgraded from 1.0.0nb5 to 1.0.0". Disabled the note saying that in shell variable assignments, there don't need to be double quotes around backticks. In some cases they need to be there.
2008-11-06Only check doc/CHANGES-* starting with 2008, as suggested by OBATA Akiorillig1-2/+2
on pkgsrc-changes. TODO: Discuss whether the old files should be converted to the common format or just be left as they are.
2008-11-04Fixed three warnings, which have been reported by Mark Davies.rillig1-2/+2
2008-11-04The macro __NetBSD_Prereq__ should not be used.rillig1-8/+13
Extended the spell checker for variants of __NetBSD_Version__.
2008-11-04Added a check that detects a downgrade of a package. To do this, itrillig1-1/+110
loads the changes in doc/CHANGES-*.
2008-10-20Moved all explaining texts to the beginning of a line, so they stand outrillig1-200/+199
from the rest of the code.
2008-10-20Removed the experimental --klickibunti option and everything that wasrillig1-383/+8
only there to support this option. Maybe I will reinvent the advanced autofix code someday, hopefully in a programming language that provides more error checking than Perl.
2008-10-20Replaced all instances of "=~ qr" with "=~ m", and all instances ofrillig1-317/+317
"!~ qr" with "!~ m", to work around a memory leak in Perl 5.10.0. (See Perl bug #59994 or just run perl -e 'while(1){qr""}'.) This change also speeds up pkglint by around 15 percent, although I noticed that updating from Perl 5.8.8. to 5.10.0 slowed down pkglint by about 2 percent.
2008-10-18Fixed another "closedir() on undefined".rillig1-12/+6
Made the code around PLIST.* variables prettier.