Commit graph

5788 commits

Author SHA1 Message Date
gutteridge
ef0a7a6162 digest: catch configure.ac up with configure 2022-02-17 17:34:56 +00:00
wiz
4ff0627584 p5-pkgsrc-Dewey: reset maintainer 2022-02-16 10:25:44 +00:00
mcf
b631703ee1 digest: fix aliasing bug with gcc 11
gcc 11 with -O2 optimizes away the store of the bit length into the
last 8 bytes of the context buffer due to an aliasing violation
(stored through uint64_t, retrieved through uint32_t).

To fix this, import the NetBSD patch from christos[0] which makes
it use memcpy instead.

[0] http://cvsweb.netbsd.org/bsdweb.cgi/src/common/lib/libc/hash/sha2/sha2.c.diff?r1=1.12&r2=1.13
2022-02-15 05:25:38 +00:00
bsiegert
ebe4158c52 Revump all Go packages after go117 update 2022-02-13 19:24:21 +00:00
rillig
c91a1522a9 url2pkg: make code for analyzing CPAN URLs simpler
No functional change.
2022-02-08 20:48:09 +00:00
rillig
655d89356b url2pkg: add support for metacpan.org URLs 2022-02-06 21:07:44 +00:00
rillig
dfcd1085ac url2pkg: for Python packages, prefix directory name with 'py-' 2022-02-06 20:08:49 +00:00
rillig
dcb4085ec2 url2pkg: allow url2pkg to be run from a category directory as well
Previously, it was necessary to create the package directory, change
into it and then run url2pkg from there.  Since the name of the package
directory usually corresponds to DISTNAME without the version number,
all necessary data is readily available, so automate this.

Update version to 21.4.2.
2022-02-06 18:42:26 +00:00
rillig
8c4e7ff7a8 url2pkg: only accept a single URL as command line argument 2022-02-06 18:04:50 +00:00
rillig
877fdb4a8e url2pkg: extract code for analyzing the distfile URL
In a few commits, this will allow url2pkg to be run from a category
directory, thereby omitting the need to create the package directory
manually.

No functional change.
2022-02-06 18:00:08 +00:00
rillig
5ba3ff9ce7 url2pkg: add type annotation for usage 2022-02-06 17:11:37 +00:00
schmonz
61d1ca6e58 Go has dropped support for Darwin-*-i386. 2022-01-28 20:38:18 +00:00
rillig
600b65b9c3 pkgtools/pkglint: update to 21.4.2
Changes since 21.4.1:

When checking a package, check for naming collision with other packages
from the same category, on case-insensitive file systems.  For packages
from pkgsrc-wip, additionally perform the same check for the main
category of the package, to prepare for importing the package.
2022-01-16 19:14:51 +00:00
bsiegert
69b9f4cba9 Revbump all Go packages after go117 update 2022-01-09 20:10:29 +00:00
rillig
1a356738ae url2pkg: improve MASTER_SITES and HOMEPAGE for PyPI packages
https://mail-index.netbsd.org/tech-pkg/2021/12/31/msg025908.html

Bump version.
2022-01-01 15:29:14 +00:00
rillig
f029d070dd url2pkg: test current behavior for PyPI downloads 2022-01-01 15:04:58 +00:00
rillig
06d90fdb80 url2pkg: remove interactivity
In the first phase, url2pkg generates a minimal package Makefile, barely
enough for downloading the distfile from the given URL.  That part runs
fully automated in almost all cases, so there is no need to invoke the
editor at this point.

After adjusting the package Makefile based on the downloaded and
extracted distfile, url2pkg has done its job, so there is no reason to
run the editor there as well.

Bump version.
2022-01-01 14:04:11 +00:00
rillig
c95b00ad0b lintpkgsrc: fix bogus warning for devel/lua-moses
The warning was:

	Bogus: -${DISTNAME:tl:S/-1$//1}
	    (from /.../devel/lua-moses/Makefile)

Previously, lintpkgsrc searched for the package name and version by
looking for '-' followed by a digit.  This was too naive, as in the
above expression, the '-1' does not mark the beginning of the version
number.  Fix this by resorting to 'make show-vars' in all cases in which
the PKGNAME still contains a '$'.

When running 'lintpkgsrc -Dp devel/lua-moses' with a relative directory
as argument, lintpkgsrc tried 'cd /lua-moses' and ignored the failure,
running 'make show-vars' in the current directory instead, which in my
case was the top-level pkgsrc directory.

Bump version.
2022-01-01 13:27:37 +00:00
rillig
f4f2d9ce42 pkgtools/pkglint: update to 21.4.1
Changes since 21.4.0:

Running 'pkglint doc/CHANGES-2021' now warns about issues for this
single file.  Previously, it was necessary to specify '-Cglobal' as
well, but then pkglint also warned about issues in all other CHANGES
files.

Pkglint no longer warns about the characters '!' and '@' in
GO_MODULES_FILES, since these are legitimate.  Fixes PR pkg/56595.

Small cleanups in the pkglint testing infrastructure.
2022-01-01 12:44:24 +00:00
rillig
368db9a7f4 pkglint: update version number to match the upcoming branch
No changes since 21.3.4.
2021-12-26 16:56:47 +00:00
nia
22dd74af0b pkg_install: only enable IPv6 on operating systems that support it
needed for UnixWare, reported by Boyd Lynn Gerber
2021-12-24 11:37:38 +00:00
bsiegert
169637478c Revbump all Go packages after go117 update 2021-12-09 17:50:09 +00:00
adam
b6d9bd86bc revbump for icu and libffi 2021-12-08 16:01:42 +00:00
wiz
ea868f230b pbulk: make rsync dependency a default-on option 2021-12-06 11:21:19 +00:00
jperkin
a158da9ea3 pkgin: Update to 21.12.0.
## Version 21.12.0 (2021-12-01)

 * Manual page fixes.
 * Avoid crash when FILE_SIZE is invalid in a remote repository.
2021-12-01 12:20:58 +00:00
rillig
415c192a00 pkgtools/pkglint: update to 21.3.4
Changes since 21.3.3:

For wip packages, allow SHA1 to be used as digest algorithm.  An example
package that needs this is wip/doomlegacy-devel.
2021-11-20 18:06:13 +00:00
jperkin
a448fba183 pkg_install: Switch to posix_spawn() on newer macOS.
vfork() no longer works on Monterey and causes serious intermittent issues
when upgrading pkg_install.  Forking the INSTALL and DEINSTALL scripts can
sometimes fail, due to the underlying pkg_add/pkg_delete binaries having
been changed or removed, leaving the system broken with no package tools.

The manual page suggests using posix_spawn() instead and that appears to
work correctly.  The code has been laid out so that it's easy enough to
switch other platforms to posix_spawn() too if required, or for improved
performance, and has been verified to work successfully on SmartOS.

Bump pkg_install version to 20211115.
2021-11-15 12:48:23 +00:00
rillig
a5d9d94af5 pkgtools/url2pkg: update to 21.3.0
Changes since 21.1.0:

When creating a package from a GitHub archive URL, make the generated
package simpler and place the distfile in the main directory instead of
using DIST_SUBDIR.
2021-11-14 09:20:15 +00:00
rillig
9fd3cbb08f pkgtools/url2pkg: add test for overly complicated package definition
Seen in wip/netmask.
2021-11-14 08:57:15 +00:00
rillig
31fa2308f3 pkgtools/pkglint: update to 21.3.3
Changes since 21.3.2:

Explain warning about invalid symlink.

Do not warn when a package uses MAKE_JOBS without adding it to
BUILD_DEFS, since MAKE_JOBS is supposed to be a build-time only
variable.
2021-11-13 21:20:59 +00:00
christos
9df3ff53c7 abstract check for "*path == '/'" to isabs(*path) 2021-11-07 12:38:12 +00:00
bsiegert
41533c256a Revbump all Go packages after go117 update 2021-11-05 20:02:39 +00:00
jperkin
720775716e pkg_install: Add an explicit dummy DEINSTALL script.
Even with DEINSTALL_SRC set empty, changes in the pkgsrc infrastructure over
the past few years will now create a dynamic +DEINSTALL script regardless,
and while only containing "exit 0", may have a #! using a shell from pkgsrc.

This can lead to upgrade issues if that shell happens to be unavailable
while pkg_install is being upgraded.  Creating our own dummy script that
explicitly uses /bin/sh avoids that problem.
2021-11-03 13:37:25 +00:00
rillig
f674d1d912 pkglint: update to 21.3.2
Changes since 21.3.1:

Replace RMD160 with BLAKE2s for distfiles in main pkgsrc, keep the
previous RMD160 for pkgsrc-wip, at least until 2021Q4.
2021-10-28 20:15:25 +00:00
nia
406ad3b7c1 pkgtools: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
2021-10-26 11:11:07 +00:00
nia
febf721231 digest: match b2sum in terms of capitalizing BLAKE2s/BLAKE2b 2021-10-23 18:09:13 +00:00
jperkin
c188c2a6c8 pkg_install: Update to 20211021.
Apply patch from Michal Maruska in NetBSD/pkgsrc#95 to ensure package files
are correctly cleaned up should the POST-INSTALL script phase fail.
2021-10-21 13:05:25 +00:00
jperkin
97ff1a0fcd pkgin: Update to 21.10.1.
## Version 21.10.1 (2021-10-20)

 * Free memory correctly when building package lists for printing.  Reduces
   memory usage considerably when operating on a large number of packages.

 * Avoid infinite loop in package linked list when handling pkg_install.
2021-10-20 08:18:57 +00:00
nia
87598c1aa3 pkgin: Prefer gzip on more 32-bit archs. 2021-10-17 10:06:28 +00:00
jperkin
9275429f08 pkgin: Update to 21.10.0.
Add new pkgin-prefer-gzip option to support the feature listed below, and
activate it by default on what I believe are MACHINE_ARCH that would most
benefit from it - no offence intended ;)

## Version 21.10.0 (2021-10-12)

 * Support building with -DPREFER_GZIP_SUMMARY which will attempt to fetch
   pkg_summary.gz first, useful on slower machines with limited memory.
2021-10-12 12:46:14 +00:00
rillig
34ceab78b3 pkgtools/pkglint: update to 21.3.1
Changes since 21.3.0:

When checking a standalone makefile fragment, pkglint reports redundant
variable declarations.

In pathname patterns, spaces and other escaping is allowed. This is
needed for devel/meson. While here, register MESON_REQD.

Adjust to the removal of SHA1 for distfiles. Only RMD160, SHA512 and
Size remain now. Patches continue to use SHA1 since they don't come
via untrusted paths.
2021-10-09 08:33:09 +00:00
bsiegert
a235babfa8 Revbump all Go packages after go117 update 2021-10-08 18:55:02 +00:00
nia
d171eeaf22 parallel: Remove SHA1 hashes for distfiles 2021-10-07 14:46:45 +00:00
nia
ed8b04124a digest: Remove _POSIX_C_SOURCE. PR pkg/56439 2021-10-05 15:38:48 +00:00
nia
3ad627bc4b digest: correct hash size of blake2s 2021-09-29 13:10:40 +00:00
nia
3a767dae04 digest: Add blake2s hash. 2021-09-28 13:05:08 +00:00
rillig
023df4868b pkglint: update to 21.3.0
No changes since 21.2.6, the version bump is only to mark it for the
upcoming stable branch.
2021-09-27 09:24:59 +00:00
bsiegert
a7061b5550 Revbump all Go packages after go117 update 2021-09-17 13:52:45 +00:00
khorben
59c52efd5e rc.subr: update to version 20210830
This introduces the function load_rc_config_var(), as provided by NetBSD's own
rc.subr.

Tested on NetBSD/amd64 (unprivileged).
2021-08-30 21:45:02 +00:00
nia
ec204f8acc pkg_comp1: update default pkgdb dir 2021-08-20 06:39:41 +00:00