Solved pkg-upgrade(8), CONSERVATIVE_UPGRADE and ports-mgmt/poudriere-devel 3.3.99.20210521

Below, why did pkg upgrade -f poudriere-devel not find the upgrade to 3.3.99.20210521?

Code:
root@mowa219-gjp4-8570p:~ # pkg info -x poudriere
poudriere-devel-3.3.99.20210303_2
root@mowa219-gjp4-8570p:~ # pkg upgrade -f poudriere-devel
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        db5-5.3.28_7 [FreeBSD]
        poudriere-devel-3.3.99.20210303_2 [poudriere]

Number of packages to be reinstalled: 2

Proceed with this action? [y/N]: n
root@mowa219-gjp4-8570p:~ # pkg install poudriere-devel-3.3.99.20210521
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
        poudriere-devel: 3.3.99.20210303_2 -> 3.3.99.20210521 [FreeBSD]

Installed packages to be REINSTALLED:
        db5-5.3.28_7 [FreeBSD]

Number of packages to be upgraded: 1
Number of packages to be reinstalled: 1

745 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching poudriere-devel-3.3.99.20210521.txz: 100%  745 KiB 762.5kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/2] Upgrading poudriere-devel from 3.3.99.20210303_2 to 3.3.99.20210521...
[1/2] Extracting poudriere-devel-3.3.99.20210521: 100%
[2/2] Reinstalling db5-5.3.28_7...
[2/2] Extracting db5-5.3.28_7: 100%
You may need to manually remove /usr/local/etc/poudriere.conf if it is no longer needed.
root@mowa219-gjp4-8570p:~ # date ; uptime ; freebsd-version ; uname -KU
Wed May 26 10:00:23 BST 2021
10:00AM  up 32 mins, 5 users, load averages: 0.75, 0.74, 0.89
14.0-CURRENT
1400013 1400013
root@mowa219-gjp4-8570p:~ #

<https://www.freshports.org/ports-mgmt/poudriere-devel/#packages>
 
Locally cached catalog out of whack? If I get this I always force an update of the catalog; pkg update -f. That typically solves these issues.
 
Having another look but I see you have two repositories enabled, one from FreeBSD and a custom, local, one (named 'poudriere'). The name in brackets shows you where the package comes from. I would recommend installing everything from the same, local, repository and disabling the FreeBSD repository.

You can have multiple repositories enabled and assign each one a priority but you can still get some weird discrepancies if there's a package that's available in both and each has a different dependency chain. In order to save you a lot of headaches I would recommend just sticking with one repository.
 
Now I recall, a default:

Code:
% pkg -vv | grep -i conservative
CONSERVATIVE_UPGRADE = true;
%

So, this would probably have got what I wanted:

pkg -o CONSERVATIVE_UPGRADE=false upgrade poudriere-devel

pkg.conf(5)
 
Back
Top