Commit graph

5820 commits

Author SHA1 Message Date
markd
41cbc66cf3 texlive2pkg: update to 1.10
bump default to 2021
fixup some license matches
2021-06-06 23:32:40 +00:00
rillig
c34b30ef10 pkgtools/pkglint: update to 21.1.4
Changes since 21.1.3:

Allow slash in Git tags like 'refs/tags/v1.0.0', as well as in make
targets like 'subdir/build'.
2021-06-06 11:46:43 +00:00
rillig
7be8da2d40 pkgtools/pkglint: update to 21.1.3
Changes since 21.1.2:

The entries in doc/CHANGES are checked more strictly, they must always
consist of 4 words (for removed packages) or 6 words (for all other
changes).

Packages that include curses.buildlink3.mk may use all buildlink3
variables with the identifier "curses".  The previous pkglint warnings
had been wrong.

Python packages that directly contain .egg-info in their PLIST files
should include egg.mk instead.  Pkglint can now fix these packages
automatically.
2021-06-06 07:41:34 +00:00
nia
eee8485a28 pkg_install: remove MESSAGE_SUBST 2021-06-05 14:17:32 +00:00
nia
0629e8f7b6 pkg_install: remove MESSAGE file
this completely fills the screen when it gets printed in the NetBSD
installer, and contains documentation that belongs (and is) elsewhere.
2021-06-05 14:17:05 +00:00
khorben
fc24ee15b4 rc.subr: update to version 20210517
This is part 2 to support additional platforms with the RC scripts provided in
pkgsrc, in privileged as well as in unprivileged mode, including on NetBSD.

These changes:
- install rc.subr to PKG_SYSCONFDIR if SYSCONFBASE is not /etc
- let RC scripts source rc.subr in PKG_SYSCONFDIR
- effectively allow unprivileged setups to run RC scripts easily
- in addition, give a chance for more platforms to run RC scripts

Tested in privileged and unprivileged modes on NetBSD/amd64, and unprivileged
mode on Darwin/amd64; submitted for review on tech-pkg@.
2021-05-30 23:46:26 +00:00
rillig
2940af4f90 pkglint: update to 21.1.2
Changes since 21.1.1:

Fixed the check for BUILDLINK3_PKGSRCDIR.  Previously, pkglint had
complained about ${_EMACS_PKGDIR} in buildlink3.mk.
2021-05-25 21:48:46 +00:00
rillig
dedff187d7 url2pkg: fix dependency pattern for buildlink3 Python dependencies
This includes the PYPKGPREFIX for Python dependencies, whether or not
they use buildlink3.
2021-05-25 17:56:24 +00:00
rillig
a528b093da url2pkg: generate proper package name for Python dependencies
Reported by Brook Milligan via private mail.
2021-05-25 17:44:08 +00:00
rillig
e2ea04d5a2 url2pkg: break long lines, no functional change 2021-05-25 17:14:44 +00:00
wiz
6eae1297d5 *: recursive bump for perl 5.34 2021-05-24 19:49:01 +00:00
adam
423722857c Adjust PGSQL_VERSIONS_ACCEPTED 2021-05-24 08:23:18 +00:00
rillig
ad0574db90 url2pkg: update to 21.1.0
Changes since 20.4.0:

Fixed handling of GitHub archive URLs with extra slashes, such as
https://github.com/org/proj/archive/refs/tags/1.0.0.tar.gz.
2021-05-23 16:27:39 +00:00
rillig
fc03d1df14 url2pkg: add test for GitHub URL that leads to wrong DISTNAME
Reported by Brook Milligan via private mail.
2021-05-23 16:20:46 +00:00
wiz
6e6f8533c9 pkgsrc-todo: fix old bug that broke adding entries at the end of the list
Bump version.
2021-05-20 10:51:41 +00:00
martin
bab2dc504d Adapt outdated defaults to recent openssl versions 2021-05-17 15:38:55 +00:00
nia
f3199fd0d6 pkg: use libbsd on non-bsd systems 2021-05-14 12:05:38 +00:00
wiz
2cd1330a57 plist-utils: remove __RCS_Id to increase portability
XXX: still uses the unportable fgetln
2021-05-11 09:24:17 +00:00
bsiegert
2af0bedf36 Revbump all Go packages after go116 update 2021-05-08 15:02:22 +00:00
gutteridge
29041ab830 x11-links: add some more links to reflect NetBSD 9.99.82 2021-04-29 02:58:48 +00:00
pho
f8858c6a62 Correct the order of redirection 2021-04-22 08:54:18 +00:00
adam
9d0e79c401 revbump for textproc/icu 2021-04-21 11:40:12 +00:00
rillig
d83afd3b35 pkgtools/pkglint: update to 21.1.1
Changes since 21.1.0:

Added check for packages that have been migrated to Meson but still
refer to their previous build system, most often involving GNU make and
GNU autotools.  Suggested by nia.
2021-04-17 18:10:14 +00:00
rhialto
5b2c612bfe pkg_rolling-replace: catch permission errors from pkg_admin
and print a friendlier warning message instead (only once).
Document that the mismatch state may not persist if permissions are
insufficient.
2021-04-13 17:51:21 +00:00
nia
2c981551fd pkg_install: add a cast to satisfy GCC, NFCI 2021-04-10 20:10:48 +00:00
nia
a7abeffa70 pkg_install-20210410: simplify checking for netbsd versions
only care about the first number, unless it's -current
2021-04-10 11:36:56 +00:00
rillig
2d305569db pkgtools/pkglint: bump version to 21.1.0
Just to match the upcoming pkgsrc branch 2021Q1.  No functional change.
2021-03-25 21:55:05 +00:00
rillig
0c499ed7a4 pkgtools/pkglint: update to 20.4.2
Changes since 20.4.1:

Error out on package directories that differ only in case.  This ensures
that pkgsrc can be used on case-insensitive file systems as well, such
as on macOS or Windows.
2021-03-22 23:26:30 +00:00
rillig
b357bab078 pkgtools/pkglint: update to 20.4.1
Changes since 20.4.0:

When a package has MAINTAINER set and there are modified local files,
only remind the user once per package that changes should likely be
approved by the maintainer.  Previously there was a reminder once per
file, which was just too much for a package that has Makefile and PLIST
and maybe some patches changed.

Small performance improvement for loading the doc/CHANGES files, since
that costs a few tenths of seconds at every startup.
2021-03-20 23:32:43 +00:00
bsiegert
f6095694fd Revbump all Go packages after go115 update 2021-03-19 17:36:46 +00:00
nia
43676aeadb pkg_install-20210308
- update pkg_add's examples in its man page for 2021 compliance.
2021-03-08 15:25:47 +00:00
ryoon
308e0736b1 pkg_install: Bump PKGREVISON to include odbl-v1 as acceptable license 2021-03-06 04:41:53 +00:00
ryoon
18113c40e6 pkg_install: Add odbl-v1 to default acceptable license list 2021-03-06 04:37:28 +00:00
nia
c84fb7cc75 check-portability: Skip more irrelevant file extensions 2021-03-03 10:19:59 +00:00
markd
e68a1c8da2 texlive2pkg: update to 1.9
change default version to 2020

restructure license handling
2021-02-20 05:08:37 +00:00
rillig
98fecffc73 pkgtools/pkglint: fix manpage and catpage installation
Reported by Chris Pinnock via private mail.
2021-02-13 15:30:23 +00:00
bsiegert
9956fb746f Revbump all Go packages after go115 update 2021-01-23 14:22:52 +00:00
jperkin
98c16dda3a mksandbox: Update to version 1.10.
Change the /dev/shm handling on Linux to account for systemd being a complete
nightmare and changing mount types behind your back automatically.

The previous fixed works fine, until it magically changes from a tmpfs with
1777 permissions to a devtmpfs with 0755 permissions, with obvious failures
resulting when building as non-root.

Tested on el6 and el7, with the latter now reliably able to build Python.
2021-01-22 11:59:52 +00:00
tnn
f82f98a0c5 pkg_rr: substitute pkg_admin with PKG_ADMIN_CMD. Bump to 0.24.10. 2021-01-15 10:56:52 +00:00
rhialto
fd4ea6db8e pkgtools/pkg_rolling-replace: Update to 0.24.9
When using the -u option to find mismatched packages, mark each affected
package with 'mismatch=YES'. Otherwise, consider such packages as
targets to rebuild.
ok gdt@.
2021-01-09 19:12:46 +00:00
riastradh
32ddee07dd pbulk: Avoid cleaning $prefix on every bulk build in master mode.
Whatever is in $prefix shouldn't affect the result -- both scanning
and building happen in the workers -- and it is a bit of a nasty
surprise for merely issuing bulkbuild-restart to nuke all the host's
installed packages.

ok joerg
2021-01-02 21:54:46 +00:00
jperkin
3d5974cc68 pkgin: Update to 20.12.1.
## Version 20.12.1 (2020-12-30)

 * Fix version selection of packages and dependencies for install.  Previously
   the first returned match would win, and preferred.conf was not considered
   for dependencies.
2020-12-30 09:21:22 +00:00
rillig
51dff228b6 pkgtools/url2pkg: bump version to 20.4.0 to match the upcoming branch 2020-12-28 01:48:19 +00:00
rillig
74d6177c30 pkgtools/pkglint: update to 20.4.0
No changes since 20.3.2, the version bump only synchronizes pkglint with
the upcoming branch.
2020-12-28 01:44:48 +00:00
maya
cea45b27e0 pkg_install-20201218
- Support continuing to install to /var/db/pkg if it exists and the
new pkgdb doesn't.
In the future, we can warn about this once we have tested advice that
we can give to users who want to move the location of pkgdb.

- Don't do anything about /var/db/pkg on non-NetBSD-base.
This creates conflicts with other package managers that also install to
/var/db/pkg.
2020-12-18 17:10:54 +00:00
rillig
bb4d1216d4 pkgtools/lintpkgsrc: update to 4.96
Changes since 4.95:

Do not complain about "Bogus: ${_SVN_PKGREVISION:...}" that are
generated by wip/mk/*-package.mk.  Using PKGREVISION to track the
current date of the package is the wrong approach; PKGVERSION_NOREV
should be used instead.  Anyway, this is nothing the average pkgsrc user
should be worried about, so shut up the warning for now.

https://mail-index.netbsd.org/pkgsrc-users/2020/12/16/msg032884.html
2020-12-17 16:17:44 +00:00
rillig
45c7d44f5e lintpkgsrc: remove trailing whitespace 2020-12-17 16:08:44 +00:00
jperkin
3c06f2c04f pkgin: Update to 20.12.0.
## Version 20.12.0 (2020-12-13)

 * Return correct MACHINE_ARCH when using $arch in repositories.conf.
2020-12-13 09:13:08 +00:00
wiz
010be68b75 pkg_install: carry over bugfix from src
christos: Don't try to memcpy (size_t)-1 bytes!
2020-12-12 19:25:19 +00:00
gutteridge
be7a4f5fc5 pkg_install: remove stray extra tab in perform.c 2020-12-12 04:12:47 +00:00
gutteridge
e8b0102e3d pkg_install: spaces->tabs for consistency in perform.c 2020-12-12 01:44:17 +00:00
wiz
963d7d00ba pkgin: just depend on pkg_install again
Bump PKGREVISION
2020-12-11 15:56:15 +00:00
wiz
a87bcbeb7a pkg_install-20201212: handle error case better
When pkg_delete fails, report it and error out.
2020-12-11 15:55:35 +00:00
jperkin
ffe4d41f92 pkg_install: Introduce support for CHECK_OS_VERSION.
When set to "no", pkg_add will not issue a warning if the host OS version does
not exactly match the OS version the package was built on.  This can be useful
on many OS where the kernel release version has nothing to do with userland
compatibility, or where it may differ without being ABI incompatible.

Ultimately it would be ideal if the version checks were smart enough across all
our supported OS to not need this, but until then this is useful for users who
know what they're doing.

Bump version to 20201211.
2020-12-11 10:06:53 +00:00
jperkin
c4face150c mksandbox: Copy mounts that are symlinks.
Resolves issues seen on newer Linux.  I've had this in my tree for a while,
ride previous version bump.
2020-12-07 13:05:12 +00:00
jperkin
1278ee7035 mksandbox: Update to version 1.9.
On Linux create an additional read/write bind mount for /dev/shm.  It should be
a tmpfs mount writeable by all users, whereas the default devtmpfs permissions
for the directory are 0755.

Fixes builds of newer python releases as a non-root user.
2020-12-07 12:35:52 +00:00
wiz
9480de01b1 pkg_install: update to 20201206
Convert a core dump I've been seeing into an error abort.
2020-12-06 17:23:09 +00:00
wiz
9975deff77 pkg_install: update to 20201205
Improve warning about old database to mention moving the refcount db too.
2020-12-05 16:17:41 +00:00
nia
f6dd9d2f87 Revbump packages with a runtime Python dep but no version prefix.
For the Python 3.8 default switch.
2020-12-04 20:44:57 +00:00
wiz
7ed702df9b pkgin: comment out pkg_install dependency
pkg_install required by mk is newer than what is required here, and the
DEPENDS here will always pull in the package even if the base system provides
a newer version.

Bump PKGREVISION.
2020-12-04 13:39:45 +00:00
riastradh
77697b790a Revbump for openpam cppflags change months ago, belatedly. 2020-12-04 04:55:41 +00:00
wiz
6ec5f1d9e7 pkg_install: remove two unused variables 2020-12-02 12:10:50 +00:00
wiz
f49aa64eb8 pkg_install: mark show_version as noreturn since it exits 2020-12-02 12:10:38 +00:00
wiz
e1908875f4 pkg_install: Merge some changes from NetBSD src/
No effective change intended, just ifdefs for bootstrapping.
2020-12-02 10:45:47 +00:00
wiz
c85d83c09c *: move default database directory from /var/db/pkg to ${PREFIX}/pkgdb
As discussed in August 2020 and previously on pkgsrcCon 2019.

Ok pkgsrc-pmc@
2020-12-02 10:22:39 +00:00
gutteridge
e9f2ddb23e verifypc: fix a typo in a comment 2020-12-02 01:03:40 +00:00
bsiegert
2915abcd8b Revbump all Go packages after go115 update 2020-11-13 19:26:03 +00:00
bsiegert
bea1f7d75a Revbump all Go packages after Go 1.15 update. 2020-11-08 21:59:09 +00:00
ryoon
2831546220 *: Recursive revbump from textproc/icu-68.1 2020-11-05 09:07:25 +00:00
ryoon
4675ccbc79 *: Recursive revbump from textproc/icu-68.1 2020-11-05 09:06:42 +00:00
jperkin
33012abda2 pkgin: Update to 20.11.0.
## Version 20.11.0 (2020-11-02)

 * Avoid segmentation fault when trying to install package conflicts.
 * Remove default 15 second download timeout, also fixing -fno-common.
 * Remove debugging code that snuck into the previous release.
2020-11-02 14:25:39 +00:00
maya
aa26c432dd Bootstrap: Fix bootstrap on FreeBSD 12.1, likely broken by an issue in lld.
It looks like lld doesn't want to statically link a libarchive without
resolving all of the symbols, even if only a few symbols are used.

In order to resolve all of the symbols, we need to also link with -lmd.
One generic way to do so is inspect Libs.private in the pkgconfig file.

While pkgsrc is likely not at fault here, having a dysfunctional bootstrap
is bad. We should check again in the future to see if this can be removed.

Actually fixes PR pkg/55400.
2020-10-28 16:52:43 +00:00
rillig
4663533aca pkgtools/pkglint: update to 20.3.2
Changes since 20.3.1:

The available Java versions are parsed from mk/java-vm.mk instead of
hard-coding them in pkglint.
2020-10-26 22:13:23 +00:00
maya
d48d1e6cf2 x11-links 1.32: updates for freetype 2.10.4 2020-10-21 15:18:30 +00:00
rillig
5d0523f3b0 pkgtools/url2pkg: update to 20.3.0
Changes since 20.2.0:

Fixed detection for V2 Cargo.lock files.  Patch provided by snow flurry
via tech-pkg, slightly adjusted.  The test case for Cargo.lock file
detection had been incomplete and unrealistic.  It has been extended to
show the relevant section of a whole package.

https://mail-index.netbsd.org/tech-pkg/2020/10/12/msg023897.html
https://mail-index.netbsd.org/tech-pkg/2020/10/13/msg023901.html
https://mail-index.netbsd.org/tech-pkg/2020/10/13/msg023902.html
2020-10-17 22:39:00 +00:00
bsiegert
de10215f91 Revbump all Go packages after go115 update. 2020-10-15 13:08:12 +00:00
bacon
87edcb24b1 math/blas, math/lapack: Install interchangeable BLAS system
Install the new interchangeable BLAS system created by Thomas Orgis,
currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and
Apple's Accelerate.framework.  This system allows the user to select any
BLAS implementation without modifying packages or using package options, by
setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details.

This commit should not alter behavior of existing packages as the system
defaults to Netlib BLAS/LAPACK, which until now has been the only supported
implementation.

Details:

Add new mk/blas.buildlink3.mk for inclusion in dependent packages
Install compatible Netlib math/blas and math/lapack packages
Update math/blas and math/lapack MAINTAINER approved by adam@
OpenBLAS, cblas, and lapacke will follow in separate commits
Update direct dependents to use mk/blas.buildlink3.mk
Perform recursive revbump
2020-10-12 21:51:57 +00:00
mcf
6df575e40c pkg_install: fix stage in verbose log message
This function is also used to run with POST-INSTALL, so adjust the
log message to match the argument passed to the install script.
2020-10-09 07:37:20 +00:00
rillig
a2d164ca60 pkgtools/pkglint: update to 20.3.1
Changes since 20.3.0:

URLs from cpan.metacpan.org should not be used as HOMEPAGE for Perl
packages since they don't provide an overview over the package, instead
the just list the distribution files.

Lines in doc/CHANGES may contain the pattern "Removed <pkgpath> version
<version>".  Before, only "Removed <pkgpath>" (without additional
information) or "Removed <pkgpath> successor <pkgpath>" were allowed.
Mentioning the last seen version number sounds useful.  It is not
cross-checked right now; that check may be added later.
2020-10-06 18:40:50 +00:00
jperkin
6a2c352e2e pkgin: The cat page is no more. 2020-10-06 15:15:31 +00:00
rillig
49a507177c pkgtools/pkglint: update to 20.3.0
Changes since 20.2.6:

None
2020-09-25 13:56:09 +00:00
khorben
0742b9d1de pkg: update to version 1.10.99.7
Changes from pkg 1.10.99.6 to 1.10.99.7
- Sort fts traversal in repo creation
- Fix floating pint exception when packaging packages with weird elf files
- More test cases for config merge
- Fix running the testsuite on linux and osx
- Fix pkg version regarding flavors
- Add support for creating packages with a hash in their names
- Accept DT_SONAME anywhere in .dynamic
- make pkg version -r imply -R
- Some fixes for the progression display
- Rename some variables in security periodic scripts.
- Parse FreeBSD OS version and forbid to install too new packages

Changes from pkg 1.10.99.5 to 1.10.99.6
- Lots of fixes/improvements on periodic scripts
- Fix typo in the .pc file
- Only check for origin if the strings contains / in pkg version
- Support flags when exporting the metalog
- Ignore flags when installing as a user
- fix again using pattern as package arch
- recognize armv7
- add %q to pkg_printf(3) and pkg-query(8) to print altabi
- add an extra line when printing pkg-messages to improve readability
- stop considering nfs as dangerous and if a corruption happens on nfs drive
  by a message the user to the highly possible reason of the corruption so
  he can fix
- zsh completion imrpovements

Changes from pkg 1.10.99.4 to 1.10.99.5
- pkg clean is now happy if the cache dir non existing
- 410.pkg-audit now uses anticongestion on freebsd 12
- fix pkg install -r foo if foo is a disabled repository
- fix elf handling on non FreeBSD
- fix support for platforms without AT_SYMLINK_NOFOLLOW
- fix dropping privileges on Linux
- fix build with recent libbsd
- fix duplicate pkg registration overwriting the existing pkg
- better ABI name on linux
- lots of changes in internal API to use fd when possible
- removed option: pkg repo -L

Changes from pkg 1.10
- Use dep_formula in the solver
- Cache pw result to avoid over reloading nssswitch.conf
- Remove pkg2ng and support for pkg_ databases
2020-09-21 03:03:55 +00:00
wiz
c8981bab2c pkg_notify: update to 0.4.8.
Fix improved github handling.
2020-09-20 11:25:41 +00:00
gutteridge
07c7375011 lintpkgsrc: fix grammar in message 2020-09-16 02:03:57 +00:00
wiz
e0aa26a942 pkg_install: carry over a commit from the src tree
Module Name:    src
Committed By:   christos
Date:           Mon Sep  7 00:36:53 UTC 2020

Modified Files:
        src/external/bsd/pkg_install/dist/lib: plist.c

Log Message:
Avoid strict aliasing issue by using a separate buffer..


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/pkg_install/dist/lib/plist.c
2020-09-07 23:46:42 +00:00
bsiegert
43f54ecac5 Revbump all Go packages after default Go version was changed to 1.15.1 2020-09-03 07:29:32 +00:00
wiz
00da7815c0 *: bump PKGREVISION for perl-5.32. 2020-08-31 18:06:29 +00:00
js
d224d1e96f Fix bootstrap on QNX
Tested with QNX 6.5.0SP1.

Two things were needed:

 * bootstrap needs to export ACCEPT_INFERIOR_RM_PROGRAM=yes on QNX,
   because libarchive checks for "rm -f" (with no arguments) working in
   configure. It doesn't seem to actually use it during the build, so
   this works.
 * QNX.sys.mk sets LORDER to echo, but sets TSORT to tsort -q. This
   results in tsort complaining about having an uneven number of inputs,
   since of course there are no dependency pairs.
   Hence, if LORDER is overridden to echo, TSORT also needs to be
   overridden to cat. Interestingly, Linux.sys.mk also sets LORDER=echo
   and TSORT=tsort -q, so it's surprising this isn't broken as well?
2020-08-29 20:11:21 +00:00
jperkin
0571d63d09 pkgin: Update to 20.8.0.
## Version 20.8.0 (2020-08-28)

 * Avoid segmentation faults across a few different scenarios.
2020-08-28 16:21:09 +00:00
gutteridge
6224e238c6 rpm2pkg: grammar and spelling fixes in rpm2pkg.8 2020-08-26 21:09:47 +00:00
wiz
a2a7dd093d pkg_notify: update to 0.4.7.
Improve github release detection.
2020-08-24 13:43:40 +00:00
gutteridge
1990686f02 revbump: adjust the man page to reflect current functionality 2020-08-24 04:48:23 +00:00
leot
953ab724e1 *: revbump after fontconfig bl3 changes (libuuid removal) 2020-08-17 20:19:01 +00:00
tnn
4ac2452951 lintpkgsrc: update to 4.95
Use xargs when executing digest for -m.
PR pkg/48335: error when using -m and too many files in DISTDIR
2020-08-17 02:38:54 +00:00
wiz
e763114893 pkgtools/Makefile: + import-package 2020-08-16 20:58:47 +00:00
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