summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2016-06-19USE_CROSSBASE is deprecated, remove it.wiz1-2/+2
Bump version.
2016-06-10Updated pkglint to 5.4.1.rillig1-2/+2
Changes since 5.4.0: * PKG_SKIP_REASON is no longer marked as deprecated, since it still has its value * When PKG_SKIP_REASON is defined depending on OPSYS, suggest to use NOT_FOR_PLATFORM instead. * Check for ROOT_USER/ROOT_GROUP being used in special file permissions; using REAL_ROOT_USER/REAL_ROOT_GROUP is better.
2016-06-05Updated pkglint to 5.4.0.rillig1-3/+3
Changes since 5.3.7: * Replaced the -D... debug options with a single -d * Omitted duplicate diagnostics * Marked the :Q operator unnecessary for some variables * Improved detection of whether bsd.prefs.mk has been included, which fixed unwarranted warnings about load time evaluation of some variables like ${ECHO} and ${SED} * Improved detection for $(VAR) with round parentheses * Fixed allowed locations for several variables * Improved detection for used variables (still not perfect) * Added warning that MASTER_SITES should not be used in HOMEPAGE * Fixed warning about manual patches not being in distinfo * Added a check for missing MASTER_SITE_* variables * Added a check for unfinished url2pkg work * Fixed several wrong warnings
2016-04-10USE_DESTDIR is gone.joerg1-2/+2
2016-03-13Updated pkglint to 5.3.6.rillig1-3/+2
Changes since 5.3.5: * Warn about !empty(${VARNAME}), which should be !empty(VARNAME) * Distinguish ${VARNAME} == "value" and ${VARNAME:Mpattern} * Corrected isQuotingNecessary for some variable types * Generally, parse files from mk/, since they define variables used by packages. This avoids wrong warnings about possible spelling mistakes. * Warn about $(VARNAME) (with parentheses instead of braces) * Warn about missing final @ in ${VAR:@var@...@} * Updated list of hardware architectures * Enabled CPU profiling on NetBSD
2016-02-23Revbump packages that build-depend on Go after 1.6 update.bsiegert1-1/+2
They all build, I checked :)
2016-01-31Updated pkglint to 5.3.5rillig1-2/+2
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-27Updated pkglint to 5.3.4rillig1-2/+2
Changes since 5.3.3: * Added some unit tests * Fixed the Makefile parser to recognize seldomly-used variable modifiers like :S///S/// without intermediate colon or :ts\n * Cleaned up some unit tests * Combined diagnostics that span multiple lines into single-line ones
2016-01-26Updated pkglint to 5.3.3rillig1-2/+2
Changes since 5.3.2: * The -e, -fs, -F options are advertised even when no warnings and errors occurred. In such a case, there were only notes, and some of these can also be autofixed. * Special handling for autoconf{,213} tools, since mentioning these in USE_TOOLS makes available more than just one tool command. * Downgrades from 1.0nb17 to 1.0 are no longer flagged as warnings. * Files in /wip/mk/ are scanned like all other files, to prevent warnings about undefined or unused variables.
2016-01-24Updated pkglint to 5.3.2rillig1-9/+9
Changes since 5.3.1: Alignment of variable values is no longer checked by single line, but by the complete block (e.g. SUBST_*). Pkglint now checks that all variables belonging to a block are indented consistently, so that their values are aligned nicely. Since pkglint does not report warnings, but only notes, and since it can fix them automatically, the burden on the package developers will be very low. Especially, since these notes are only printed when pkglint is called with the -Wspace or -Wall options. Also, pkglint supports running its unit tests now.
2016-01-18Revbump all Go packages after the go-1.5.3 security update (hint: staticfhajny1-1/+2
linking).
2016-01-16Updated pkglint to 5.3.1rillig1-2/+2
Changes since 5.3: * disabled CPU profiling on NetBSD, since it crashes without any output; see https://github.com/golang/go/issues/13914
2016-01-12Updated pkglint to 5.3rillig1-3/+3
Changes since 5.2.2.2: * Makefile variables The warnings about missing permissions sound more natural than before and give a hint for alternative operators (e.g. set-default instead of append), or an alternative file where setting this variable is allowed instead (e.g. PKGREVISION may not be set in Makefile.common, but in Makefile it is ok). Warnings about "unknown" allowed permissions are not shown anymore, since they didn't provide any benefit. To see them again, pkglint must be run with the -Dunchecked option. User-defined variables may be used by builtin.mk. They may also be used during load time, not only during run time, under the assumption that in most cases the bsd.prefs.mk has already been loaded. Some individual variables may be defined or used in places where this was not allowed before. CHECK_BUILTIN.*, BUILDLINK_TARGETS, TOOLS_DEPENDS.*, BUILDLINK_DEPMETHOD.*, SUBST_CLASSES. A new parser for Makefile expressions detects and reports more mistakes than bmake itself. Currently it is only used to check the basic syntax; more applications are possible. * PLIST In PLIST files, conditionals of the form ${PLIST.*} are recognized and are not part of the pathname. This allows pkglint to better check for missing manual pages and correctly sorted PLIST files. In --autofix mode, pkglint can sort PLIST files, which makes these rather annoying warnings easy to fix. No more warnings for man pages whose filename doesn't match exactly the section, e.g. man/man3/exit.3c. * Patches The code for checking patch files has been completely rewritten, so that it is easier understandable and well-structured. As an additional benefit, it also became faster. Support for context diffs has been dropped to a minimum, since they are not popular anymore. Pkglint no longer warns about missing trailing whitespace in a line, since all patch programs can handle these lines. It also doesn't request empty lines between multiple diffs in a single file, since that is simply not necessary. Pkglint is picky when a patch file continues after the diff with some text that still looks like a diff, since that means the patch doesn't do what it looks like on first sight (example: audio/faad2/patches/patch-au). * Distinfo When a patch file listed in distinfo cannot be found in the filesystem, this is reported clearly instead of complaining about missing SHA512 hashes (example: audio/libopus). The inter-package distinfo check that verifies whether a distfile has different hashes has been enabled. It had been disabled before, but unintentionally so. * Misc - The check for COMMENT has been updated to reflect the changed default value from url2pkg. - BUILDLINK_API_DEPENDS.* may be set in buildlink3.mk, even if the package is not the current one. (The other variables may be only set for the current package.) - In shell commands, the escape sequence \. (and similar ones, which are often seen in sed(1) commands) no longer produces a warning, since the different shells handle these escape sequences consistently. (It is the echo(1) implementations that actually differ, therefore this warning was superfluous.) - Compiler flags in backticks (typically `pkg-config --cflags`) are properly recognized. - Internal pkglint errors when parsing shell commands have been fixed. - No more warnings about PKGCONFIG_FILE.* being defined but unused. - Dependencies of the form pkgbase>=1.0<5.0 are recognized. - Diagnostics use quotes more often to indicate the placeholders. - The type of GENERATE_PLIST has been changed from List of ShellWord to ShellCommands, since that is what the variable is really about. - The type ShellCommand used to mean "a shell command line in a Makefile", which was confusing. Now it means what the name says, which reduces the wrong warnings for variables like CC (example: x11/kdebase3/options.mk). - Improved buildlink3.mk checks to generate more helpful diagnostics. - Fixed the parsing of dependency patterns, so that all but the most exotic ones are properly recognized. - Fixed the parsing of shell variables of the form ${var%.c}. - Updated the check for the default COMMENT from url2pkg. - Many more small improvements. - Performance has improved again, though only a little bit. - Unit test coverage has increased from 64.2 % to 78.9 %. This fixes most of the points mentioned in PR pkg/46570.
2015-12-30Add Bitrig and MirBSD to the list of OSes.dholland1-2/+2
2015-12-10Bump php default version to 55 to follow pkgsrc.wiz1-2/+2
Bump version.
2015-12-05Updated pkglint to 5.2.2.rillig1-2/+2
Changes since 5.2.1: * Fixed wrong error messages about "Unknown Makefile line format"
2015-12-05Updated pkglint to 5.2.1.rillig1-2/+2
Changes since 5.2: * Fixed wrong warning about patches/CVS being an unrecorded patch * pkgsrc-wip also needs NetBSD as RCS Id, instead of Id * Code cleanup: grouped the checklineMk functions into one file
2015-12-05Updated pkglint to 5.2.rillig1-2/+2
Changes since 5.1: * Fixed distinfo check for unrecorded patch files (thanks, wiz) * Command line options parser accepts abbreviations (--a instead of --autofix) * Realistic unit tests using temporary files * General code cleanup (using gometalinter)
2015-12-02Updated pkglint to 5.1.rillig1-2/+2
Changes since 5.0: * Fixed --autofix mode (it hadn't been enabled before) * The --autofix mode now advertises itself when it can do something * The --autofix mode now adds missing empty lines to patch files (only in the leading text section, not in the actual patch content) * Made --autofix code simpler ({prepend,append}{Before,After} was not really needed) * Fixed unit tests to report invalid command lines * Added some more unit tests
2015-11-25Explicitly added conflict with pkglint4rillig1-1/+2
2015-11-25Updated pkglint to 5.0rillig1-45/+17
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-24Updated pkglint to 4.158rillig1-2/+2
This mainly fixes wrong patch detection when checking distinfo.
2015-10-19Bump version for recent fixes.wiz1-2/+2
2015-07-03Update pkglint to 4.156 - "8" is also a valid USE_JAVA2 valueabs1-2/+2
2015-06-14Fix some perl-5.22 warnings.wiz1-3/+2
Bump version.
2015-06-12Recursive PKGREVISION bump for all packages mentioning 'perl',wiz1-1/+2
having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
2015-05-03Add BOOTSTRAP_PKG and USE_GCC_RUNTIME variables to makevars. Patch frombsiegert1-2/+2
Olivier Duclos on tech-pkg. Bump package version.
2015-03-11Removed the comment about updating the version from the Makefilerillig1-4/+1
I had used the pkglint_current tag in the past to summarize the changes whenever I bumped the version number. In the last 7 years, this hasn't been done, so there seems to be no need for it.
2015-03-11Fixed a wrong warning for the HOMEPAGE variablerillig1-2/+2
WARN: Makefile:9: Please use ${MASTER_SITE_GITHUB:=glmark2/glmark2} instead of "https://github.com/glmark2/glmark2". This warning is wrong because HOMEPAGE is neither a plural variable nor does it contain a "fetch URL". To fix this, there is a new data type FetchURL, which has one more check than the existing data type URL, namely the MASTER_SITES abbreviation. The existing definitions in makevars.map have been updated accordingly to the appropriate data types. Note: This patch is not perfect, since ideally only variables of type "List of FetchURL" should be suggested to be replaced with MASTER_SITES, but since currently all these variables are actually "List of FetchURL" and not simply "FetchURL", this should be fine.
2015-03-09Add GITHUB_*. Bump version.wiz1-4/+4
2015-02-01Allow https in sites.mk.wiz1-2/+2
Bump version.
2015-01-01Add BROKEN_ON_PLATFORM and BROKEN_EXCEPT_ON_PLATFORM and bump version.dholland1-2/+2
2014-12-06Don't complain about exact (non-range, non-wildcard) dependencies.schmonz1-2/+2
Now that mail/qmail-run "looks fine", replace it with another of my errant packages as a test case. Bump version.
2014-11-23Add emacs25, xemacs21[45]nox for makevars.mapmef1-2/+2
Thanks wiz@ for OK. I don't believe we need emacs25nox ;-(
2014-10-09Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.wiz1-3/+1
2014-10-09Bump version.wiz1-2/+2
2014-09-08Allow '+' in another place checking for package names. Needed e.g. for gtk2+.wiz1-2/+2
Bump version.
2014-08-07Add PYTHON_VERSIONED_DEPENDENCIES. Bump version.wiz1-2/+2
2014-06-25Add LIBTOOL_REQD. Bump version.wiz1-2/+2
2014-06-19Sync mysql version list with reality.wiz1-2/+2
From John Nemeth. Bump version.
2014-06-10pkglint-4.142: Remove apache13 and apache2 values.joerg1-2/+2
2014-06-10pkglint-4.141: PAM_ACCEPTED and PAM_TYPE are gonejoerg1-2/+2
2014-05-31Remove giflib/libungif special cases. Bump version.wiz1-2/+2
2014-05-30Bump version instead of PKGREVISION.wiz1-3/+2
Noted by Wen Heping.
2014-05-29Bump for perl-5.20.0.wiz1-1/+2
Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
2014-05-06Add REPLACE_LUA. Bump version.wiz1-2/+2
2014-03-14Bump PKGREVISION to refrect recent changes.obache1-2/+2
2014-03-02No need to define fake DISTNAME and empty MASTER_SITES and DISTFILES now.obache1-5/+3
Just define PKGNAME and use it.
2014-02-17dd REPLACE_CSH. Bump version.wiz1-2/+2
2014-01-13pkglint now warns about broken dependencies like >=x.y.*cheusov1-2/+2
Version->4.135