Re: git: 513318c5d748 - main - ports-mgmt/pkg: update to 2.6.0

From: Vladimir Druzenko <vvd_at_freebsd.org>
Date: Mon, 02 Mar 2026 23:19:51 UTC
03.03.2026 02:12, Mark Millard пишет:
> On 3/2/26 14:37, Vladimir Druzenko wrote:
>> . . .
>>
>> It's not a portmaster issue at all - the "-y" option doesn't work:
> See below for why I expect 2.6.0 is correct and 2.5.1 is wrong.
>
>> 2.6.0:
>> # pkg delete -yf bash-completion-2.17.0_1,2
>> Updating database digests format: 100%
>> 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
>>          lives: 3.2.0_26
>>          x264: 0.164.3095_3
> That looks correct me based on the dependencies:
>
> ) lives depends on x264
> ) x264 depends on bash-completion
> ) bash-completion is being deleted
>
> pkg delete is not suppose to leave port-packages installed that would
> have missing dependencies after the deletion(s) explicitly requested.
>
>> 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
>>
>> 2.5.1:
>> # pkg delete -yf bash-completion-2.17.0_1,2
>> Updating database digests format: 100%
>> Checking integrity... done (0 conflicting)
>> Deinstallation has been requested for the following 1 packages (of 0
>> packages in the universe):
>>
>> Installed packages to be REMOVED:
>>          bash-completion: 2.17.0_1,2
> This looks wrong to me, leaving x264 installed despite x264 depending on
> bash-completion that will be deleted.
>
> In other words, as I understand the intent: a bug in 2.5.1 is now fixed
> in 2.6.0 .
>
>> Number of packages to be removed: 1
>>
>> The operation will free 1 MiB.
>> [1/1] Deinstalling bash-completion-2.17.0_1,2...
>> [1/1] Deleting files for bash-completion-2.17.0_1,2: 100%
> May be bapt@ can comment as a better source of information than I am.
>
man pkg-delete:

      -f, --force
                 Forces packages to be removed despite leaving unresolved
                 dependencies.  In combination with the -a or --all flag,
                 causes pkg(8) to be removed as well as all other packages.

      -y, --yes  Assume yes when asked for confirmation before package
                 deletion.

-- 
Best regards,
Vladimir Druzenko