Date: Mon, 13 Apr 2026 18:31:29 +0000 From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: aaad225a2d7b - main - ports-mgmt/pkg: update to 2.7.0 Message-ID: <69dd3681.3a4a4.938d490@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=aaad225a2d7b913e3f3e1fb537a71ada8edb73b1 commit aaad225a2d7b913e3f3e1fb537a71ada8edb73b1 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2026-04-13 17:46:51 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2026-04-13 18:31:22 +0000 ports-mgmt/pkg: update to 2.7.0 Changes: * switch back to libfetch (curl support has been removed) * triggers: add per-package triggers, with new `pkg_upgrade` variable, documented in triggers(5) * install: accept `http://`, `https://` and `file://` URLs to install packages directly * install: small behaviour change — `install -A` no longer marks upgraded/reinstalled packages as automatic * autoremove: install, delete and upgrade are now autoremove aware * solver: avoid spurious reinstall from wrong repo with multi-repo setups, * solver: fix extra reinstallations, * solver prevent rdeps discovery explosion * search: add `search -S comment-description` * search: add `ssh_args` per repository configuration * query: add `%y` and `%Y` formats for provides/requires * backup libraries: change the default behaviour 1 package per library now. * add: resolve shlibs and provides via symlink directory layout, ignore dead symlinks for provides/requires * add: really analyse the content of `.a` archives * updating: support glob patterns in user-provided port names * lots of documentation updates. * info: `--raw` now exports valid JSON for multiple packages * delete: fix `-fR` * set: `-n` never matches the first argument vs origin anymore * DB: add missing indexes * DB: only attempt schema upgrade when DB is opened RW * upgrade: fix yet another endless upgrade loop of pkg * upgrade: attempt config file merge for force install * libpkg: fix `--register-only` with empty packages and to populate config file contents * libpkg: fix `getgrnam_r` related errors * libpkg: actually export the `pkg_set_ignore_osversion` symbol * add: skip osversion check when force is set * add: remove existing file before renaming temp directory (pkg_add) * fetch: properly terminate on SIGINT during fetch * search: fix handling when search returns multiple JSON formatted results * query: do not print empty line for purely multiline formats; print an empty line for multiline if no information to display * install: emit a message when trying to install `-f` a locked package * jobs: honor `PKG_FLAG_DRY_RUN` in `pkg_jobs_execute()` * jobs: before scheduling a DELETE job verify if it is really needed * solver: always process rdeps for remote packages * db: only open the db readonly when write is not needed * sandbox: provide a default handler for `PKG_EVENT_SANDBOX_GET_STRING` * EVENT_PIPE: fix invalid JSON * signal handling: multiple fixes * fix crash when using external merge tool * securelevel: check for bsd securelevel and report errors * fflags: test if we are running in a jail and report errors * sign_pkg.sh: use the `.pkg` extension * 400.status-pkg: provide an option to select the source to check * Fix overlinking on macOS * pkg: messages improvements, wording fixes * extensive code cleanup, deduplication and factorization. * added many new tests (audit, delete, info, which, autoremove order, multi-repo solver, install behaviour change, link flags) --- ports-mgmt/pkg/Makefile | 3 +-- ports-mgmt/pkg/distinfo | 6 +++--- ports-mgmt/pkg/files/patch-libpkg_libpkg.ver | 10 ---------- ports-mgmt/pkg/pkg-plist | 4 ++-- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index 9e7b05a64361..6582c3bf652f 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -1,6 +1,5 @@ PORTNAME= pkg -DISTVERSION= 2.6.2 -PORTREVISION= 1 +DISTVERSION= 2.7.0 _PKG_VERSION= ${DISTVERSION} CATEGORIES= ports-mgmt diff --git a/ports-mgmt/pkg/distinfo b/ports-mgmt/pkg/distinfo index a93103ccee91..4272ca529b8d 100644 --- a/ports-mgmt/pkg/distinfo +++ b/ports-mgmt/pkg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1772622379 -SHA256 (freebsd-pkg-2.6.2_GH0.tar.gz) = b1f940c5ffbcb91cb4a34d59dffa14db4a3f9c55928964b9e66eb2da1180c6d1 -SIZE (freebsd-pkg-2.6.2_GH0.tar.gz) = 16518981 +TIMESTAMP = 1776102278 +SHA256 (freebsd-pkg-2.7.0_GH0.tar.gz) = 8a70e6912e0fb7b7e8b76ae8fbe3e4bee50615be994f6ba990f71785c6669efe +SIZE (freebsd-pkg-2.7.0_GH0.tar.gz) = 12341566 diff --git a/ports-mgmt/pkg/files/patch-libpkg_libpkg.ver b/ports-mgmt/pkg/files/patch-libpkg_libpkg.ver deleted file mode 100644 index 49cc3325bbd2..000000000000 --- a/ports-mgmt/pkg/files/patch-libpkg_libpkg.ver +++ /dev/null @@ -1,10 +0,0 @@ ---- libpkg/libpkg.ver.orig 2026-03-13 06:28:11 UTC -+++ libpkg/libpkg.ver -@@ -174,6 +174,7 @@ global: - pkg_set_b; - pkg_set_debug_level; - pkg_set_i; -+ pkg_set_ignore_osversion; - pkg_set_invalid; - pkg_set_ischrooted; - pkg_set_rootdir; diff --git a/ports-mgmt/pkg/pkg-plist b/ports-mgmt/pkg/pkg-plist index 8f3ca495cb16..fe19685b66e9 100644 --- a/ports-mgmt/pkg/pkg-plist +++ b/ports-mgmt/pkg/pkg-plist @@ -13,8 +13,6 @@ lib/libpkg.a lib/libpkg.so lib/libpkg.so.4 libdata/pkgconfig/pkg.pc -sbin/pkg -sbin/pkg-static share/man/man3/pkg_create.3.gz share/man/man3/pkg_printf.3.gz share/man/man3/pkg_repo_create.3.gz @@ -64,5 +62,7 @@ share/man/man8/pkg-upgrade.8.gz share/man/man8/pkg-version.8.gz share/man/man8/pkg-which.8.gz share/man/man8/pkg.8.gz +sbin/pkg +sbin/pkg-static share/zsh/site-functions/_pkg @dir lib/compat/pkghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69dd3681.3a4a4.938d490>
