poudriere-devel unable to update main [so: 16] jail world absent materials for FreeBSD-ports and FreeBSD-ports-kmods

From: Mark Millard <marklmi_at_yahoo.com>
Date: Fri, 12 Sep 2025 03:42:52 UTC
Note: I had upgraded main 15 to main 16 yesterday, including building
and updating port-packages.

Context:

# uname -apKU
FreeBSD 7950X3D-ZFS 16.0-CURRENT FreeBSD 16.0-CURRENT main-n280266-18555060dcae GENERIC-NODEBUG amd64 amd64 1600000 1600000

# poudriere version
poudriere-git-3.4.99.20250724

# pkg -v
2.2.2

# ~/fbsd-based-on-what-commit.sh -C /usr/ports/
fa4f9c79466b (HEAD -> main, freebsd/main, freebsd/HEAD) sysutils/nut-devel: Update to the latest networkupstools/nut github commit
Author:     Cy Schubert <cy@FreeBSD.org>
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-08-15 04:17:57 +0000
branch: main
merge-base: fa4f9c79466b6a9c5606548b55c1f4f3d19bd4a5
merge-base: CommitDate: 2025-08-15 04:17:57 +0000
n715921 (--first-parent --count for merge-base)

# poudriere jail -l main-amd64
JAILNAME         VERSION      OSVERSION ARCH  METHOD  TIMESTAMP           PATH
. . .
main-amd64       16.0-CURRENT           amd64 pkgbase 2025-09-10 21:22:16 /usr/local/poudriere/jails/main-amd64

# poudriere ports -l
PORTSTREE METHOD TIMESTAMP           PATH
. . . 
default   null   2021-04-18 02:05:47 /usr/ports


https://pkg.freebsd.org/FreeBSD:16:amd64/

has:

base_latest/
base_weekly/

but nothing yet for FreeBSD-ports or FreeBSD-ports-kmods .

# poudriere jail -j main-amd64 -u
[00:00:00] Upgrading using pkgbase
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1600000
pkg: Warning: Major OS version upgrade detected.  Running "pkg bootstrap -f" recommended
Updating FreeBSD-ports repository catalogue...
Unable to update repository FreeBSD-ports
Updating FreeBSD-ports-kmods repository catalogue...
Unable to update repository FreeBSD-ports-kmods
Updating pkgbase repository catalogue...
Fetching data.pkg: 100%   50 KiB  51.6kB/s    00:01    
Processing entries: 100%
pkgbase repository update completed. 466 packages processed.
Error updating repositories!
[00:00:04] Error: /usr/local/share/poudriere/jail.sh:update_jail:119:pkg update failed

So it is unable to update the jail's world.

For reference:

# head -30 /usr/local/poudriere/jails/main-amd64/etc/pkg/*
==> /usr/local/poudriere/jails/main-amd64/etc/pkg/FreeBSD.conf <==
#
# To disable a repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#   echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD-ports: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

==> /usr/local/poudriere/jails/main-amd64/etc/pkg/pkgbase.conf <==
pkgbase: {
  url: "https://pkg.freebsd.org/FreeBSD:16:amd64/base_latest"
  enabled: yes
}


As /usr/ports is what the port-packages were to be
based on, it is far from clear why the following
are required or referenced:

FreeBSD-ports
FreeBSD-ports-kmods

And, in fact, using instead "enabled: no":

FreeBSD-ports: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: no
}
FreeBSD-ports-kmods: {
  url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: no
}

let the update work. (Deletion might be an option.)

===
Mark Millard
marklmi at yahoo.com