Commit Graph

6134 Commits

Author SHA1 Message Date
markd 251a690467 texlive2pkg: update to 1.13
set default version to 2024
2024-03-21 12:02:17 +00:00
nia 7a8abcdc59 libnbcompat: Rework in-place linking.
Prevent libtool from detecting -lnbcompat in the command line arguments
then declaring it as a dependency in the resulting libtool archive.

Filter -lnbcompat from all of the environment when compiling an
in-place copy to prevent circular dependencies.

Drop LIBNBCOMPAT_USE_PIC, I can't find anywhere this is used in the
tree, it's incomplete (needs handling in mk/) and complicates things
needlessly.

What still needs to be done is figure out why certain packages don't
seem to properly link with libnbcompat when USE_FEATURES is used - it's
a long-term problem, might be related to some newer build systems not
using ${LIBS}.

Bootstrap tested on Darwin and NetBSD.
2024-03-19 23:18:21 +00:00
nia aa530ddafc libnbcompat: Add memrchr. 2024-03-19 00:59:00 +00:00
rillig b03519ef50 pkgtools/pkglint: update to 23.4.0
Changes since 23.3.0 from 2024-01-12:

Add riscv64 to the list of known hardware architectures.

Suggest removing parentheses around complete conditions.

Warn about duplicate DESCR files, except when one of the packages is in
pkgsrc-wip and the other is in main pkgsrc.

Fix crash when parsing '.ifndef VAR'.
2024-03-18 20:55:35 +00:00
wiz 9bee945783 libnbcompat: revert previous, breaks cwrappers on NetBSD
Reported by John D. Baker on pkgsrc-users.
2024-03-17 21:44:21 +00:00
nia 294de7c860 libnbcompat: When linking with an "in-place" copy of libnbcompat in each
piece of software that needs to pull functions from it, prevent libtool
from detecting -lnbcompat in the command line arguments then declaring
it as a dependency in the resulting libtool archive.
2024-03-17 13:40:14 +00:00
snj 183ea41e37 prune stray \ 2024-03-12 23:22:35 +00:00
joerg ad1cc8123c Don't build bsdcat and bsdunzip, they are not used anyway. 2024-03-12 22:02:13 +00:00
jperkin 08fff477b0 pkg_install: Bump version to 20240307. 2024-03-07 12:27:28 +00:00
jperkin 65565917e6 pkg_install: Respect quiet flag for rebuild commands.
While here remove a bunch of trailing whitespace.
2024-03-07 12:25:43 +00:00
jperkin d4c29cc08c pkg_install: Add sanity checks for pkgdb correctness.
A number of users have hit "Conflicting PLIST" errors in the past that are
almost certainly caused by duplicate PKGBASE entries in the pkgdb, most likely
as a result of unpacking a bootstrap kit over the top of an existing install.

This adds a check to ensure there are no duplicate PKGBASE entries, displaying
an error message with the list of duplicates if they are found, and is called
for the "check", "rebuild", and "rebuild-tree" commands.
2024-03-07 12:22:47 +00:00
wiz 65ba1614ef python-versions-check: add missing space in usage 2024-03-06 13:38:18 +00:00
wiz 756b32c70c plist-utils: fix regex so that plist-sort starts up and sorts
Bump version
2024-02-07 17:05:24 +00:00
bsiegert b7d5914251 Revbump all Go packages after go121 update 2024-02-07 14:50:44 +00:00
riastradh e1e7860812 pkg_install: regen pkg_install.conf.cat.in
mandoc -Tascii -I os=pkgsrc <pkg_install.conf.5.in >pkg_install.conf.cat.in
2024-02-04 14:43:56 +00:00
riastradh a0dad63c9f pkg_install: Tiny markup fix in pkg_install.conf(5).
No functional change -- documentation only.
2024-02-04 14:43:12 +00:00
riastradh bf95748abe pkg_install: regen pkg_install.conf.cat.in
mandoc -Tascii -I os=pkgsrc <pkg_install.conf.5.in >pkg_install.conf.cat.in
2024-02-04 14:29:52 +00:00
riastradh 2023f79ace pkg_install: Fix more pkg_install.conf(5) defaults documentation.
No functional change -- documentation only.
2024-02-04 14:29:21 +00:00
wiz c8e6cba745 pkg_install: regen all cat pages
'make update-catpages'
2024-02-04 08:34:33 +00:00
riastradh 5dc8c7c07c pkg_install: regen pkg_install.conf.cat.in
mandoc -Tascii -I os=pkgsrc <pkg_install.conf.5.in >pkg_install.conf.cat.in
2024-02-03 17:36:01 +00:00
riastradh 6138769148 pkg_install: Clarify meaning and defaults in pkg_install.conf(5).
No functional change -- just a documentation change.
2024-02-03 17:35:26 +00:00
jkoshy 4bb1c73883 pkg_create: fail gracefully on encountering nameless uids and gids.
PR pkg/57888

Submitted by:	Sunil Nimmagadda
2024-02-03 10:58:37 +00:00
riastradh 005b412e87 pkg_install: Fix mistake in previous: this is strchr, not strchrnul.
Either

	if ((q = strchr(p, '/')) == NULL)

or

	if (*(q = strchrnul(p, '/')) == '\0')

will work, but not

	if (*(q = strchr(p, '/')) == '\0')

which will crash with a null pointer dereference.  Let's get the
right version of this committed, not the wrong one!  Oops.

While here, reset PKGREVISION like I meant to do yesterday.
2024-01-26 12:40:04 +00:00
riastradh 4bec5e01ff pkg_install-20240125: Extend `-m' syntax to allow OPSYS too.
- If there's no slash `/', take it all as ${MACHINE_ARCH}.

- If there is a slash, then split it by `/' and ` ' into:

        ${OPSYS}/${MACHINE_ARCH} ${OPSYS_VERSION}

  For example:

        NetBSD/aarch64 10.0

All the variables are restricted to lie in a safe set [a-zA-Z0-9._-],
so the notation can be extended later.

No change to existing syntax (no MACHINE_ARCH has `/' in it, or
anything outside the safe set), and `-m' is generally only used with
cross builds anyway, so this shouldn't break existing cross builds
and should have no impact on native builds.

Proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2024/01/13/msg028825.html
2024-01-26 03:24:49 +00:00
wiz 00cd53938d revbump: improve an error message
Suggested by gdt
2024-01-18 10:11:55 +00:00
rillig 6eb0cfaa6b pkgtools/url2pkg: omit lowercase Perl dependencies, sort dependencies 2024-01-17 21:01:07 +00:00
rillig 6be805cddd pkgtools/url2pkg: test Perl module with several dependencies 2024-01-17 19:46:47 +00:00
rillig 62b8363544 pkgtools/url2pkg: fix license_default line in generated makefile
Previously, url2pkg generated a 'license_default=...' line in the
package Makefile, which was confusing. That line was supposed to be a
special url2pkg command, not a makefile variable.

Discovered by gdt@ while packaging devel/p5-Devel-Entropy.
2024-01-17 19:09:24 +00:00
rillig f7789fa295 pkgtools/url2pkg: update to 23.3.0
Changes since 23.2.1:

For Perl and Python packages, use TOOL_DEPENDS instead of BUILD_DEPENDS
for the build-time dependencies.

For Perl modules that use Module::Build, don't add a redundant
dependency to p5-Module-Build.
2024-01-17 18:35:52 +00:00
rillig 15ee3aec0c pkgtools/url2pkg: skip p5-Module-Build for Module::Build Perl packages
That dependency is added implicitly whenever PERL5_MODULE_TYPE is
Module::Build.

Suggested by gdt@.
2024-01-17 18:33:43 +00:00
rillig 10aead0e29 url2pkg: use TOOL_DEPENDS for Perl and Python modules
Suggested by gdt@.
2024-01-17 17:18:14 +00:00
rillig e9dfafe741 pkgtools/pkglint: update to 23.3.0
Changes since 23.2.5:

Do not warn about Meson packages that only use Python as a build-time
tool.

Warn about pkgsrc-wip packages that are missing COMMIT_MSG.

Ignore errors when resolving the username of the current user. This can
happen on systems where the user database uses NIS. In case of an error,
assume that the user is neither maintainer nor owner of any package.

Mark variables from expressions in .info, .warning and .error as used.

Remove the word 'please' from the diagnostics, as the diagnostics are
intended to help the package author, not some unrelated third-party
person.
2024-01-12 23:37:54 +00:00
wiz 9951eca6f5 libnbcompat: remove sys/cdefs.h include from strndup.c
The file already includes nbcompat/cdefs.h.

Fixes build on Solaris 10, reported and tested by Dan Clough in PR 57838.
2024-01-12 19:14:19 +00:00
bsiegert 523e42f580 Revbump all Go packages after go121 update 2024-01-10 19:14:25 +00:00
gdt 967b410203 pkgtools/pkg_rolling-replace: Revert unintended change
(Despite an explicit cvs diff of packages to review, ENOTENOUGHCOFFEE
lead to not carrying thatt to the commit.  Sorry for the noise.)
2024-01-03 12:35:22 +00:00
gdt 756550ec88 pkgtools/*: revbump for libfetch
libfetch's recent behavior change can be viewed as a bugfix or as an
ABI change.  pkg_install vendors libfetch from the sources, for
bootstrapping reasons and thus needs a revbump.  For consistency and
to reduce confusion, also bump the other two packages that depend on
it.
2024-01-03 12:32:59 +00:00
bsiegert 088153e421 New package, pkgtools/pkgchkxx. From wip.
pkgchkxx and pkgrrxx are complete rewrites of pkgsrc pkg_chk and
pkg_rolling-replace respectively. These are functionally compatible but run
faster.

This implementation achieves better performance by using a faster language,
better algorithms, and making use of many CPUs whenever possible.
2024-01-01 13:39:04 +00:00
adam 990ec83f01 revbump: fix for systems with bmake 2023-12-29 21:23:40 +00:00
rillig 332a2da580 pkgtools/pkglint: update to 23.2.5
Changes since 23.2.4:

For Python packages that do not support Python 2, warn that egg.mk is
deprecated and should be replaced with wheel.mk.  Provide detailed
migration instructions.
2023-12-18 13:53:18 +00:00
agc ec151cd4c1 pkgtools/mksandbox - update to version 1.11
+ Don't allow mounting of already mounted sandboxes, or unmounting of
unmounted sandboxes.

+ Also, add an extra "ismounted" case label to be able to tell if a
sandbox is mounted. A df(1) invocation should continue to work just
as well :)

No objections on tech-pkg@

Addresses the first part of PR pkg/51992 from Paul Goyette
2023-12-05 20:45:27 +00:00
bsiegert 416156544a Revbump all Go packages after go121 update 2023-12-05 19:46:02 +00:00
cheusov 90536675c2 Update to 0.15.2:
Fix default REPOSITORY for Darwin

  First, try to download SHA512.bz2, and then SHA512.gz
2023-12-01 11:39:05 +00:00
cheusov bac7811191 Update to 0.15.0
Fix "nih -h" and "nih -V" broken in nih-0.15.0
  Update man page and TODO
2023-11-29 21:48:11 +00:00
cheusov 4e5243673e Update HOMEPAGE 2023-11-27 20:29:43 +00:00
cheusov 8c4dd898d4 Update HOMEPAGE 2023-11-27 20:28:35 +00:00
cheusov 2968b35df6 Remove http://mova.org from -MASTER_SITES 2023-11-27 20:27:55 +00:00
cheusov 6afd9b5001 Remove http://mova.org from MASTER_SITES 2023-11-27 20:26:04 +00:00
cheusov a4d96d8717 Update to 0.15.0
nih remove:
    - now this command works correctly without external package
      repository

  nih leaf:
    - new option "-u" for printing user-installed leaf packages

  nih status:
    - option -s has been renamed to "-p"

  Primary extension for pkg_summary(5) is now "gz"

  Updates in man.1

  nih.default.conf:
    - update default URLs to package repositories

  root Makefile:
    - +PKG_DBDIR defaults to ${PREFIX}/pkgdb
2023-11-27 12:56:16 +00:00
cheusov bdb88a5d59 Update to 0.67.0
pkg_summary2leaves:
    - new option -u for printing packages installed by user
    - option -r does not implies -a any longer

  pkg_grep_summary:
    - new option -E and "-t nonempty" for matching non-empty fields

  Fixes in tests

  Minor code clean-ups and coding style correction in grep_summary.c

  COPTS defaults to "-O3 -g"

  root Makefile: BMAKE variables defaults to "bmake"
2023-11-27 12:31:33 +00:00
abs 03edd914dd Update pkg_chk to 2.0.12
Use "DEPENDS_TARGET=package-install clean" rather than CLEANDEPENDS=yes

Avoids much wasted time recusively re-cleaning dependencies
2023-11-17 17:40:47 +00:00