A stale inherited env outbuilds the profile
scope: generic · severity: trap · confidence: proven · subsystem: build
Symptom — porthole build builds a kernel package you retired weeks ago,
or the build fails with apk “trying to overwrite
Cause — porthole config lets the environment outrank the profile, and an agent session inherits its environment from whatever shell launched it – possibly captured days ago. Stale PORTHOLE_KERNEL_PKG / PORTHOLE_KCONFIG_FILE exports silently redirect the whole build.
What to do — porthole config prints the source of every value; if
something that should track the profile says environment, override it
explicitly for the build (PORTHOLE_KERNEL_PKG=... porthole build fast) or
launch from a clean shell. If the wrong package already half-installed,
pmbootstrap chroot -r -- apk del <wrong-pkg> unblocks apk without a zap.
