summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2016-01-30Update to 1.1.markd2-3/+5
Teach about more licenses.
2016-01-29Updated pkglint4 to 1.161rillig1-6/+8
Changes since 4.160: * Changed OWNER * Made the package work with PKGSRC_RUN_TEST=yes
2016-01-28Add LICENSE (original-bsd).jperkin1-1/+2
2016-01-27Updated pkglint to 5.3.4rillig23-70/+112
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.3rillig5-15/+51
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-24Sort sections; new sentence, new line. Fix Dt argument.wiz1-13/+16
2016-01-24Add texlive2pkgmarkd1-1/+2
2016-01-24Add texlive2pkg 1.0markd7-0/+373
Tool to automate initial steps in building a texlive package
2016-01-24Fixed accidental RCS Id in source coderillig1-1/+1
2016-01-24Updated pkglint to 5.3.2rillig8-79/+358
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-21Fix syntax errortron1-2/+2
2016-01-21Explicitly disable libarchive's LZMA support if no builtin XZ was foundjoerg1-1/+9
or if the user requested it to be disabled. Helps on systems with lzma.h and no usable library.
2016-01-21Prepare for multiple users of LIBARCHIVE_CONFIGURE_ARGS by using append.joerg1-2/+2
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.1rillig2-7/+10
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-12Added version selection based on the platformrillig1-0/+14
2016-01-12Small cleanup after version 5.3rillig2-3/+3
2016-01-12Updated pkglint to 5.3rillig70-4798/+7517
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.
2016-01-10Fix wrong character count in strncmp. From Kamil Rytarowski inbsiegert2-4/+4
PR pkg/49761.
2015-12-30Add Bitrig and MirBSD to the list of oses.dholland2-4/+4
2015-12-30Add Bitrig and MirBSD to the list of OSes.dholland2-4/+4
2015-12-29Add support for go packages to createbuildlink.wiz2-4/+14
Bump version.
2015-12-29Use canonical relative path.dholland1-2/+2
2015-12-27Add more library & headers from OpenBSD-current 11/12/2015 / Bitrigsevan9-11/+54
Rev bump
2015-12-27Include basic package creation logic in the bootstrap version ofjoerg6-18/+49
pkg_install. Use this with PKG_COMPRESSION=none to convert all of the bootstrap to USE_DESTDIR=yes.
2015-12-27Refactor Makefiles slightly to remove redundancy between normal andjoerg3-13/+15
bootstrap build.
2015-12-25Avoid matching RCS ID patterns.joerg2-2/+2
2015-12-25Avoid duplicated RCS IDs forcing permanent rebuilds.joerg2-4/+4
2015-12-13Always redefine TAILQ_FOREACH_REVERSE. Mac OS X Tiger has a version withjoerg1-3/+2
the third and fourth argument swapped.
2015-12-11Fix build under the environment that has no statvfs.ryoon1-3/+3
Fix my old mistake, logic inversion.
2015-12-10Bump php default version to 55 to follow pkgsrc.wiz4-7/+7
Bump version.
2015-12-07pbulk-base-0.51: Extend network support for name resolution and IPv6joerg10-142/+212
(where applicable).
2015-12-05Code cleanuprillig5-144/+157
Makefile lines are now distinguished from ordinary lines. Running "pkglint -r -Wall -Call" on the whole pkgsrc tree produces the same result as before, except for the reporting of internal pkglint errors, where pkglint doesn't know how to parse certain shell commands. Therefore no version change.
2015-12-05Extend PYTHON_VERSIONS_INCOMPATIBLE to 35adam2-4/+4
2015-12-05Code reorganization, unit test for loading tool definitionsrillig11-71/+131
A run of "pkglint -r -Wall -Call" over the whole pkgsrc tree produces identical output as before, therefore the version number is kept.
2015-12-05Updated pkglint to 5.2.2.rillig6-23/+23
Changes since 5.2.1: * Fixed wrong error messages about "Unknown Makefile line format"
2015-12-05Updated pkglint to 5.2.1.rillig22-244/+240
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-05Split PlistLine.checkPathname into smaller functionsrillig12-102/+123
2015-12-05Code cleanup: converted ALL_CAPS to camelCaserillig27-1102/+1112
2015-12-05Updated pkglint to 5.2.rillig32-348/+583
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-03Remove target files before symlinking. Fixes bootstrap on Solaris 9.jperkin1-1/+3
2015-12-02Updated pkglint to 5.1.rillig17-55/+180
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-30Revert. Committer was explicitly asked to not commit that change as itjoerg2-8/+4
is incompletely and incorrect.
2015-11-30pbulk-base-0.51: Allow symbolic host names in distributed case.asau2-4/+8
2015-11-25Use Cwd::realpath() for the -[KMP] flags.leot2-7/+7
Fixes PR pkg/50444 reported by dholland@ and also fixes various possible problems when relative paths are used.
2015-11-25Explicitly added conflict with pkglint4rillig1-1/+2
2015-11-25Reimported pkglint-4.518 from pkgtools/pkglint as pkglint4rillig38-1/+11410
The Perl version of pkglint (pkglint<5.0) runs on all platforms that are supported by pkgsrc. Not so the Go version (pkglint>=5.0). To support development of packages on all platforms, this version is provided, and it will be supported equally. Its output differs a bit from pkglint>=5.0, but the basic checks are the same.
2015-11-25Updated pkglint to 5.0rillig97-10904/+10572
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-25Remove mk/find-prefix.mk usage from the pkgtools category.jperkin1-12/+5
The find-prefix infrastructure was required in a pkgviews world where packages installed from pkgsrc could have different installation prefixes, and this was a way for a dependency prefix to be determined. Now that pkgviews has been removed there is no longer any need for the overhead of this infrastructure. Instead we use BUILDLINK_PREFIX.pkg for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the dependency is coming from pkgsrc. Provides a reasonable performance win due to the reduction of `pkg_info -qp` calls, some of which were redundant anyway as they were duplicating the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-24Updated pkglint to 4.158rillig1-2/+2
This mainly fixes wrong patch detection when checking distinfo.