Re: git: 513318c5d748 - main - ports-mgmt/pkg: update to 2.6.0
Date: Mon, 02 Mar 2026 21:20:56 UTC
Le 2 mars 2026 20:30:05 GMT+01:00, Vladimir Druzenko <vvd@freebsd.org> a écrit :
>Hello!
>
>02.03.2026 20:20, Baptiste Daroussin пишет:
>> The branch main has been updated by bapt:
>>
>> URL: https://cgit.FreeBSD.org/ports/commit/?id=513318c5d7487c5d47a91651bfbe8e08edc3ff42
>>
>> commit 513318c5d7487c5d47a91651bfbe8e08edc3ff42
>> Author: Baptiste Daroussin <bapt@FreeBSD.org>
>> AuthorDate: 2026-03-02 17:18:16 +0000
>> Commit: Baptiste Daroussin <bapt@FreeBSD.org>
>> CommitDate: 2026-03-02 17:20:16 +0000
>>
>> ports-mgmt/pkg: update to 2.6.0
>> Major Changes
>> * create: use -t to specify the timestamp for the manifest file.
>> * fetch: add -s/--sumlink option for mirror mode
>> * triggers: only defer triggers when the need to execute an external program
>> * db: enable WAL mode for local databases
>> * query: add support for query evaluation of complex attributes
>> * libpkg: store ignored shlibs in manifest and db
>> * libpkg: respect ignred shlibs for BACKUP_LIBRARIES
>> * drastically reduce memory usage for all operations
>> * fix reproducible build issue
>> * autoremove: fix deletion order
>> * lots of documentation updates
>> Other Changes
>> * use C23 __has_include to reduce configure checks
>> * fix issue hiding the unit in progress bar
>> * if for anyreason the extraction rename failed, keep the file around with a .pkgnew suffix
>> * plenty of fixes in the upgrade decision process
>> * plenty of corner cases crash fixed
>> * prevent fetching a file twice
>> ---
>> ports-mgmt/pkg/Makefile | 2 +-
>> ports-mgmt/pkg/distinfo | 6 +++---
>> ports-mgmt/pkg/pkg-plist | 2 ++
>> 3 files changed, 6 insertions(+), 4 deletions(-)
>>
>> diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile
>> index 9cea6e2a885b..e391d8a6759d 100644
>> --- a/ports-mgmt/pkg/Makefile
>> +++ b/ports-mgmt/pkg/Makefile
>> @@ -1,5 +1,5 @@
>> PORTNAME= pkg
>> -DISTVERSION= 2.5.1
>> +DISTVERSION= 2.6.0
>> _PKG_VERSION= ${DISTVERSION}
>> CATEGORIES= ports-mgmt
>> diff --git a/ports-mgmt/pkg/distinfo b/ports-mgmt/pkg/distinfo
>> index 00bfef22dd7d..3ccd1a59316c 100644
>> --- a/ports-mgmt/pkg/distinfo
>> +++ b/ports-mgmt/pkg/distinfo
>> @@ -1,3 +1,3 @@
>> -TIMESTAMP = 1766485622
>> -SHA256 (freebsd-pkg-2.5.1_GH0.tar.gz) = 05aa40cc01e48e4933b7a96a996831b3215de18558a16f48859417b183b1c19b
>> -SIZE (freebsd-pkg-2.5.1_GH0.tar.gz) = 16511454
>> +TIMESTAMP = 1772471682
>> +SHA256 (freebsd-pkg-2.6.0_GH0.tar.gz) = 2a0f05a79e13cd7c996f93979eb3156ae96c32394cff1677394c6c3c6fdf6f92
>> +SIZE (freebsd-pkg-2.6.0_GH0.tar.gz) = 16517834
>> diff --git a/ports-mgmt/pkg/pkg-plist b/ports-mgmt/pkg/pkg-plist
>> index 7b5f70ad6c94..8f3ca495cb16 100644
>> --- a/ports-mgmt/pkg/pkg-plist
>> +++ b/ports-mgmt/pkg/pkg-plist
>> @@ -36,10 +36,12 @@ share/man/man8/pkg-config.8.gz
>> share/man/man8/pkg-create.8.gz
>> share/man/man8/pkg-delete.8.gz
>> share/man/man8/pkg-fetch.8.gz
>> +share/man/man8/pkg-help.8.gz
>> share/man/man8/pkg-info.8.gz
>> share/man/man8/pkg-install.8.gz
>> share/man/man8/pkg-key.8.gz
>> share/man/man8/pkg-lock.8.gz
>> +share/man/man8/pkg-plugins.8.gz
>> share/man/man8/pkg-query.8.gz
>> share/man/man8/pkg-register.8.gz
>> share/man/man8/pkg-remove.8.gz
>
>After this update portmaster is totally broken.
>It removes a lot of ports instead of updated only one.
>I tested with previous pkg 2.5.1 and just updated portmaster 3.33 - work as expected.
>But pkg 2.6.0 breaks the system - look at example:
>
>> ===>>> Creating a backup package for old version bash-completion-2.17.0_1,2
>> Creating package for bash-completion-2.17.0_1,2
>> Checking integrity... done (0 conflicting)
>> Deinstallation has been requested for the following 3 packages (of 0 packages in the universe):
>>
>> Installed packages to be REMOVED:
>> bash-completion: 2.17.0_1,2
>These lines shouldn't be here: {
>> lives: 3.2.0_26
>> x264: 0.164.3095_3
>}
>>
>> Number of packages to be removed: 3
>>
>> The operation will free 10 MiB.
>> [1/3] Deinstalling lives-3.2.0_26...
>> [1/3] Deleting files for lives-3.2.0_26: 100%
>> [2/3] Deinstalling x264-0.164.3095_3...
>> [2/3] Deleting files for x264-0.164.3095_3: 100%
>> [3/3] Deinstalling bash-completion-2.17.0_1,2...
>> [3/3] Deleting files for bash-completion-2.17.0_1,2: 100%
>> ==> Running trigger: desktop-file-utils.ucl
>> Building cache database of MIME types
>> ==> Running trigger: gtk-update-icon-cache.ucl
>> Generating GTK icon cache for /usr/local/share/icons/hicolor
>>
>> ===> Installing for bash-completion-2.17.0_1,2
>> ===> Checking if bash-completion is already installed
>> ===> Registering installation for bash-completion-2.17.0_1,2
>> Installing bash-completion-2.17.0_1,2...
>> To enable the bash completion library, add the following to
>> your .bashrc file:
>>
>> [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
>> source /usr/local/share/bash-completion/bash_completion.sh
>>
>> See /usr/local/share/doc/bash-completion/README.md for more information.
>>
>>
>> ===>>> Waiting for background 'make clean' processes to finish
>>
>> ===>>> pkg-message for bash-completion-2.17.0_1,2
>> On install:
>> To enable the bash completion library, add the following to
>> your .bashrc file:
>>
>> [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \
>> source /usr/local/share/bash-completion/bash_completion.sh
>>
>> See /usr/local/share/doc/bash-completion/README.md for more information.
>>
>> ===>>> Done displaying pkg-message files
>>
>> ===>>> Re-installation of bash-completion-2.17.0_1,2 complete
>
thabks for the report, I may have an idea of what could cause this issue but I first need to check portmaster code to understand what it does.
best regards,
Bapt