Commit graph

5807 commits

Author SHA1 Message Date
tnn
b569b6ff54 check-portability: drop -ggdb (gets stripped by default regardless) 2022-05-14 13:00:46 +00:00
bsiegert
12cb73e64f Revbump all Go packages after go118 update 2022-05-11 19:26:18 +00:00
schmonz
2c4f9b30b5 Avoid finding pkgsrc-installed bash, as it won't be in the sandbox. Bump
PKGREVISION.
2022-05-08 20:26:52 +00:00
jperkin
a93b3dc4b2 pkgdiff: Update to 1.10.
Unlink files in mkpatches before new files are moved into place.  Avoids .nfs*
warts when creating patches on an NFS file system.
2022-05-08 12:29:51 +00:00
nia
97b55bfb07 x11-links: add include files used by the xorg server's modular drivers 2022-04-30 09:35:05 +00:00
rillig
8856ba874c lintpkgsrc: fix Perl warning when parsing variable expressions
When parse-guessing a package Makefile, lintpkgsrc tries to evaluate
variable expressions such as ${VAR:S,from,to,} by passing them through
Perl's eval function.

In a variable expression of the form ${VAR:S,@exec@,${exec},}, this
produced Perl warnings due to the unescaped '@':

	Possible unintended interpolation of @exec in string at
	(eval 63841) line 1.

As a quick fix, skip ':S' modifiers that contain the character '@' for
now.  A proper fix will follow.
2022-04-27 22:24:16 +00:00
wiz
a8c27227e2 *: remove some references to postgresql 9.6 2022-04-25 06:25:43 +00:00
wiz
1e1ab83a86 pkg_install: sync allowed licenses with mk/ 2022-04-20 21:47:26 +00:00
adam
f5e35d538b revbump for textproc/icu update 2022-04-18 19:09:40 +00:00
markd
e210644935 texlive2pkg: update to 1.11
add additional license mapping
bump default version to 2022
2022-04-17 11:13:06 +00:00
bsiegert
865174470d Revbump all Go packages after go117 update 2022-04-13 07:50:51 +00:00
ryoon
d31a83af99 cwrappers: Fix build 2022-04-04 11:54:35 +00:00
riastradh
81729c2501 cwrappers: Add cross-compilation support.
- New option `sysroot=<dir>':
  . Wrapper will add `--sysroot=<dir>' as first argument.
  . For every rpath argument, e.g. -Wl,-R<path> to cc, wrapper will
    pass `-rpath-link <dir><path>' to the linker.
  This matches the old mk/wrapper/cmd-sink-cross-* logic.

- Create wrappers for the ${MACHINE_GNU_PLATFORM}-cc style of command,
  as in ${CC}, ${CXX}, ${LD} for cross-builds.

- Bump version.

- Use TOOL_DEPENDS, not BUILD_DEPENDS, for cwrappers.
2022-04-04 11:22:50 +00:00
wiz
0be2143088 rdigest: fix patch context so this builds again 2022-03-25 10:30:25 +00:00
rillig
1983b2ad0e pkgtools/pkglint: update to 22.1.0
Changes since 21.4.4:

Python packages that declare 2.7 as an incompatible Python version no
longer need to provide a rationale for this since it is common knowledge
that Python 2.7 is old and therefore unsupported by many modern
packages.
2022-03-21 22:30:06 +00:00
wiz
7665cddf4e pkg_p5up2date: update to 0.07.
Write more useful entries in case 'make show-vars' fails.
2022-03-20 08:09:55 +00:00
rillig
f17e514df7 pkgtools/pkglint: update to 21.4.4
Changes since 21.4.3:

Do not install the pkglint source code and libraries since no other tool
uses them.
2022-03-12 12:03:40 +00:00
rillig
10b879157c pkgtools/pkglint: update to 21.4.3
Changes since 21.4.2:

In simple Makefiles, do not allow the GitHub variables like
GITHUB_RELEASE to occur above DISTNAME anymore.  Previously, these
variables had 2 possible places in the "canonical" order.
2022-03-11 00:33:12 +00:00
bsiegert
e2ad32e62b Revbump all Go packages after go117 update 2022-03-07 09:14:02 +00:00
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