I'm pretty new to building release images; not sure if I'm doing something wrong. The issue seems to have something to do with the build incorporating a version of 'pkg' from a (desired) slightly-old ports tree and then fetching the very latest from the freebsd repository and upgrading the release image to that. METALOG still has entries referencing the first version of pkg, and the build fails during some metalog-checking step.
I'd like to use the version of pkg from the indicated PORTSDIR. How can I prevent the spontaneous upgrade?
I've tried various things to try to stop this upgrade of pkg but I don't really understand the various knobs. Here's my latest attempt:
Errors:
Thanks!
I'd like to use the version of pkg from the indicated PORTSDIR. How can I prevent the spontaneous upgrade?
I've tried various things to try to stop this upgrade of pkg but I don't really understand the various knobs. Here's my latest attempt:
Things seem to go wrong here:Code:% cd /s/public/freebsd/src/stable-15s-260511 [builld world and kernel] % sudo env \ MAKEOBJDIRPREFIX=/v0/usr-obj \ __MAKE_CONF=/dev/null \ SRCCONF=/dev/null \ PORTSDIR=/v2/poudriere/ports/th-260304 \ WRKDIRPREFIX=/v2/ports-wrkdirs \ PORTS_UPDATE_SKIP=yes \ make -C release NOPORTS=yes memstick
Code:
cp MANIFEST disc1/usr/freebsd-dist
echo "./usr/freebsd-dist/MANIFEST type=file uname=root gname=wheel mode=0644" >> disc1/METALOG
env INSTALL_AS_USER=yes ASSUME_ALWAYS_YES=yes pkg -o METALOG=METALOG -o ABI=$(pkg -o ABI_FILE=/v0/usr-obj/s/public/freebsd/src/stable-15s-260511/amd64.amd64/worldstage/usr/bin/uname config ABI) -r disc1 -o REPOS_DIR=/v0/usr-obj/s/public/freebsd/src/stable-15s-260511/amd64.amd64/release/pkgbase-repo-dir install -f pkg
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating FreeBSD-base repository catalogue...
Fetching meta.conf: 100% 179 B 0.2 kB/s 00:01
Fetching data: 100% 77 KiB 79.0 kB/s 00:01
Processing entries: 0%
Processing entries: 100%
FreeBSD-base repository update completed. 509 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
pkg: 2.6.2
Number of packages to be installed: 1
The process will require 29 MiB more space.
[1/1] Installing pkg-2.6.2...
[1/1] Extracting pkg-2.6.2: 100%
env INSTALL_AS_USER=yes ASSUME_ALWAYS_YES=yes pkg -o METALOG=METALOG -o ABI=$(pkg -o ABI_FILE=/v0/usr-obj/s/public/freebsd/src/stable-15s-260511/amd64.amd64/worldstage/usr/bin/uname config ABI) -r disc1 -o REPOS_DIR=/v0/usr-obj/s/public/freebsd/src/stable-15s-260511/amd64.amd64/release/pkgbase-repo-dir clean -a
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
pkg: Impossible to open /v0/usr-obj/s/public/freebsd/src/stable-15s-260511/amd64.amd64/release/disc1/var/cache/pkg: No such file or directory
env INSTALL_AS_USER=yes ASSUME_ALWAYS_YES=yes pkg -o METALOG=METALOG -o ABI=$(pkg -o ABI_FILE=/v0/usr-obj/s/public/freebsd/src/stable-15s-260511/amd64.amd64/worldstage/usr/bin/uname config ABI) -r disc1 -o REPOS_DIR=/s/public/freebsd/src/stable-15s-260511/release/pkg_repos install -f wifi-firmware-kmod-release || true
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating release repository catalogue...
Fetching meta.conf: 100% 168 B 0.2 kB/s 00:01
Fetching data: 100% 9429 KiB 9.7 MB/s 00:01
Processing entries: 0%
Processing entries: 100%
release repository update completed. 37936 packages processed.
Updating release-kmods repository catalogue...
Fetching meta.conf: 100% 179 B 0.2 kB/s 00:01
Fetching data: 100% 35 KiB 36.2 kB/s 00:01
Processing entries: 100%
release-kmods repository update completed. 240 packages processed.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
pkg: 2.6.2 -> 2.8.4 [release]
Number of packages to be upgraded: 1
The process will require 22 MiB more space.
13 MiB to be downloaded.
[1/1] Fetching pkg-2.8.4: 100% 13 MiB 6.9 MB/s 00:02
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 2.6.2 to 2.8.4...
[1/1] Extracting pkg-2.8.4: 100%
pkg: option METALOG is defined in the environment to 'METALOG' but command line option redefines it
pkg: option ABI is defined in the environment to 'FreeBSD:15:amd64' but command line option redefines it
pkg: option REPOS_DIR is defined in the environment to '/s/public/freebsd/src/stable-15s-260511/release/pkg_repos' but command line option redefines it
pkg: Setting ABI requires setting OSVERSION, guessing the OSVERSION as: 1500000
Updating release repository catalogue...
release repository is up to date.
Updating release-kmods repository catalogue...
release-kmods repository is up to date.
All repositories are up to date.
The following 23 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
wifi-firmware-iwlwifi-kmod-22000: 20260410 [release]
[etc]
Errors:
Code:
/tmp/metalog.8FthtR:30419: error: BSD2CLAUSE: contents file 'usr/local/share/licenses/pkg-2.6.2/BSD2CLAUSE' not found
/tmp/metalog.8FthtR:30420: error: LICENSE: contents file 'usr/local/share/licenses/pkg-2.6.2/LICENSE' not found
/tmp/metalog.8FthtR:30421: error: catalog.mk: contents file 'usr/local/share/licenses/pkg-2.6.2/catalog.mk' not found
[...]
makefs: 3 error(s) and 1484 warning(s) in mtree manifest
*** Error code 1
Stop.
make: stopped making "memstick" in /s/public/freebsd/src/stable-15s-260511/release
Thanks!