From 3ad021f0713ba5428a638af8812832df4602e6b9 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 18 Feb 2026 14:30:50 +0100 Subject: [PATCH] projects-dir.mk: reinstall with --source-profile=replace --source-profile=replace should be passed to all jw-pkg.py projects build pkg-*install invocations. Those invocations typically happen in the context of pkg-%install, so add that target, specializing the pkg-% target. The problem this solves is that /etc/profile is currently read only once before bootstrapping all software on a pristine system is started. This might lead to the situation that package A has installed environment variable definitions into /etc/profile.d, package B needs them for building, but never gets to read them. Signed-off-by: Jan Lindemann --- make/projects-dir.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make/projects-dir.mk b/make/projects-dir.mk index 06436f6d..56ae4a7a 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -260,6 +260,9 @@ pkg-release-all: pkg-init-%: $(CREATE_PROJECT_SH) $* +pkg-%install: $(filter-out $(UNAVAILABLE_TARGETS),pull.done) + $(JW_PKG_PY_BUILD) --source-profile=replace $@ $(TARGET_PROJECTS) + pkg-%: $(filter-out $(UNAVAILABLE_TARGETS),pull.done) $(JW_PKG_PY_BUILD) $@ $(TARGET_PROJECTS)