defs.mk: Avoid recaching stale variable values #57

Merged
Jan Lindemann merged 1 commit from jan/fix/20260811-defs-mk-disable-build-pkg-config into master 2026-08-11 14:34:43 +02:00 AGit

cache.mk: Avoid recaching stale variable values

If $(CACHE_PROJECT_MK) AKA .cache-project.mk already exists but needs to be remade because of dependencies, it is included, its content read, then the content cached again to the same file. That way stale variables can leak into the refreshed cache.

This commit fixes the situation by removing it, then invoking make again to remake it, thereby clearing the variable database and forcing make to fill the variables afresh.

#### cache.mk: Avoid recaching stale variable values If $(CACHE_PROJECT_MK) AKA .cache-project.mk already exists but needs to be remade because of dependencies, it is included, its content read, then the content cached again to the same file. That way stale variables can leak into the refreshed cache. This commit fixes the situation by removing it, then invoking make again to remake it, thereby clearing the variable database and forcing make to fill the variables afresh.
cache.mk: Avoid recaching stale variable values
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m5s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m0s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m41s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m33s
CI / Packaging test (push) Successful in 0s
2b04e387df
If $(CACHE_PROJECT_MK) AKA .cache-project.mk already exists but needs
to be remade because of dependencies, it is included, its content
read, then the content cached again to the same file. That way stale
variables can leak into the refreshed cache.

This commit fixes the situation by removing it, then invoking make
again to remake it, thereby clearing the variable database and
forcing make to fill the variables afresh.

Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-08-11 14:25:36 +02:00
Jan Lindemann changed title from defs.mk: Disable BUILD_PKG_CONFIG to defs.mk: Avoid recaching stale variable values 2026-08-11 14:29:58 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
janware/jw-pkg!57
No description provided.