Commit graph

5775 commits

Author SHA1 Message Date
wiz
0028a77bbb import-package: add Os macro to man page 2020-08-16 20:58:25 +00:00
wiz
203b462be4 import-package: increase CAVEATS 2020-08-16 20:57:57 +00:00
wiz
fbe0847294 pkgtools/import-package: import import-package-1.0
This is a package for wip/import-package.sh. Suggested by brooks.

This package contains a tool for importing a package to pkgsrc or
pkgsrc-wip.
2020-08-16 20:57:09 +00:00
bsiegert
9fad3613b8 Revbump all Go packages after go114 update 2020-08-14 20:01:19 +00:00
gutteridge
c7e1da7e58 pkg_distinst: fix typo in MESSAGE 2020-08-12 23:48:33 +00:00
joerg
52ba11c46f pbulk-0.70: store end of build in epoche format too
This is nicer for using bulk builds as benchmark as it doesn't require
parsing dates.
2020-08-09 23:18:30 +00:00
rillig
6f98806e2a pkgtools/pkg_install: fix pkglint warning about CHECK_PERMS 2020-08-09 21:40:42 +00:00
rillig
657d9c5279 pkgtools/libkver: fix a few pkglint warnings 2020-08-09 21:37:26 +00:00
tnn
19c9aa59c8 pbulk: fix typo in error message 2020-08-04 02:35:09 +00:00
rillig
45e1d91f70 pkgtools/pkglint: update to 20.2.6
Changes since 20.2.5:

Some selected absolute paths, such as /etc/passwd, /etc/shadow and
/etc/hosts are allowed in patch files.  Other files in /etc should still
use PKG_SYSCONFDIR, to keep the package portable between platforms and
also in unprivileged mode. (Fixes PR pkg/55524.)

Absolute pathnames are also allowed in C-style end-of-line comments
(fixes PR pkg/55516) and in continuations of C-style block comments
(fixes PR pkg/55524).

The explanation for make's :ts modifier has been adjusted to the 2020
bmake update.  The modifier :ts\040 is now interpreted as octal, as
opposed to decimal.
2020-08-02 13:27:17 +00:00
rillig
34a761714d pkgtools/pkglint: update to 20.2.5
Changes since 20.2.4:

The warning about "unknown options" has been reworded to "undocumented
options", since that is more precise and less confusing.

In pathnames and pathname patterns, the exclamation mark is allowed.
This is necessary for Go packages like devel/gopls.
2020-07-31 22:39:36 +00:00
rillig
1aa64d69a1 pkgtools/pkglint: update to 20.2.4
Changes since 20.2.3:

Complain about buildlink3.mk files that accidentally set their own
BUILDLINK_PKGSRCDIR variable to a different directory than their own.
2020-07-23 19:09:10 +00:00
rillig
ca82680519 pkgtools/pkglint: update to 20.2.3
Changes since 20.2.2:

Complain about patches that add a hard-coded interpreter.  Even if that
interpreter is /bin/sh, which is available on most platforms, it is still
inappropriate on old Solaris installations.  Other popular paths start
with /usr/pkg or /usr/local, and these are not controlled by pkgsrc either.
2020-07-23 18:40:41 +00:00
rillig
9b2992b55a pkgtools/pkglint: update to 20.2.2
Changes since 20.2.1:

Emit notes about redundant != assignments, as well as those that
overwrite each other.

For packages that set DISTINFO_FILE to their own distinfo file, don't
check that file twice.
2020-07-22 19:26:29 +00:00
sjmulder
8c89e75a7e pkg_install: BOOTSTRAP guard on libarchive-using function
Initial bootstrap builds of pkg_install don't use libarchive. Guarding
this function (as other places are) with #ifndef BOOTSTRAP prevents
'implicit declaration of archive_...()' warnings on FreeBSD 12 and Xcode
beta, which due to -Werror broke the bootstrap.
2020-07-21 14:32:00 +00:00
bsiegert
20b9b74c5f Revbump all Go packages after go114 update. 2020-07-17 18:04:11 +00:00
wiz
a08a7dad6c lintpkgsrc: use closedir() when using opendir() 2020-07-16 10:11:39 +00:00
jperkin
eae908a42a pkgin: Update to 20.7.0.
Update pkg_install dependency for "pkg_admin rebuild-tree" fixes.

## Version 20.7.0 (2020-07-13)

 * Order package installs correctly.
 * Switch to mdoc(7) manual page, converted by wizd(8).
 * Remove -F (force reinstall) flag.
 * Enable compiler warnings in maintainer mode.
 * Match candidate packages correctly, avoiding issues with packages that
   include "-[0-9]" in their package names.
 * Various internal cleanups.
2020-07-13 18:18:54 +00:00
kim
dfcd513122 Pass PKG_SYSCONFDIR to configure 2020-07-09 10:46:24 +00:00
rillig
dcd4b12bb3 pkgtools/pkglint: update to 20.2.1
Changes since 20.2.0:

Don't warn about a possibly redundant PKGNAME=${DISTNAME} assignment if
PKGNAME is defined somewhere else in the package Makefile.

Warn if NO_CONFIGURE=yes and REPLACE_* are combined.

Suggest to replace ${VAR:@l@-l${l}@} with the simpler ${VAR:S,^,-l,},
as well as ${VAR:@l@${l}suffix@} with the simpler ${VAR:=suffix}.

Allow lua in CATEGORIES.
2020-07-01 13:17:41 +00:00
jperkin
185902296e pkg_install: Update version to 20200701.
Includes fixes to +REQUIRED_BY generation, performance improvements,
build fixes against newer libnetpgpverify, and better error messages.

When combined with newer pkgin releases, this should now eliminate the
various "pkg_add: Can't open +CONTENTS of depending package ..." errors
that users had frequently observed during upgrades (joyent/pkgsrc#158,
joyent/pkgsrc#190, joyent/pkgsrc#256, and many IRC logs).
2020-07-01 10:15:19 +00:00
jperkin
278ac9777e pkg_install: Fix and speed up "pkg_admin rebuild-tree".
In the pkg_admin front end, instead of adding +REQUIRED_BY entries as they
are found, which previously led to duplicate entries, cache the results and
write out the files at the end.

Underneath, add a caching version of iterate_pkg_db() that avoids the same
pkgdb directory lookup for every installed package, but is only suitable for
reads.  Also add a cache for best_match lookups to avoid expensive matches
each time.

For all caches, use a simple hashing function to improve lookup performance.

In summary, as well as fixing +REQUIRED_BY files, these patches reduce the
wall/user/system time of "pkg_admin rebuild-tree" on a system with 12,762
packages installed down from 13m52s/11m20s/2m32s to just 1m4s/1m3s/0m1s.
2020-07-01 10:03:19 +00:00
jperkin
2f10b39a2d pkg_install: Handle recursive upgrades correctly.
The list of dependencies held by packages during recursive upgrades was not
refreshed after dependencies were themselves upgraded, leading to failures
attempting to read +REQUIRED_BY files in package directories that no longer
exist ("registration is incomplete!").  We now only perform the package
match after the upgrades have completed.

While here, hide the warning about dependencies not being fulfilled behind
ForceDepending, as the whole point of using that mode is to ignore such
issues with the assumption that the final state after updating will be
correct.
2020-07-01 09:46:04 +00:00
rillig
afd6858802 pkgtools/url2pkg: update version to 20.2.0
No code changes.  This is just to align the url2pkg version number with
the upcoming branch name.
2020-06-28 10:20:59 +00:00
rillig
5f853e37e2 pkgtools/pkglint: update version to 20.2.0
No code changes.  This is just to align the pkglint version number with
the upcoming branch name.
2020-06-28 10:19:11 +00:00
rillig
342924562e pkgtools/pkglint: update to 20.1.19
Changes since 20.1.18:

Fixed a wrong warning about unknown buildlink identifier "lua" in
mail/neomutt, reported by wiz.
2020-06-22 06:35:02 +00:00
rillig
e7b358e8ec pkgtools/pkglint: update to 20.1.18
Changes since 20.1.17:

Fixed the algorithm for checking whether two patterns overlap, such as
MACHINE_PLATFORM:MNetBSD-[0-9].*-*.

Fixed wrong warning about foreign variable in SUBST block, as seen in
geography/qgis.
2020-06-20 07:00:44 +00:00
bsiegert
121a05e61b Revbump Go packages after Go 1.14.4 update. 2020-06-17 09:54:00 +00:00
rillig
5a7f0a09bb pkgtools/pkglint: update to 20.1.17
Changes since 20.1.16:

Conditions that contradict each other in the same file are reported as
errors.  Inspired by lang/rust/Makefile r1.174.
2020-06-14 11:35:54 +00:00
rillig
d49fa456d8 pkgtools/pkglint: update to 20.1.16
Changes since 20.1.15:

When a package adds an additional version requirement for another
package, it must do so using BUILDLINK_API_DEPENDS instead of
BUILDLINK_ABI_DEPENDS.  Most packages already do this.

When a values is appended to an undefined variable using the += operator,
bmake does not add a space before, and pkglint caught up to do the same.
This change has no practical consequences though.

As always, a bit of refactoring.  The method names of MkAssignChecker
contained the redundant word "varassign".
2020-06-12 19:14:45 +00:00
rillig
9c10768978 pkgtools/pkglint: update to 20.1.15
Changes since 20.1.14:

Fix confusing wording of diagnostic "should contain text".  It's more
precise to say "this line should consist of this text".  Otherwise it's
too easy to interpret it as "the text should occur somewhere in the
line".

Allow BUILDLINK_PREFIX.* to be used in helper files.  Especially for
programming language packages, files like plugin.mk often include
buildlink3.mk and therefore may refer to the BUILDLINK_PREFIX of this
package.

Warn about redundant BUILDLINK_API_VERSION restrictions.  Previously, the
check had only been enabled if the operators from the default dependency
pattern (buildlink3.mk) and the additional dependency pattern (package)
used the same operators, which already covered most practical cases.

Determine SuSE versions from the pkgsrc tree.
2020-06-07 15:49:23 +00:00
rillig
049285fb7a pkgtools/compat_headers: properly skip the permissions check
CHECK_PERMS is a user-settable variable.  Setting CHECK_PERMS_SKIP has
the same effect.
2020-06-07 06:26:25 +00:00
rillig
4c3a3b90a3 pkgtools/pkglint: update to 20.1.14
Changes since 20.1.13:

Packages that don't define DISTNAME probably don't download any files
and thus may not need a distinfo file.  (There are several other
conditions involved in this, though.)

When reporting wrong distinfo hashes, always report them in the order in
which they appear in the distinfo file, not by hashmap order.

Fix panic when parsing the Makefile line "./=value", which according to
bmake is a variable assignment.  This is not used in practice though.

Disallow a leading hyphen in package option names.  There are only very
few packages that wrongly use these option selectors in
PKG_SUGGESTED_OPTIONS.

Distinguish between a tool dependency (USE_TOOLS) and a plain tool name
(TOOLS_NOOP, TOOLS_BROKEN, TOOLS_FAIL).  Allow packages to add arbitrary
tools to these lists.
2020-06-06 20:42:56 +00:00
rillig
0cb25565b7 pkgtools/cwrappers: avoid dependency cycle with check-portability 2020-06-02 19:46:00 +00:00
rillig
b3b70f45ee pkgtools/pkglint: update to 20.1.13
Changes since 20.1.12:

Numeric comparison in conditions should not be used.  It is currently
only used for comparing version numbers.

https://mail-index.netbsd.org/pkgsrc-changes/2020/06/02/msg215278.html
2020-06-02 17:52:26 +00:00
adam
6bd0c30da6 Revbump for icu 2020-06-02 08:22:31 +00:00
rillig
a76f4cbf91 pkgtools/pkglint: update to 20.1.12
Changes since 20.1.11:

The file bsd.pkg.mk must only ever be included by package Makefiles
directly, not by other Makefile fragments.  Seen in www/w3m.

The variable BUILDLINK_PREFIX.* should only be used for packages that
have actually been included by the package.  This catches the use of
BUILDLINK_PREFIX.libiconv, which should have been iconv instead.

Allow comments before line 3 in buildlink3.mk files. This is necessary
for mariadb55-client since its buildlink identifier is mysql-client,
which is so non-obvious that it needs to be documented.
2020-06-01 20:49:54 +00:00
rillig
a3f54e4aee pkgtools/pkglint: update to 20.1.11
Changes since 20.1.10:

PKG_SYSCONFDIR and VARBASE must not appear in INSTALLATION_DIRS.

Patch files in which the line number have been edited manually are marked
with notes.
2020-05-29 20:13:17 +00:00
jperkin
18ec400fba pkgin: Update to 20.5.1.
This is quite a disruptive change, but has been tested in various ways across
Darwin, Minix, and SmartOS, so I'm reasonably confident I caught most issues.

With the switch to automake the pkgsrc Makefile has been able to be simplified
a lot, and I also took the opportunity to remove the mostly useless MESSAGE
file.

## Version 20.5.1 (2020-05-25)

 * Improve make portability.

## Version 20.5.0 (2020-05-25)

 * Switch to automake and overhaul mandatory configure options.
 * Remove unused code and pointless configure tests, cleaning up includes
   and headers where appropriate.
 * New version number scheme (yy.m.x).  The previous scheme had no relevance,
   this one at least gives users some clue about how up-to-date their version
   is.
2020-05-25 08:42:05 +00:00
nia
ec92436e93 libnbcompat: Update to 20200524
One change: use AC_PROG_CC_C99 and regen configure

This helps bootstrapping on legacy systems where the compiler doesn't
default to c99 without additional guidance.

Patch from ky0ko@disroot.org, tested on NetBSD and Alpine Linux by myself
and on IRIX with mipspro by ky0ko.
2020-05-24 21:51:54 +00:00
rillig
97d69cd3e1 pkgtools/pkglint: update to 20.1.10
Changes since 20.1.8:

Recognize SUBST_NOOP_OK and SUBST_SHOW_DIFF.

Allow plain -Wl,-R and -Wl,-rpath in BUILDLINK_TRANSFORM, when they are
used to remove compiler options.

Recognize ggrep and other platform tools as valid tool names.  Seen in
lang/rust.
2020-05-24 19:12:29 +00:00
rillig
36b0d87392 pkgtools/pkglint: remove runtime dependency on devel/go-check
Since 2019-11-16, the main pkglint code does not require this package
anymore.  It is still used in the test code.
2020-05-24 09:35:12 +00:00
rillig
c0578aaa0a pkgtools/check-portability: update to 20.1.1
Changes since 20.1.0:

Fixed off-by-one error in diagnostic for test ==.
2020-05-23 22:18:10 +00:00
rillig
0fe9f6e0c8 pkgtools/check-portability: clean up code 2020-05-23 22:12:31 +00:00
rillig
3c3d0f4eec pkgtools/pkglint: update to 20.1.8
Changes since 20.1.7:

There are about 300 cases where a package defines a PLIST conditional in
PLIST_VARS but none of its PLIST files actually uses that condition.
These cases get a warning.
2020-05-23 08:51:07 +00:00
rillig
210a5aae4b pkgtools/pkg_online-client: clean up REPLACE_SH 2020-05-23 08:49:08 +00:00
rillig
74c18fe143 pkgtools/pkg_summary-utils: remove nonexistent file from REPLACE_SH 2020-05-22 19:49:13 +00:00
rillig
9c42f8b711 pkgtools/pkglint: update to 20.1.7
Changes since 20.1.6:

Versioned Python dependencies may end with :test or :tool, as the code in
lang/python/versioned_dependencies.mk says.
2020-05-18 19:11:16 +00:00
adam
68f7d0442a pytest from versioned depends 2020-05-18 10:30:16 +00:00
rillig
4821a6de2c pkgtools/pkgin: allow no-op SUBST block for paths
In a pkgsrc setup with default paths, the simple substitutions are all
no-ops.  The last two substitutions only apply to Makefile.in, which
means that they are no-ops for the other files.  Since the whole sed
command is not considered an identity substitution, an explicit
SUBST_NOOP_OK is needed here.

https://mail-index.netbsd.org/pkgsrc-users/2020/05/17/msg031245.html
2020-05-17 12:13:46 +00:00
rillig
96435d56fa pkgtools/pkglint: update to 20.1.6
Changes since 20.1.5:

Category Makefiles must only list subdirectories in SUBDIR that actually
contain a package.  There is no need to mention the other directories.
This is the same as in the top-level Makefile, where mk/ and regress/ are
not listed.

Packages from pkgsrc-wip may have a COMMIT_MSG file with a suggested
commit message for importing the package into main pkgsrc.
2020-05-17 07:07:18 +00:00
rillig
9a194515dc pkgtools/createbuildlink: remove unused placeholder 2020-05-16 06:28:52 +00:00
rillig
d19556fce1 pkgtools/createbuildlink: use SUBST instead of ad-hoc sed
This allows to show the actual changes by setting SUBST_SHOW_DIFF=yes,
and with SUBST_NOOP_OK=no it also demonstrates that no substitutions are
needed for substplistbasedirs.

Another thing this demonstrates is this wrong patch:

-echo >>$sedrules "s|@@PKGVERSION@@|@PKGVERSION@|g"
+echo >>$sedrules "s|@3.17@|3.17|g"
2020-05-16 06:24:15 +00:00
rillig
4209ef06ce pkgtools/pkglint: update to 20.1.5
Changes since 20.1.4:

No more wrong warnings about the Solaris /bin/sh. These warnings had been
there for 14 years, preventing pkgsrc developers from using the $$(...)
command substitution and negation in shell conditions.

https://mail-index.netbsd.org/pkgsrc-changes/2020/05/01/msg212194.html
2020-05-09 19:26:11 +00:00
rillig
2ec8663c66 pkgtools/pkglint: update to 20.1.4
Changes since 20.1.3:

For patches that patch a single file, the filename of the patch should
correspond to the patched file. There are a few different naming schemes
in action, therefore the check is relatively loose. Patches that are
called patch-[a-z][a-z] continue to be allowed for historic reasons.
Patches that are called patch-CVE-* are also allowed.

The entries in doc/CHANGES-* are checked for consistency. For example,
it doesn't make sense to add a package twice or "update" a package from
version 1.0 to version 1.0. All version numbers in these entries must
be valid pkgsrc versions, i.e. start with a digit and only use
characters from -.0-9A-Z_a-z.
2020-05-08 19:50:04 +00:00
jperkin
a1bd6c01e6 pkg_install: Revert part of last commit.
We need to use the library Makefile so that libnetpgpverify is built.  Fixes
bootstrap.
2020-05-05 09:02:43 +00:00
agc
8d6726aab6 libnetpgpverify now uses its own protected symbols, update build process to
account for this.
2020-05-04 19:14:59 +00:00
jperkin
18d845cc68 pkgin: Unbreak PKGPATH subst change. 2020-05-04 11:15:50 +00:00
tnn
3cc9fe5aa4 don't need a wildcard here 2020-05-02 10:43:44 +00:00
tnn
e8cdb9630f pkglint/select.mk: prefer golang pkglint on NetBSD/aarch64 9.1 or later 2020-05-02 10:33:15 +00:00
rillig
e210d74974 pkgtools/pkglint: update to 20.1.3
Changes since 20.1.2:

Stricter check for Python version numbers. Before, 25 and 26 had not
been marked as wrong.

In assignments like PKGNAME=${DISTNAME:S,from,to,}, modifiers that don't
have any effect generate a note. Most of these modifiers are redundant
or outdated.

Patches must not add well-known absolute paths like /usr/pkg, /var and
/etc since these must be overridable by the pkgsrc user. Other absolute
paths continue to be allowed.
2020-04-30 21:15:03 +00:00
plunky
894c5e9f65 add afl-3.0 as acceptable default license 2020-04-30 09:47:51 +00:00
jperkin
ccc3e27c10 pkgin: Update to 0.16.1.
The "jperkin should have run the test suite before releasing 0.16.0" release.

## Version 0.16.1 (2020-04-29)

 * Don't attempt to update the keep list if we're only downloading packages.
 * Avoid C99isms for now, fixes CentOS 6 build.
 * Ignore "pkg_admin rebuild-tree" output, removes spurious "Done." messages
   from output.
 * Some minor internal refactoring.
2020-04-29 15:09:20 +00:00
rillig
9057d45716 pkgtools/pkgin: define PKGPATH before including mk.conf
PKGPATH is one of the few variables that is guaranteed to be defined when
mk.conf is included. Conditions like ".if ${PKGPATH} == category/package"
trigger a "Malformed conditional" when this variable is not defined.
2020-04-28 02:43:21 +00:00
jperkin
104f4863f2 pkgin: Update to 0.16.0.
## Version 0.16.0 (2020-04-27)

 * Rebuild +REQUIRED_BY files after each pkgdb modification, ensuring
   consistency and avoiding "Can't open +CONTENTS of ..." errors during
   subsequent upgrades.
 * Improved output sorting.
 * Turn off WARNS.
 * Minor cleanups.
 * Documentation fixes.
 * Flush yes/no prompt before reading response (Michael Forney).
2020-04-27 14:54:47 +00:00
rillig
bd33698e2a pkgtools/pkg_filecheck: fix absolute path to PKG_DBDIR 2020-04-27 05:35:29 +00:00
sborrill
f6c23d12bd Allow NetBSD distribution tarball file extension to be defined with DISTRIB_EXT.
Default to tgz.
Bump to version 1.39
2020-04-23 11:28:08 +00:00
rillig
8c83e680a9 pkgtools/check-portability: make test == an error
It had only been a warning before, due to a forgotten nerrors++. The
check in mk/check/check-portability.awk already treats this case as an
error.
2020-04-19 12:47:27 +00:00
rillig
703d1f721c pkgtools/check-portability: update to 20.1.0
Changes since 19.4.3:

The variable name RANDOM_FILE is ok since it doesn't have a special
meaning to some shell implementations. Seen in www/curl.
2020-04-19 12:05:14 +00:00
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
rillig
bd845d8f1e pkgtools/pkglint: update to 19.4.5
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-23 21:56:50 +00:00
gutteridge
b26fda5d98 pkgclean: check that PKGSRCDIR is a valid directory
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-19 03:31:30 +00:00
rillig
b686dd9180 all: migrate several HOMEPAGEs to https
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-18 23:30:43 +00:00
rillig
d4383d8737 pkgtools/pkglint: update to 19.4.4
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 21:56:09 +00:00
jperkin
26c1bffc9f *: Recursive revision bump for openssl 1.1.1. 2020-01-18 21:48:19 +00:00
schmonz
25ce273e64 Mollify pkglint. 2020-01-16 16:54:36 +00:00
schmonz
3e85bf3c8c Specify Standard{Out,Error}Path for macOS launchd. Bump version. 2020-01-16 16:47:32 +00:00
wiz
1e368078b4 pbulk: add missing backslash 2020-01-16 13:49:57 +00:00
joerg
2f25ee0443 Fix pkg_admin expansion due to lost local change. 2020-01-15 19:14:01 +00:00
rillig
148b74ff05 pkgtools/R2pkg: remove a left-over debug message 2020-01-13 18:09:20 +00:00
rillig
46412eabe9 pkgtools/R2pkg: update to 0.6.4
Changes since 0.6.3:

* Fix hardcoded use of bmake.
2020-01-13 18:06:47 +00:00
joerg
ff7043b64c pbulk-0.67: Support both $NetBSD$ style RCS IDs and digests in +BUILD_INFO.
Bump configuration version for the new pkg_admin field.
2020-01-12 23:35:01 +00:00
rillig
be5c89688f pkgtools/pkglint: update to 19.4.3
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.
2020-01-11 15:47:58 +00:00
bsiegert
5220c156ea Revbump Go packages after Go default version bump. 2020-01-10 13:32:09 +00:00
leot
974b9da412 pkg_alternatives: Update to 1.7
Changes:
1.7
---
 - Adjust pkg_alternatives(8) to point to the real user configuration wrapper
   file and bump date
2020-01-10 12:20:50 +00:00
joerg
c604a8dab6 pbulk-0.66: make it simpler to compute the duration of the scan phase
This is handy when benchmarking whole system performance.
2020-01-08 15:12:01 +00:00
ryoon
e7d267dfd3 pkglint: Remove an outdated file from PLIST to fix packaging 2020-01-06 21:40:40 +00:00
rillig
adba00ab92 pkgtools/pkglint: remove outdated ideas.go 2020-01-06 20:39:35 +00:00
rillig
20c705d876 pkgtools/pkglint: update to 19.4.2
Changes since 19.4.1:

Fixed variable resolution. Before, variables that had not been defined
in an included file could still end up in the scope of the package,
which made many of the pkglint checks unreliable.

Each condition that is used in the PLIST should be defined somewhere in
the package Makefile or its included files.

When loading a package Makefile, hacks.mk is loaded implicitly at the
end, just as the pkgsrc infrastructure does in mk/bsd.hacks.mk.
2020-01-06 20:38:42 +00:00
jperkin
4270a35ebb pkgin: Update to 0.15.0.
## Version 0.15.0 (2020-01-06)

 * Also match full package names when searching (Erik van Nooijen).
2020-01-06 09:39:02 +00:00
ryoon
97e1b5bec9 pkglint: Include more .go file to PLIST 2020-01-05 12:35:40 +00:00
rillig
2fe3b9fc38 pkgtools/pkglint: update to 19.4.1
Changes since 19.4.0:

The notes for inserting an empty line have been changed from "insert
after this line" to "insert before this line" to make the line numbers
in the diagnostics contiguous. There had been several places where the
diagnostics went from line 1 to line 2 and then back to line 1, which
was confusing.

The lines in ALTERNATIVES files are checked for trailing whitespace.
This is only for consistency with the other checks. In the whole pkgsrc
tree all ALTERNATIVES files are already fine.

The diagnostics for comments in .endif/.endfor lines that don't
correspond to their .if/.elif/.for counterparts now includes the exact
line number of the corresponding condition, to make the warning easier
to fix.

The diagnostics for wrong variable value alignment now mention the
current column in addition to the desired column, to make it easier to
see by how much and in which direction the indentation should be fixed.

Variables that are used in conditions before they are actually defined
need the :U modifier.
2020-01-04 19:53:13 +00:00
rillig
446a181446 pkgtools/pkglint: update to 19.4.0
Changes since 19.3.19:

Empty PLIST files now generate an error instead of a warning since there
is no reason for having these empty files.

If a follow-up line in a Makefile is completely empty, there is no note
about trailing whitespace anymore since the warning about the misleading
empty line already covers this case.

The remaining code changes are only refactorings.
2019-12-30 16:27:13 +00:00
rillig
7efaf56ff6 pkgtools/pkg_regress: update to 0.5
Changes since 0.4:

The log output in verbose mode surrounds each test now and says
immediately whether that test fails. Before, that information was
collected and only shown at the very end of the output, which was
inconvenient.
2019-12-17 15:38:43 +00:00
rillig
c25511f60a pkgtools/pkglint: update to 19.3.19
Changes since 19.3.18:

Small improvements to edge cases in SUBST blocks.

Small improvements to edge cases in variable assignment and alignment
of the continuation backslashes.

The --source option shows the changes from autofix, even when the
--show-autofix option is not given. This is a welcome side-effect of
making the autofix logging simpler and more predictable.
2019-12-16 17:06:05 +00:00
rillig
68f328d785 pkgtools/pkglint: remove mkalign code
This is an early prototype that is not used in the pkglint code. It will
be included when it is ready and tested.
2019-12-15 01:29:06 +00:00
rillig
626431cd38 pkgtools/pkglint: update to 19.3.18
Changes since 19.3.17:

The SUBST check has been completely rewritten. It can handle several
SUBST classes at the same time now. This reduces the number of wrong
warnings.
2019-12-14 18:04:15 +00:00
bsiegert
924057ee4f Revbump all Go packages after Go 1.12.14 update. 2019-12-13 07:43:47 +00:00
rillig
70a94d3869 pkgtools/pkglint: update to 19.3.17
Changes since 19.3.16:

Pkglint now handles SUBST blocks correctly, even those in which some of
the variables are defined conditionally. It correctly reports those that
are missing in at least one of the possible branches.

PKG_JVM is no longer marked as deprecated. It was once package-settable.
Since 2002 it is system-provided, and the package-settable counterpart
is PKG_JVM_DEFAULT. This does not fit into pkglint's simple model of
deprecating variables since the variable name is still valid, it should
just not be defined by packages anymore.

The alignment of variable assignments has been fixed in some edge cases.
In continuation lines where the backslash is beyond column 72, the
whitespace before the continuation backslash is fixed to a single space.
2019-12-13 01:39:23 +00:00
jperkin
0d591897dd pkgin: Update to 0.14.0.
## Version 0.14.0 (2019-12-12)

 * Ensure reverse dependencies are considered when a "pkgin install" triggers
   an upgrade of a local package, avoiding potentially nasty bugs.
 * Minor performance improvement.
2019-12-12 15:52:53 +00:00
rillig
394bfa01cb pkgtools/pkglint: update to 19.3.16
Changes since 19.3.15:

When a package-settable variable gets a default value using the ?=
operator, pkglint no longer suggests to include bsd.prefs.mk, since that
doesn't make sense. Including bsd.prefs.mk only defines user-settable
and system-provided variables.

User and group names may be a single character only. While not widely
used, it's syntactically valid and there's no reason to prevent this.

In variable assignments, when pkglint removes unnecessary whitespace
between the variable name and the operator, it keeps the indentation of
the variable value the same as before. Previously, the indentation had
been changed, which required another run of pkglint --autofix.

PREFIX can only be used as a replacement for LOCALBASE after the whole
package Makefile has been loaded. This is because PREFIX is defined
very late, by bsd.pkg.mk. Therefore, don't suggest to replace LOCALBASE
with PREFIX in .if conditions.

When pkglint suggests to replace INSTALL_DATA_DIR commands with setting
INSTALLATION_DIRS instead, paths with a trailing slash are correctly
looked up in the PLIST. This suggests to use AUTO_MKDIRS more often.
2019-12-09 20:38:15 +00:00
rillig
c08a423e60 pkgtools/pkglint: update pkglint to 19.3.15
Changes since 19.3.14:

Invalid lines in PLIST files are now reported as errors instead of
warnings. If pkglint doesn't know about it, it must be an error.

In PLIST files, all paths are validated to be canonical. That is, no
dotdot components, no absolute paths, no extra slashes, no intermediate
dot components.

Fewer notes for unexpanded variable expressions in DESCR files. Before,
the text $@ was reported as possible Makefile variable even though it
was just a Perl expression.

README files are allowed again in pkgsrc package directories. There was
no convincing argument why these should be forbidden.

A few diagnostics have been changed from NOTE to WARNING or from WARNING
to ERROR, to match their wording.

When pkglint suggests to replace :M with ==, the wording is now "can be
made" instead of "should".
2019-12-08 22:03:37 +00:00
rillig
375c4f5dd3 pkgtools/pkglint: update to 19.3.14
Changes since 19.3.13:

When pkglint suggests to replace !empty(VARNAME:Mfixed) with ${VARNAME}
== fixed, the exact suggested expression is now part of the diagnostic.
The check and the autofix have been improved. They now apply only to the
last modifier in the whole chain, everything else was a bug in pkglint.

Pkglint now knows the scope of variables better than before. It knows
the difference between variables from <sys.mk> like MACHINE_ARCH, which
are always in scope, and those from mk/defaults/mk.conf, which only come
into scope later, after bsd.prefs.mk has been included. It warns when
variables are used too early, for example in .if conditions.

The pathnames in ALTERNATIVES files are now checked for absolute
pathnames. This mistake doesn't happen in practice, but the code for
converting the different path types internally made it necessary to add
these checks. At least this prevents typos.

The special check for obsolete licenses has been removed since their
license files have been removed and that is checked as well.

Variables named *_AWK may be appended to.

The variables _PKG_SILENT and _PKG_DEBUG are no longer deprecated, they
are obsolete now. They are not used in main pkgsrc and pkgsrc-wip
anymore.

When a package sets a default value for a user-settable variable (which
is something that should not happen anyway), it should .include
bsd.prefs.mk before, in order to not accidentally overwrite the
user-specified value.

Variable modifiers of the form :from=to are now parsed like in bmake.
They are greedy and eat up any following colons as well. This means that
${VAR:.c=.o:Q} replaces source.c with source.o:Q, instead of quoting it.
Pkglint now warns about such cases.

The handling of relative paths in diagnostics is now consistent. All
paths that are part of a diagnostic are relative to the line that issues
the diagnostic.

Fatal errors are no longer suppressed in --autofix mode.

Plus lots of refactoring, to prevent accidental mixing of incompatible
relative paths.
2019-12-08 00:06:37 +00:00
rillig
cdbbd83c0c pkgtools/pkglint: update to 19.3.13
Changes since 19.3.12:

The command line option -Wspace has been removed. Warnings and notes
about whitespace are now generated by default and cannot be switched
off. This is to ensure a consistent visual appearance of the package
Makefiles.

Shell programs that are indented unnecessarily deep generate a note by
default now. Before, the option -Wall was necessary to get these notes.

The check for unintended comments in multi-line shell programs is now
enabled again. It had been disabled some time ago as byproduct of a bug
fix in the shell parser.

The check for unique buildlink3 package identifiers now also works if
pkglint is run from a package directory instead of the pkgsrc root
directory.
2019-12-02 23:32:09 +00:00
rin
82fe727284 Indicate the original source it based on. No binary changes. 2019-12-01 06:05:44 +00:00
rin
537a90d421 Add NetBSD RCSID. No binary changes. 2019-12-01 06:03:58 +00:00
rin
0c7eb58a53 Support RPMs compressed by Zstd, found in Fedora 31.
Bump version.
2019-11-30 23:31:30 +00:00
rillig
403ff3f2c1 pkgtools/pkglint: update to 19.3.12
Changes since 19.3.11:

The command line option -Wstyle has been removed since it didn't have
any effect.

License names may contain underscores. This fixes 3 parse errors and 2
wrong notes about seemingly unused licenses.

The parser for Makefile variables has been improved for some edge cases.
The :M and :N modifiers behave surprisingly when they contain unbalanced
parentheses or braces. Pkglint now parses them in the same way as bmake,
but doesn't warn since these cases are not actually used in pkgsrc.
2019-11-30 20:35:11 +00:00
rillig
a306dffbe5 pkgtools/pkglint: update to 19.3.11
Changes since 19.3.10:

The check for buildlink3.mk files that are included conditionally in one
place and unconditionally in another place have been refined. Now they
also work in cases that do not involve any variables, such as when the
condition is a mere exists(filename).

References to variables that use parentheses instead of the usual braces
produce a warning now, even if pkglint cannot fix them automatically.
This affects only a few instances where more than one such variable
reference appeared in a single line.

The --log-verbose command line option has been removed since it does not
have any practical use other than improving the performance during
pkglint development itself. Because of that it hadn't even been
mentioned in the manual page.

Warnings for missing license files now report the path to the license
file relative to the line where the warning occurs, like everywhere
else.
2019-11-27 22:10:06 +00:00
wiz
c0f1e20be2 x11-links: remove libXevie
The X server stopped supporting this extension a long time ago.

Bump version.
2019-11-25 09:50:55 +00:00
rillig
e8482d1816 pkgtools/pkglint: update to 19.3.10
Changes since 19.3.9:

In diagnostics for suggested package updates, the exact line of doc/TODO
is mentioned. If a suggested update has an additional comment, the
brackets around that comment are not output anymore.

The check for defined but not used variables has been improved for the
edge case of defining a variable in the package Makefile and using it
in the buildlink3.mk file of the same package, which just doesn't work.

Makefile fragments in patches/ directories are now completely ignored.
It was a hypothetical case anyway.

Comparing PKGSRC_COMPILER using the == or != operators is now considered
an error instead of a warning. The common cases can be autofixed.
2019-11-23 23:35:55 +00:00
rillig
b43d1333d2 pkgtools/pkglint: update to 19.3.9
Changes since 19.3.8:

Match man pages in ALTERNATIVES with their counterparts in PLIST. In
PLIST files, ${PKGMANDIR} may be abbreviated as a simple "man", but not
in ALTERNATIVES.
2019-11-19 06:51:38 +00:00
rillig
6a4fb76594 pkgtools/pkglint4: update to 4.193.2
Changes since 4.193.1:

Disabled unreliable check about possible typos in variable names. For
example, in pkgtools/url2pkg the variable TEST_DEPENDS was flagged even
though it is well-known.

Disabled unreliable check about unknown shell commands. For example, in
pkgtools/pkglint4 all commands from ${PREFIX} are ok, but were still
flagged.
2019-11-18 08:06:58 +00:00
rillig
433c1aee4f pkgtools/url2pkg: add unit test for USE_TOOLS 2019-11-18 07:56:02 +00:00
rillig
6acf204db0 pkgtools/url2pkg: update to 19.3.7
Changes since 19.3.6:

Detect whether the package uses GNU Make, based on the top-level
Makefile.
2019-11-18 07:50:51 +00:00
rillig
2fd8141705 pkgtools/pkglint: be strict about invalid doc/CHANGES entries 2019-11-17 02:55:56 +00:00
rillig
0e893646a7 pkgtools/pkglint4: update to 4.193.1
Changes since 4.193.0:

Don't mark BUILDLINK_TRANSFORM.${OPSYS} as deprecated.
2019-11-17 02:54:10 +00:00
rillig
20fd8730b0 pkgtools/pkglint: update to 19.3.8
Changes since 19.3.7:

Made check for doc/CHANGES file stricter. The check now catches entries
for added packages that are missing the word "version".
2019-11-17 02:06:01 +00:00
rillig
3fab179c40 pkgtools/pkglint: update to 19.3.7
Changes since 19.3.6:

Improved variable value alignment.

Fixed wrong warning about comment lines that were interpreted as shell
commands before.

Warn when the first category of a package doesn't correspond to the
path in the filesystem. This affects 603 packages.

No longer warn about deprecated BUILDLINK_TRANSFORM.${OPSYS}. The
deprecation warning was meant for BUILDLINK_TRANSFORM.${pkgbase}, but
since pkglint cannot distinguish between these, the warnings were wrong.
2019-11-17 01:26:25 +00:00
wiz
b0b2569805 evieext: remove, it's part of xorgproto now
Noted by taca.
2019-11-15 09:18:16 +00:00
rillig
7f67b9fbbe pkgtools/url2pkg: update to 19.3.6
Changes since 19.3.5:

No longer print a stack trace when Ctrl+C is pressed.
2019-11-14 20:03:47 +00:00
triaxx
4427cb5aec pkg_chk: add NO_CHECKSUM= yes to appease pkglint 2019-11-10 10:30:50 +00:00
triaxx
61e73ca199 pkg_chk: fix PR pkg/54675
Some OS (e.g. Arch Linux) do not have hostname in their base set of
packages.

pkgsrc changes:
---------------
  * Replace $(hostname) by $(uname -n).

Thanks jperkin@!
2019-11-10 10:25:43 +00:00
rillig
5d38f7a07a pkgtools/pkglint: update to 19.3.6
Changes since 19.3.5:

Improved indentation and alignment of multi-line variable assignments.

Improved indentation of multi-line shell commands.

Added warning for adding unquoted words to PKG_FAIL_REASON, which is a
list of messages, one per line.

Lines that start with tabs followed by a # are not shell commands, they
are comments. Bmake treats them in the same way.

Change the type of BROKEN to be a list of messages, instead of a single
message. This allows at least a bit of formatting in the error messages.
2019-11-04 18:44:21 +00:00
wiz
6c1e67a77b pkgin: fix build with gcc-8.x
Turn off string truncation and overflow warnings until the code is fixed
2019-11-04 08:39:04 +00:00
rillig
f2837a2c0f pkgtools/pkglint: update to 19.3.5
Changes since 19.3.4:

Variable uses in parentheses (such as $(VAR) instead of ${VAR}) are
treated the same. The ones in parentheses had less support before.

Improved the checks for options.mk files, adding support for options
that are defined using .for loops and those referring to other
variables.

Packages that set DISTFILES to an empty list no longer require a
distinfo file.

Patches whose filename contains the word CVE may patch more than one
target file.
2019-11-02 16:37:48 +00:00
rillig
d4cef40230 pkgtools/pkglint: update to 19.3.4
Changes since 19.3.3:

In cases where the conditions for including buildlink3.mk files differ
between the package itself and its own buildlink3.mk file, explain how
to determine PKG_OPTIONS for dependencies.

Don't issue wrong warnings in options.mk files when the options are
handled in a .for loop.
2019-11-01 19:56:52 +00:00
rillig
5e88ef68e9 pkgtools/url2pkg: update to 19.3.5
Changes since 19.3.4:

Added the license names from R2pkg and texlive2pkg.
2019-10-28 20:17:24 +00:00
rillig
32b1197bb9 pkgtools/url2pkg: update to 19.3.4
Changes since 19.3.3:

The code that handles license names is the same for Python and Perl
modules.

Python packages that use distutils.extension can be handled. An example
package is devel/py-pysha3.

The DESCR file is filled from the package's README file.

The PLIST is generated with some comments providing further assistance.
2019-10-27 19:19:54 +00:00
rillig
7e9533246a pkgtools/url2pkg: move license handling from Python to common code
This way, the code is shared between Python modules, Perl modules, and
maybe in the future R packages.

No functional change.
2019-10-27 13:15:04 +00:00
rillig
48ebfd0f74 pkgtools/pkglint: update to 19.3.3
Changes since 19.3.2:

The rationale for variables like BROKEN, GCC_REQD and for direct
inclusion of builtin.mk files may span multiple lines, and it may end
with an empty comment line.
2019-10-26 11:43:36 +00:00
rillig
fe85bf5b22 pkgtools/pkglint: update to 19.3.2
Changes since 19.3.1:

* Pkglint no longer warns about a missing :Q modifier if there is also
  a :D modifier, since the latter hides the original variable value
  from the expression value.

* Variable names like .CURDIR are now allowed in the _VARGROUPS section.

* In dependency lines like "${_COOKIE.extract}:", pkglint no longer
  warns about the unknown target. No matter whether this is a file name
  or even a list of other targets, there's no chance for a typo here.

* If some dependencies are included conditionally, and the package
  Makefile and buildlink3.mk disagree, and the conditions depend on
  PKG_OPTIONS, pkglint outputs a helpful explanation.

* The check for including builtin.mk directly can be disabled by giving
  a reason in a comment at the end of the line.
2019-10-26 09:51:47 +00:00
rillig
e21dca09cc pkgtools/R2pkg: format source code 2019-10-25 19:00:16 +00:00
rillig
941232a552 pkgtools/R2pkg: remove unused code 2019-10-19 22:10:58 +00:00
rillig
4aeb97616f pkgtools/R2pkg: refactoring 2019-10-19 21:32:02 +00:00
rillig
d5d380541c pkgtools/R2pkg: refactoring, tests 2019-10-19 21:12:18 +00:00
rillig
330530e02e pkgtools/R2pkg: make license handling code simpler 2019-10-19 19:10:31 +00:00
rillig
9f3bbc66d1 pkgtools/R2pkg: create fewer temporary files 2019-10-19 18:47:59 +00:00
rillig
e1a3e3d515 pkgtools/R2pkg: code cleanup, use fewer temporary files 2019-10-19 18:43:51 +00:00
rillig
7592d88865 pkgtools/R2pkg: make USE_LANGUAGES code simpler 2019-10-19 17:30:10 +00:00
rillig
5cb91c7b35 pkgtools/R2pkg: clean up shell program 2019-10-19 17:15:00 +00:00
rillig
80b0ad0df6 pkgtools/R2pkg: clean up shell program 2019-10-19 16:18:55 +00:00
rillig
592516565b pkgtools/R2pkg: update to 0.6.3
Changes since 0.6.1:

* Fix comparison of articles (a, an) in comments.
2019-10-19 15:47:03 +00:00
rillig
7cbd7fcc3d pkgtools/R2pkg: refactoring, tests 2019-10-19 14:52:40 +00:00
rillig
d74b3e43fa pkgtools/R2pkg: code cleanup 2019-10-19 13:55:09 +00:00
rillig
1a6da8e03d pkgtools/R2pkg: refactoring, tests 2019-10-19 13:37:00 +00:00
rillig
5b63090125 pkgtools/R2pkg: refactoring, tests 2019-10-19 11:47:23 +00:00
rillig
45180f7fb3 pkgtools/R2pkg: refactoring, tests 2019-10-19 11:04:46 +00:00
rillig
c3eb38efc4 pkgtools/R2pkg: make write.Makefile simpler 2019-10-18 22:10:46 +00:00
rillig
b36cbe9825 pkgtools/R2pkg: refactorings, tests 2019-10-18 21:42:20 +00:00
rillig
18e20d3517 pkgtools/R2pkg: remove unused code, add tests 2019-10-18 17:18:03 +00:00