maintainer-feedback requested: [Bug 272751] ports-mgmt/pkg Conflict detection has gone missing in 1.20.4

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 27 Jul 2023 09:42:30 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 272751: ports-mgmt/pkg Conflict detection has gone missing in 1.20.4
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272751



--- Description ---
On pkg 1.20.4 there doesn't seem to the usual run of things when you want to
install a package that conflicts with an existing package. 

It seems the installation of the new package just takes place, there is no
mention of REMOVED the old package; And in the end pkg is saying it is doing
some things with the conflicting package. See below where postgresql14-client
seems to get the last "install". Nonetheless, the files on disk seem to be from
postgresql15-client. 

The example below is from postgresql client and server, but I'm also seeing
this with other packages that have CONFLICTS_INSTALL in their port. 

This is a snippet from an upgrade in a jail that has pkg 1.20.4:

[...]

Checking integrity... done (1 conflicting)				       

  - postgresql15-client-15.3 conflicts with postgresql14-client-14.8 on
/usr/local/bin/clusterdb						       

Checking integrity... done (0 conflicting)				       

Conflicts with the existing packages have been found.			       

One more solver iteration is needed to resolve them.			       

The following 6 package(s) will be affected (of 0 checked):		       


New packages to be INSTALLED:						       

	postgresql15-client: 15.3					       


Installed packages to be UPGRADED:					       

	py311-phonenumberslite: 8.13.16 -> 8.13.17			       

	py311-urllib3: 2.0.3,1 -> 2.0.4,1				       


Installed packages to be REINSTALLED:					       

	py311-psycopg2-2.9.6 (direct dependency changed: postgresql15-client)  


Number of packages to be installed: 1					       

Number of packages to be upgraded: 2					       

Number of packages to be reinstalled: 1 				       


The process will require 10 MiB more space.				       


Proceed with this action? [y/N]: y
[xxx] Fetching postgresql14-client-14.8.pkg: 100%    2 MiB   2.5MB/s	00:01  

[xxx] [1/6] Deinstalling postgresql14-client-14.8...
[xxx] [1/6] Deleting files for postgresql14-client-14.8: 100%
[xxx] [2/6] Installing postgresql15-client-15.3...
[xxx] [2/6] Extracting postgresql15-client-15.3: 100%
[xxx] [2/6] Installing postgresql14-client-14.8...
pkg: postgresql14-client-14.8 conflicts with postgresql15-client-15.3 (installs
files into the same place).  Problematic file: /usr/local/bin/clusterdb


On pkg 1.19.2:

[...]

Installed packages to be REMOVED:
        postgresql14-client: 14.8
        postgresql14-contrib: 14.8
        postgresql14-server: 14.8

New packages to be INSTALLED:
        postgresql15-client: 15.3
        postgresql15-server: 15.3