Commit graph

5556 commits

Author SHA1 Message Date
rillig
7e5d8473be pkgtools/pkglint: update to 20.1.2
Changes since 20.1.1:

Ensure that relative paths to other packages have the canonical form
../../category/package.

Add notes about pathname patters that mention ${WRKSRC} even though they
are already defined to be relative to WRKSRC.

Fix check for redundantly added categories. The check had previously
reported that the included file would be redundant, which was wrong.
It's always the including file that provides the redundancy.
2020-04-13 19:46:44 +00:00
bsiegert
9429a8bf7a Revbump all Go packages after default version switch to 1.14. 2020-04-12 11:01:37 +00:00
adam
24daafa112 Recursive revision bump after textproc/icu update 2020-04-12 08:27:48 +00:00
khorben
32d09f38b3 pkg: update to version 1.9.99.11
The changes since version 1.99.9 appear to be:

- New pkg upgrade --vulnerable
2020-04-10 23:46:14 +00:00
khorben
83e301dfe2 pkg: update to version 1.99.9
The changes since version 1.99.4 appear to be:

- Fix pkg register issues with some version of libarchive:
  * hardlinks not being made hardlinks sometime
  * issues when PREFIX is a symlink to another directory
- Use portable mechanism to find the number of CPUs which allows pkg repo to be
  faster on linux
2020-04-10 23:38:50 +00:00
khorben
66d29d9766 pkg: fix build with developer checks enabled
This adds a patch to fix a portability check.

Bumps PKGREVISION.
2020-04-10 23:28:32 +00:00
riastradh
47c5a1e893 Bump version for pbulk script fixes. 2020-04-04 20:44:36 +00:00
riastradh
c92a9b3913 Fix typo: $client_prepare_chroot, not clients_prepare_chroot. 2020-04-04 15:17:48 +00:00
riastradh
4880294ca4 Fix order of assignments so we set path as intended, not to empty. 2020-04-04 15:17:36 +00:00
rillig
c26a5fad6c pkgtools/pkglint: update to 20.1.1
Changes since 20.1.0:

In UNLIMIT_RESOURCES, the recently added virtualsize is allowed.

Packages that have distfiles without any digit in their name should
define DIST_SUBDIR to avoid polluting the global namespace. The
top-level distfiles directory should only contain versioned filenames.
2020-03-26 07:02:44 +00:00
rillig
8792f5214c pkgtools/pkglint: update to 20.1.0
Changes since 19.4.13:

It is an error to have TODO lines in DESCR files. These are typically
generated by url2pkg and should be replaced with proper text before
committing the package.
2020-03-23 19:55:08 +00:00
rillig
24e2b05c2a pkgtools/pkglint: update to 19.4.13
Changes since 19.4.12:

Files that are mentioned redundantly in PLIST files generate an error.

Missing DESCR files generate an error.

Hard-coded /usr/pkg in patches generates an error.
2020-03-22 17:43:15 +00:00
tnn
52ffc6ace4 rc.subr: mark as not for unprivileged, because of PREFIX:=/ abuse 2020-03-22 13:21:05 +00:00
bsiegert
f5efefe062 Revbump all Go packages after go113 update. 2020-03-21 16:57:00 +00:00
rillig
18059b34de pkgtools/check-portability: automatic test, refactoring 2020-03-21 15:02:20 +00:00
rillig
f08be7b699 pkgtools/pkglint: increase performance 2020-03-18 08:42:48 +00:00
rillig
0b88ed50ca pkgtools/pkglint: update to 19.4.12
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-18 08:24:49 +00:00
rillig
9559fc179c pkgtools/pkglint: update to 19.4.11
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-15 11:31:24 +00:00
rillig
689d54f107 pkgtools/check-portability: fix function names 2020-03-14 09:47:09 +00:00
rillig
5568a175e9 pkgtools/check-portability: update to 19.4.3
Changes since 19.4.2:

Fixed a crash when a file started with an empty line.
2020-03-14 09:18:49 +00:00
rillig
6659486108 pkgtools/check-portability: elimitate common subexpression 2020-03-13 16:43:05 +00:00
rillig
c03a78cece pkgtools/check-portability: update to 19.4.2
Changes since 19.4.1:

Fixed an assertion error when reading binary file, reported by tnn via
private mail.
2020-03-13 16:20:34 +00:00
rillig
da15757bea pkgtools/check-portability: reduce dependencies
Since this is a very basic program, it should not depend on anything more
complicated, to avoid creating cyclic dependencies.
2020-03-13 08:17:18 +00:00
rillig
b9e43a0b48 pkgtools/check-portability: explain how to fix the errors 2020-03-12 19:45:06 +00:00
rillig
86eb11d3ba pkgtools/check-portability: make explanation for [[ more precise 2020-03-12 19:26:17 +00:00
rillig
0b6b0bb8b0 pkgtools/check-portability: minor stylistic corrections 2020-03-12 08:55:07 +00:00
rillig
509ef148b0 pkgtools/check-portability: update to 19.4.1
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-12 08:42:34 +00:00
rillig
e1f4ffd38d pkgtools/check-portability: fix build for partly-privileged mode 2020-03-12 00:05:36 +00:00
rillig
3c199d5660 pkgtools/check-portability: fix exclusion for test files 2020-03-11 23:50:05 +00:00
rillig
b8b6cbe5f5 pkgtools/check-portability: add checks from check-portability.awk
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-11 23:36:32 +00:00
rillig
6df1e80257 pkgtools/check-portability: improve local function names 2020-03-11 22:41:17 +00:00
rillig
0790285428 pkgtools/check-portability: check extracted files for portability issues
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-11 19:15:03 +00:00
brook
bae1f1e3df Select fields explicitly from df.depends in make.df.depends().
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-11 16:13:35 +00:00
wiz
4e3b1b97c2 librsvg: update bl3.mk to remove libcroco in rust case
recursive bump for the dependency change
2020-03-10 22:08:37 +00:00
wiz
8f80abc5f2 revbump: 2.15: update check-cvs-diff for current ruby and python versions. 2020-03-08 17:06:16 +00:00
wiz
f669fda471 *: recursive bump for libffi 2020-03-08 16:47:24 +00:00
rillig
f9486e2bfe pkgtools/pkglint: update to 19.4.10
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-07 23:35:35 +00:00
brook
eaf33f2b50 Define RPKG, not rpkg, in the environment for R2pkg.R
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-05 17:15:31 +00:00
brook
86f2f40e73 Add a hyphen (-) to each stored argument so recursive calls work.
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-05 17:07:54 +00:00
rillig
2d8401554a pkgtools/pkg_install: add errno details when remove fails
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-03-01 11:02:04 +00:00
rillig
27fa54b11d pkgtools/pkglint: update to 19.4.9
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-17 20:22:21 +00:00
rillig
1467f17803 pkgtools/pkg_regress: update to 0.6
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-15 14:40:45 +00:00
rillig
77cc481aa0 pkgtools/pkglint: update to 19.4.8
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-15 13:48:40 +00:00
rillig
96e597af35 pkgtools/pkglint: update to 19.4.7
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-05 04:09:00 +00:00
bsiegert
f6baaa9181 Revbump all Go packages after go113 update. 2020-02-02 14:18:56 +00:00
rillig
9503650a8e pkgtools/pkglint: use ASCII-only variant of the preformatted manual page 2020-01-26 20:16:29 +00:00
rillig
f49ae4dc78 pkgtools/pkglint: fine-tune manual page 2020-01-26 19:35:22 +00:00
rillig
9637f7852e all: migrate homepages from http to https
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-26 17:30:40 +00:00
rillig
ef335d31bc pkgtools/pkglint: update manual page 2020-01-26 17:18:25 +00:00
rillig
d68fef625d pkgtools/pkglint: update to 19.4.6
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-26 17:12:36 +00:00