summaryrefslogtreecommitdiff
path: root/pkgtools
AgeCommit message (Collapse)AuthorFilesLines
2022-08-04lintpkgsrc: allow uppercase 'nb' in version numbersrillig2-35/+29
Just for symmetry with the pkg_install implementation; in practice the 'nb' is always lowercase. Merge most test cases into the versions table, leave a few as simple examples.
2022-08-03lintpkgsrc: fix parsing of version numbers that include lettersrillig3-7/+90
2022-08-03lintpkgsrc: fix off-by-9 bug in version comparison (since today)rillig2-4/+6
2022-08-03lintpkgsrc: fix version comparison for adjacent lettersrillig2-4/+9
Previously, lintpkgsrc treated the version numbers 1.0aa and 1.0ab the same, contrary to pkg_install.
2022-08-03lintpkgsrc: clean up and condense comparison of package versionsrillig2-43/+24
One less 'eval' to worry about.
2022-08-03lintpkgsrc: rename pkg to pkgbase and ver to pkgversionrillig2-21/+23
The word 'pkg' has too many meanings to be useful in identifiers; use the standard terminology instead.
2022-08-03lintpkgsrc: refactor PkgList internals to be more descriptiverillig1-32/+34
The indirection layer through '_pkgs' was not necessary.
2022-08-03lintpkgsrc: refactor Pkgs internals to be more descriptiverillig1-28/+29
2022-08-03lintpkgsrc: refactor PkgVer internals to be more descriptiverillig2-25/+34
2022-08-03lint: fail if one of the tests failsrillig4-8/+8
2022-08-03lintpkgsrc: use LF line endings in testsrillig3-164/+164
2022-08-03lintpkgsrc: test parsing of package makefilesrillig5-3/+118
2022-07-30lintpkgsrc: cleanup: split main into smaller subroutinesrillig1-224/+252
No functional change.
2022-07-30lintpkgsrc: condense code for checking mandatory command line optionsrillig1-17/+2
2022-07-30lintpkgsrc: test versioned packages, minor cleanuprillig3-12/+35
2022-07-30lintpkgsrc: rename safe_chdir to chdir_or_failrillig1-12/+8
The word 'safe' was too ambiguous. While here, remove the source code location from the error message. This error is not expected to occur during normal usage.
2022-07-30lintpkgsrc: test code for storing package datarillig2-1/+46
2022-07-30pkglint: cleanup: group classes from small to bigrillig1-77/+77
No functional change.
2022-07-30lintpkgsrc: update homepage URLrillig1-2/+2
2022-07-30lintpkgsrc: use plain text cache formatrillig2-56/+46
Previously, the cache format was Perl code. Now it is a list of lines, each line containing tab-separated data. The new format reduces the storage needs by around 50%. It also ensures that only well-formed data is written to the cache. The previous format contained lots of IO requests, which made loading the cache incredibly slow. Bump version.
2022-07-30lintpkgsrc: fix warning about string comparison with undefinedrillig1-2/+2
Since today.
2022-07-30lintpkgsrc: add automatic testsrillig3-11/+30
Not sure whether this form of running tests is the idiomatic one, as lintpkgsrc is not a Perl module but a Perl program, but it works. The number of planned tests (5 for now) seems to be ignored, no idea why.
2022-07-30lintpkgsrc: merge duplicate coderillig1-15/+2
2022-07-30lintpkgsrc: cleanup: replace regular expressions with string comparisonrillig1-10/+6
2022-07-30lintpkgsrc: fix up previous commit for cleaning up version numbersrillig1-17/+4
2022-07-30lintpkgsrc: clean up comparison of version numbersrillig1-10/+6
No functional change.
2022-07-30pkg_install: use tabs for indentation, not spacesrillig1-23/+23
2022-07-30pkg_install: clean up leading, intermediate and trailing whitespacerillig1-10/+9
2022-07-30pkg_install: remove trailing whitespacerillig1-1/+1
2022-07-30pkg_install: modern computers can handle words longer than 6 lettersrillig1-1/+1
2022-07-30lintpkgsrc: fix error message for accessing category directoryrillig1-2/+2
2022-07-30lintpkgsrc: cleanup: rename 'dewey' to 'pkgversion'rillig1-12/+12
The Dewey Decimal Classification is a classification for books in libraries, based on decimal numbers. It has nothing to do with version numbers. No functional change.
2022-07-30lintpkgsrc: cleanup: sort subs from small to bigrillig1-720/+716
This way, perl properly checks the sub prototypes. No functional change.
2022-07-30lintpkgsrc: cleanup: move main code to the bottomrillig1-325/+324
Moving the code revealed some more mismatches in the prototypes of the subs. In order to detect them properly, the sub must be declared before it is called. No functional change.
2022-07-30lintpkgsrc: cleanup: remove redundant curly braces around variable namesrillig1-7/+7
2022-07-30lintpkgsrc: condense 'else' and 'elsif'rillig1-116/+58
2022-07-30lintpkgsrc: format coderillig1-1654/+1586
No functional change.
2022-07-29lintpkgsrc: enable Perl warningsrillig1-5/+11
No functional change.
2022-07-28pkgtools/pkglint: update to 22.2.4rillig7-29/+162
Changes since 22.2.3: Manual pages must not be listed in the ALTERNATIVES file. Instead, they are handled automatically based on the program in bin/ or sbin/. Detect packages that use the tool pkg-config even though they don't need it.
2022-07-26url2pkg: clean up package Makefilerillig1-2/+3
Start each shell command in a new line. This makes it easier to find the 'for' that corresponds to the 'done', especially since the 'done' could also be started by a 'while' or an 'until'. No functional change.
2022-07-24osabi: Revert previous pending discussion.nia1-7/+1
2022-07-24pkgtools/pkglint: update to 22.2.3rillig13-868/+1073
Changes since 22.2.2: CHECK_WRKREF is known to pkglint, which prevents conditions using this variable from being simplified in a wrong way. For variables that are guaranteed to be defined, suggest to simplify the condition '!empty(VAR:M[Yy][Ee][Ss])' to '${VAR:M[Yy][Ee][Ss]}', as that reduces the number of negations in the condition. Detect redundant WRKSRC definitions and suggest to remove them. Fix wrong "c99 is not valid for USE_LANGUAGES" warnings.
2022-07-24osabi: Teach it to check the version of the userspace rather thannia1-1/+7
the kernel on NetBSD. from Hauke Fath.
2022-07-16url2pkg: disable resuming transfers when fetching distfilesrillig1-2/+7
Resuming the transfer only works if there already is a distinfo file, as otherwise the correct size of the file is not known. This prevents these warnings from mk/fetch/fetch: > fetch: ``-r'' requires ``-f distinfo''. > fetch: Falling back to non-resume fetch.
2022-07-16url2pkg: split support files for Python distutils and setuptoolsrillig16-76/+185
When url2pkg determines the metadata of a Python module, it had merged the two implementations for Python's distutils and setuptools, which made the code hard to understand. Split them again. Extend the support for setuptools, so that url2pkg correctly handles wip/pytorch; it still fails because pytorch does some Git stuff from inside setup.py, but that may be fixed later. Bump version to 22.2.0.
2022-07-15pkg_install: add Beer-Ware as default acceptablegutteridge1-1/+2
2022-07-13Revbump all Go packages after go118 updatebsiegert1-1/+2
2022-07-09pkgtools/pkglint: update to 22.2.2rillig6-28/+34
Changes since 22.2.1: Require the current checksum algorithms for pkgsrc-wip packages as well. SHA1 and RMD160 are no longer allowed for distfiles. Do not warn about 'Package should not' when checking .mk files in the pkgsrc infrastructure.
2022-07-08pkgtools/createbuildlink: fix location of BUILDLINK_DEPMETHODrillig2-14/+15
Reported by Mayuresh in https://mail-index.netbsd.org/pkgsrc-users/2022/07/08/msg035799.html. Bump version.
2022-07-07*: Update my MAINTAINER email address.jperkin1-2/+2