diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2025-11-16 01:19:50 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2025-11-16 01:19:50 +0000 |
| commit | 78fa6965e91ec52c24f602250a9d7ec465b9a6ba (patch) | |
| tree | 641b84504cfbcd47d67da540f845250d15021a9a /cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/tst.max.d | |
| parent | 509dfd369046ee45b724d119c9eed43228fbb894 (diff) | |
When installing "extra" packages (aka those built from the ports tree),
we record everything being installed in METALOG.pkg; the contents of
that file is appended to METALOG before we generate the filesystem.
There are two cases when files recorded in METALOG.pkg will no longer
exist by the time we create the final disk image:
1. If a pkg bug results in false dependencies being installed which
are later removed by "pkg autoremove", and
2. If the pkg we build and install from /usr/ports is older than the
pkg on pkg.freebsd.org, and pkg gets upgraded automatically as part of
installing extra packages.
The ultimate issue in both cases is that there's no mechanism for
removing entries from METALOG when we run 'pkg delete'.
Address this build breakage by checking, line by line, if filesystem
objects mentioned in METALOG.pkg exist before appending them to METALOG.
Fixes: 6a13aeac3c1f ("vmimage.subr: pkg autoremove after pkg install")
MFC after: immediately (needed for 15.0-RC1)
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/tst.max.d')
0 files changed, 0 insertions, 0 deletions
