summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
AgeCommit message (Collapse)AuthorFilesLines
2018-04-06pkgtools/pkglint: update to 5.5.8rillig5-6/+10
Changes since 5.5.7: * Enable the check for variable order in Makefiles by default.
2018-03-30Revbump all Go packages after 1.10.1 update.bsiegert1-1/+2
ok wiz@ for committing during freeze
2018-03-25pkgtools/pkglint: remove duplicate filesrillig3-791/+2
The definitions from globaldata.go had been moved to pkgsrc.go. Having these definitions twice led to compile errors. While here, the file package_test.go doesn't need to be patched anymore since it gets its @VERSION@ from the constants defined in pkglint.go.
2018-03-24Update pkglint to 5.5.7rillig35-231/+1399
Changes since 5.5.6: * When pkglint warns about files that are accidentally executable, it offers to fix the file permissions. * Warn about ${HOMEPAGE:=repository/}, since the := modifier should only be used with MASTER_SITES. * When the distinfo file is missing, suggest setting NO_CHECKSUM. * Several refactorings.
2018-03-04pkgtools/pkglint: update to 5.5.6rillig27-347/+840
Changes since 5.5.5: * Only offer explanations if an explainable diagnostic has actually been logged. * Clean up code. * Improve a few diagnostics. * In any Makefile, treat documented variables as used. This prevents warning about defined but unused variables. * Add support for some variables not previously known to pkglint.
2018-03-04Revbump all Go packages after Go 1.10 update.bsiegert1-1/+2
2018-02-19pkgtools/pkglint: update to 5.5.5rillig35-470/+893
Changes since 5.5.3: - Removed check for PERL5_PACKLIST, since it was not fixable by the package author. - Completely rewrote the check for ordering variables in simple package Makefiles. Now it reports the variables in the correct order instead of just saying "this above that" for a few variables. - Lots of code cleanup and documentation.
2018-01-28pkgtools/pkglint: update to 5.5.3rillig21-147/+652
Changes since 5.5.2: * Fixed lots of bugs regarding autofixing variable assignments in continuation lines. * Fixed checking of MESSAGE files, which also get fixed now. * In variable assignments, commented assignments are aligned too. * Fixed a crash when checking an empty patch file. * The :Q modifier is only checked on predefined variables, to prevent the --autofix mode from removing :Q from user-defined variables. * Fixed lots of bugs in PLIST autofixing: relevant lines had been removed, and the sorting was not correct.
2018-01-28pkgtools/pkglint: update HOMEPAGErillig1-2/+2
2018-01-27pkgtools/pkglint: Update to 5.5.2rillig43-1904/+3324
Changes since 5.5.1: * Fixed command line parsing for the --only option. * Improved alignment of variable values in Makefiles. * Code cleanup: better abstraction in the tests.
2018-01-13pkglint: Update to 5.5.1rillig45-864/+1477
Changes since 5.5: * Allow filtering log messages by keyword (--only) * In --autofix and --show-autofix mode, show only fixable diagnostics * When called with --source, show the source below the diagnostics * Don't warn about USE_LANGUAGES in ../../mk/compiler.mk * Fix autofix for .gz in PLIST
2018-01-10pkglint: Update to 5.5rillig8-66/+277
Changes since 5.4.26: SUBST blocks are now checked correctly even if they contain conditionals like .if ... .elif ... .endif. AUTO_MKDIRS is only suggested for those directories that actually appear in the PLIST since other directories are not affected by this variable.
2018-01-07Updated pkglint to 5.4.26.rillig14-65/+133
Changes since 5.4.25: * When autofixing a patch, fix the corresponding distinfo file as well. * Properly parse ${VARNAME:[\#]}; the # was interpreted as a comment before. * Don't add unnecessary :Q to PKG_OPTIONS and related variables. * Don't warn about missing manual pages. While Debian and other distributions do this work, pkgsrc keeps the packages as original as possible. * Autofix redundant ".gz" for manual pages in PLISTs.
2018-01-07Updated pkglint to 5.4.25.rillig14-42/+232
Changes since 5.4.24: * More specific warning for "exitcode with pipe shell commands" * Don't warn that the echo in "echo | sed" could fail * Allow packages to define custom make targets * Don't warn about a misplaced LICENSE when a package doesn't define it * Skip .git directories * Reduce number of hicolor-icon-theme error messages in PLIST files * Remove MKCRYPTO, USE_CRYPTO, CRYPTO variable definitions
2018-01-02pkglint 5.4.24: remove references to crypto restrictions.maya2-5/+2
Discussed with rillig.
2018-01-01Updated pkglint to 5.4.23.rillig4-52/+91
Changes since 5.4.22: Only autofix PLIST sorting in simple cases. Before this version, pkglint sorted the PLIST even when it contained unresolved variable references like ${IMAKE_MAN_DIR}, which resulted in strange and unintuitive orders. These complicated files are left for human inspection.
2018-01-01Updated pkglint to 5.4.22.rillig39-413/+322
Changes since 5.4.21: * Refactoring: moved packages line and linechecks back into main * Fixed panic when autofixing package Makefiles * Removed apache22 * Added a bit of inline documentation
2018-01-01apache22: remove, it was eol'd in June 2017wiz1-3/+3
Remove packages that only work with apache22. Remove apache22 references.
2017-10-17Some files are moved. Fix buildryoon2-125/+0
2017-10-08Updated pkglint to 5.4.21rillig25-112/+287
Changes since 5.4.20: * Removed obsolete kde3 check * Removed obsolete WindowMaker variables * Removed postgresql91 * Removed teTeX * Removed old Emacs versions 22, 23, 24 * Allow db6 * Allow c++11 in USE_LANGUAGES * New check for GNOME icon themes * Added CHECK_RELRO variables * Refactoring: new package linechecks * Refactoring: regex.Pattern
2017-10-02pkglint*: Start sentence with a capital letterwiz1-1/+1
From Thomas Orgis in private mail.
2017-09-29emacs22*, emacs23*, emacs24*: remove unmaintained emacs versionswiz1-3/+3
As announced in https://mail-index.netbsd.org/pkgsrc-users/2017/09/11/msg025563.html This still leaves emacs20, emacs21, and the current version, emacs25.
2017-09-06Remove teTeX* packages and references to them.wiz1-3/+0
teTeX was desupported in 2006, and we have texlive in pkgsrc since 2009.
2017-07-27c++11 is valid for USE_LANGUAGES.wiz2-3/+3
Bump PKGREVISION.
2017-07-22Sprinkle CHECK_RELRO_SKIP on go packages.wiz1-1/+4
go14 has no relro support AFAICT. go-1.8.3 has if you use -buildmode=pie, but it claims it's not supported on Linux. Disable relro checking for go packages until bsiegert has time to look at this.
2017-05-24Removed databases/postgresql91adam1-1/+1
2017-05-14Allow db6 in BDB_* variables.wiz2-5/+5
Bump PKGREVISION.
2017-04-16Remove references to WINDOWMAKER_{OPTIONS,THEMES}khorben1-2/+0
From what I can tell, this is no longer in use.
2017-04-13Revbump all Go packages after the Go 1.8.1 update.bsiegert1-1/+2
2017-04-05Updated pkglint to 5.4.20.rillig2-3/+3
Changes since 5.4.19: * Updated allowed Python versions to include py36.
2017-03-17Updated pkglint to 5.4.19.rillig3-7/+1724
Changes since 5.4.18: * Added generated Go yacc source files to CVS, since starting with Go 1.8 the yacc tool is no longer part of the core distribution. The dependency on yacc would pull in all the Go tools, which are quite a few, and some of these do not currently build since they depend on go-crypto. See https://mail-index.netbsd.org/tech-pkg/2017/03/17/msg017900.html
2017-03-16pkglint 5.4.18.bsiegert3-4/+5
Changes: - go tool yacc -> goyacc to fix building with Go 1.8 (PR pkg/52081).
2017-01-29Removed expecter.go, which had been moved to files/textproc.rillig1-98/+0
2017-01-29Refactored the code into separate packages. No functional changes.rillig50-903/+1319
2017-01-18Updated pkglint to 5.4.17.rillig4-3/+42
Changes since 5.4.16: * allow multiple definitions for MASTER_SITES in the package Makefile, without triggering a warning about wrong ordering. See https://mail-index.netbsd.org/tech-pkg/2017/01/18/msg017698.html
2017-01-17Updated pkglint to 5.4.16.rillig55-2598/+3217
Changes since 5.4.15: * updated vardefs from mk/defaults/mk.conf from v1.118 (2006) to v1.269 Gone: * PKG_SUFX * USETBL * PKGSRC_SHOW_PATCH_ERRORMSG * USE_XPKGWEDGE * PKGVULNDIR Adjusted: * USE_GAMESGROUP * BIN_INSTALL_FLAG -> BIN_INSTALL_FLAGS * fixed license parsing to be more realistic (the previous version didn't handle parentheses correctly) * lots of housekeeping * moved some code to separate packages, allowing re-use * separated Line checks into LineChecker type * separated MkLine checks into MkLineChecker type * made Line an interface, for further refactorings
2017-01-11Fix build under Mac OS X where "pax" doesn't seem to automaticallytron1-1/+2
create the target directory. We therefore do that manually.
2017-01-01Updated pkglint to 5.4.15.rillig5-4/+24
Changes since 5.4.14: * Definitions for CONF_FILES should always come in pairs (pkg/37284)
2017-01-01Cleaned up and refactored code.rillig32-589/+606
The getopt and pkgver code have been extracted to separate packages to make them reusable. Several other functions have been moved to make the structure easier to understand: * dir.go and main.go have been moved to pkglint.go * utility functions from pkglint.go have been moved to mkline.go Now pkglint.go contains only high-level code.
2017-01-01Fix build warning on DragonFly.rillig1-2/+2
Fixes pkg/51713
2016-12-17Updated pkglint to 5.4.14.rillig4-7/+32
Changes since 5.4.13: * Pkglint can fix $(VARIABLES) in parentheses to ${VARIABLES} in braces automatically
2016-12-13Updated pkglint to 5.4.13.rillig26-213/+461
Changes since 5.4.12: * Added check for unintended # comments, especially in HOMEPAGE * Added check for quotes in COMMENT * Fixed hardcoded package versions for PHP, Python, Lua, etc. * Code cleanup in the tests
2016-12-04Revbump Go packages after 1.7.4 update.bsiegert1-1/+2
2016-12-04Updated pkglint to 5.4.12.rillig32-704/+636
Changes since 5.4.11: * warn when PKGSRC_COMPILER is compared with "==", since it may be a chain of compilers * warn about listing Python .egg-info files directly in PLIST files, since lang/python/egg.mk takes care of this * code cleanup: unify Error{0,1,2,3} into Errorf to make understanding the code easier; use interface{} for MkLine data; use regular expression instead of handwritten matching code, since one line is easier to read than 50
2016-11-14Updated pkglint to 5.4.11.rillig13-42/+197
Changes since 5.4.10: * Replaced regular expression with hand-written matching code, since it is 30 times as fast. * Reduced number of syscalls by remembering os.Lstat results and CVS/Entries. * Reduced number of syscalls by querying the current user only once. * Added warning for comparing ${PKGSRC_COMPILER} == "clang", which should rather be ${PKGSRC_COMPILER:Mclang}. * Added variable definitions for NOT_PAX_ASLR_SAFE and NOT_PAX_MPROTECT_SAFE.
2016-11-01Updated pkglint to 5.4.10.rillig10-49/+280
Changes since 5.4.9: * Check for mismatch between conditional and unconditional includes of other files (mostly depending on PKG_OPTIONS or OPSYS) * Check that PLIST files contain "man" instead of "${PKGMANDIR}"
2016-10-29Revbump packages depending on Go after the Go 1.7.3 update.bsiegert1-1/+2
2016-10-03Remove some dead code, python-3.3 is no more.wiz1-1/+1
2016-09-30pkglint has hardcoded php55 referenced a couple times.reed3-5/+5
That package was removedi and caused pkglint errors like: ERROR: ../../lang/php/ext.mk:25: Cannot read "./../../lang/php55/Makefile.common". So update to later php56. I don't understand why the ChecklinesDistinfo function in distinfo.go has an exception for the php patches directory but changed there too. I received an okay on packages@ list. Note that the make check for the pkglint package failed for me but the pkglint worked for me in my tests of some php using packages. Increase version of pkglint.
2016-09-17Updated pkglint to 5.4.9.rillig2-3/+6
Changes since 5.4.8: * Disallow lib/charset.alias in PLIST. This file may only be installed by converters/libiconv. (That package is currently broken, since it only touches that file when installing from source, not from a binary package. But pkglint is prepared for it to be fixed.)