summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2020-03-21Revbump all Go packages after go113 update.bsiegert1-1/+2
2020-03-21pkgtools/check-portability: automatic test, refactoringrillig4-8/+67
2020-03-18pkgtools/pkglint: increase performancerillig2-6/+8
2020-03-18pkgtools/pkglint: update to 19.4.12rillig24-182/+719
Changes since 19.4.11: Redundant additions to BUILDLINK_API_DEPENDS and BUILDLINK_ABI_DEPENDS get warnings since they may have been needed in the past but the dependent package has increased its required version numbers over time.
2020-03-15pkgtools/pkglint: update to 19.4.11rillig16-58/+357
Changes since 19.4.10: The use of PKG_OPTIONS and PKG_BUILD_OPTIONS in buildlink3.mk and other files is checked for common mistakes. Checking the indentation of a continuation line no longer crashes in edge cases.
2020-03-14pkgtools/check-portability: fix function namesrillig1-5/+5
2020-03-14pkgtools/check-portability: update to 19.4.3rillig3-5/+7
Changes since 19.4.2: Fixed a crash when a file started with an empty line.
2020-03-13pkgtools/check-portability: elimitate common subexpressionrillig1-2/+2
2020-03-13pkgtools/check-portability: update to 19.4.2rillig2-4/+13
Changes since 19.4.1: Fixed an assertion error when reading binary file, reported by tnn via private mail.
2020-03-13pkgtools/check-portability: reduce dependenciesrillig1-5/+5
Since this is a very basic program, it should not depend on anything more complicated, to avoid creating cyclic dependencies.
2020-03-12pkgtools/check-portability: explain how to fix the errorsrillig1-7/+22
2020-03-12pkgtools/check-portability: make explanation for [[ more preciserillig1-4/+4
2020-03-12pkgtools/check-portability: minor stylistic correctionsrillig1-6/+5
2020-03-12pkgtools/check-portability: update to 19.4.1rillig8-169/+221
Changes since 19.4.0: * Makefile.am and Makefile.in are checked even though they don't start with a #! line. * Only shell programs with an interpreter that is clearly a POSIX shell are checked. Before, there was a blacklist of interpreters to be skipped. * Lots of refactorings and code cleanups. * Some additional test files.
2020-03-12pkgtools/check-portability: fix build for partly-privileged moderillig1-6/+5
2020-03-11pkgtools/check-portability: fix exclusion for test filesrillig1-2/+2
2020-03-11pkgtools/check-portability: add checks from check-portability.awkrillig3-3/+168
This makes those checks redundant as soon as check-portability is installed. This is only a temporary solution until the test phase is over.
2020-03-11pkgtools/check-portability: improve local function namesrillig1-9/+16
2020-03-11pkgtools/check-portability: check extracted files for portability issuesrillig7-1/+442
Checks whether the given files use features of programming languages that are not portable to a wide range of platforms. See mk/check/check-portability.mk. https://mail-index.netbsd.org/tech-pkg/2020/03/10/msg022787.html This new check is not active by default, and the package is not forced to be installed. This will be done after getting some experience in practical cases. The code has been tested by extracting about 1.7 GB of pkgsrc distfiles and scanning for lines containing both "[[" and "]]".
2020-03-11Select fields explicitly from df.depends in make.df.depends().brook1-1/+3
The function make.df.depends() constructs a dataframe for DEPENDS lines in the updated Makefile. That dataframe is combined with other dataframes for different portions of the Makefile. Consequently, all the dataframes must have the same fields or combining with rbind() fails. Previously, the dataframe had the wrong set of fields; this explicitly selects the correct set that matches the other dataframes so that they can all be combined correctly.
2020-03-10librsvg: update bl3.mk to remove libcroco in rust casewiz2-4/+4
recursive bump for the dependency change
2020-03-08revbump: 2.15: update check-cvs-diff for current ruby and python versions.wiz2-14/+13
2020-03-08*: recursive bump for libffiwiz3-6/+6
2020-03-07pkgtools/pkglint: update to 19.4.10rillig22-142/+480
Changes since 19.4.9: In continuation lines with long values, pkglint no longer suggests to move the continuation backslash in the middle of the variable value, as that would be impossible. Warn when a shell command is assigned to a variable that only takes pathnames. Shell commands can contain command line options, and these are not pathnames. The TOOLS_PLATFORM.tool variables are not defined on every platform. When these variables are used outside an OPSYS check, a warning lists the platforms where the tool is undefined or only defined conditionally.
2020-03-05Define RPKG, not rpkg, in the environment for R2pkg.Rbrook1-2/+2
When reading the environment, R2pkg.R expects RPKG to be the name of the R package. Fix the inadvertent use of lower case in the variable name.
2020-03-05Add a hyphen (-) to each stored argument so recursive calls work.brook1-10/+10
In order for recursive calls of R2pkg to work, they must receive the same set of arguments as the original. Previous argument handling stripped the hyphen (-) from each argument; this explicitly restores it.
2020-03-01pkgtools/pkg_install: add errno details when remove failsrillig1-3/+3
Before, it wasn't clear why removing the file failed. It could be ENOENT or EPERM or EBUSY, and these lead to different causes. https://mail-index.netbsd.org/pkgsrc-users/2020/02/28/msg030552.html
2020-02-17pkgtools/pkglint: update to 19.4.9rillig8-17/+158
Changes since 19.4.8: Packages that include omf-scrollkeeper.mk even though their PLIST doesn't contain any .omf files will generate an error message, suggesting that the .include line be removed.
2020-02-15pkgtools/pkg_regress: update to 0.6rillig2-4/+4
Changes since 0.5: mktemp does not use a file pattern anymore. That file pattern had the effect that all temporary files had the same name: /tmp/pkg_regress.
2020-02-15pkgtools/pkglint: update to 19.4.8rillig57-816/+944
Changes since 19.4.7: The diagnostic for homepages using FTP is simpler now. When running pkglint recursively on the top-level directory, the inter-package checks (distfile hashes, unused licenses) are enabled implicitly. This way, the only effect of the -Cglobal option is now whether the pkgsrc infrastructure files are checked as well. The check for removed packages that have not been recorded in doc/CHANGES prints the correct lines when pkglint is run with the --source option. Fatal technical errors are no longer treated as diagnostics since they are none. That was an early conceptual mistake, but since these fatal error didn't happen often, it didn't matter. In diagnostics, when referring to other lines, the previously used words before/after have been replaced with above/below to avoid any confusion whether space or time is meant. In CONF_FILES, spaces and quotes are allowed. See https://gnats.netbsd.org/42191. Fixed unintended side-effects when running pkglint --autofix --only. Before, all fixes were applied to the file, whether or not they matched the --only option. Fixed resolution of relative paths of the form ../../category/package when they appeared in an infrastructure file. Lots of refactorings and housekeeping, as usual.
2020-02-05pkgtools/pkglint: update to 19.4.7rillig10-85/+203
Changes since 19.4.6: HOMEPAGE definitions that use http no longer get a warning that they should migrate to https. Those that could be migrated have been migrated, and the remaining homepages are not yet ready, so there's no benefit in having this warning by default. Only in --network mode and when the https site is indeed reachable, the warning is shown. In long continued lines, the continuation backslash should be preceded by a single space. Pkglint had wrongly removed that space in a few cases before.
2020-02-02Revbump all Go packages after go113 update.bsiegert1-1/+2
2020-01-26pkgtools/pkglint: use ASCII-only variant of the preformatted manual pagerillig1-33/+34
2020-01-26pkgtools/pkglint: fine-tune manual pagerillig3-34/+38
2020-01-26all: migrate homepages from http to httpsrillig7-16/+16
pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
2020-01-26pkgtools/pkglint: update manual pagerillig2-7/+14
2020-01-26pkgtools/pkglint: update to 19.4.6rillig18-258/+913
Changes since 19.4.5: Added the --network option, which allows pkglint to use HTTP calls for determining whether the homepage of a package is reachable. Added migration from http URLs to the corresponding https URLs. This is only done if the https URL is indeed reachable or well-known to support https. Added migration from https SourceForge URLs back to http URLs since a previous pkglint run had migrated URLs to non-working https URLs. See https://mail-index.netbsd.org/pkgsrc-changes/2020/01/18/msg205146.html. Added a warning for HOMEPAGE that uses ftp:// since that is not user-friendly. In the same way, download-only host names on SourceForge are not suitable as a homepage since they usually only generate a 404.
2020-01-23pkgtools/pkglint: update to 19.4.5rillig4-3/+59
Changes since 19.4.4: Fixed automatic replacement from http SourceForge URLs to their https counterparts. According to their official documentation, the https URLs are not on the same hosts as before, but on *.sourceforge.io.
2020-01-19pkgclean: check that PKGSRCDIR is a valid directorygutteridge2-4/+10
For those of us who have multiple pkgsrc trees, or move them around, and forget the path gets hard-coded into the shell script, or make a typo when supplying an alternate PKGSRCDIR, and then wonder why nothing gets cleaned.
2020-01-18all: migrate several HOMEPAGEs to httpsrillig17-34/+34
pkglint --only "https instead of http" -r -F With manual adjustments afterwards since pkglint 19.4.4 fixed a few indentations in unrelated lines. This mainly affects projects hosted at SourceForce, as well as freedesktop.org, CTAN and GNU.
2020-01-18pkgtools/pkglint: update to 19.4.4rillig22-143/+457
Changes since 19.4.3: Packages that still use http in their HOMEPAGE URL generate warnings that the URL should use https instead.
2020-01-18*: Recursive revision bump for openssl 1.1.1.jperkin2-2/+4
2020-01-16Mollify pkglint.schmonz1-10/+12
2020-01-16Specify Standard{Out,Error}Path for macOS launchd. Bump version.schmonz2-4/+9
2020-01-16pbulk: add missing backslashwiz1-2/+2
2020-01-15Fix pkg_admin expansion due to lost local change.joerg1-5/+5
2020-01-13pkgtools/R2pkg: remove a left-over debug messagerillig1-2/+1
2020-01-13pkgtools/R2pkg: update to 0.6.4rillig4-7/+16
Changes since 0.6.3: * Fix hardcoded use of bmake.
2020-01-12pbulk-0.67: Support both $NetBSD$ style RCS IDs and digests in +BUILD_INFO.joerg3-8/+17
Bump configuration version for the new pkg_admin field.
2020-01-11pkgtools/pkglint: update to 19.4.3rillig10-12/+161
Changes since 19.4.2: PLIST_VARS identifiers must not contain characters that are interpreted specially in regular expressions. All pkgsrc text files except for doc/pkgsrc.{html,txt} must use the default CVS keyword substitution.