Stop src_get overrides from propagating between builds

Because src_get was never unset at the end of a build, it would propagate to subsequent builds until it would be either overridden again, or cleared by a new bash process starting (either due to a jump step or a new version of bash being built).

Thus, kexec-linux's override of src_get to a no-op would stay in effect in chroot mode until musl-1.2.4 phase2's override restored src_get's functionality. This override is actually obsolete, since musl-1.2.4's source code is now preserved across the Linux kexec via a different mechanism - but removing it mysteriously broke downloading bash-5.2.15 due to kexec-linux's override still being in effect.
This commit is contained in:
Googulator 2024-05-22 00:21:40 +02:00 committed by GitHub
parent b988fb5764
commit b02c35443f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,7 +253,7 @@ build() {
cd "${SRCDIR}"
unset -f src_unpack src_prepare src_configure src_compile src_install src_postprocess
unset -f src_get src_unpack src_prepare src_configure src_compile src_install src_postprocess
unset extract
}