From 83905e021c2bae2b31fac8cf94b164e5338d578f Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 23 Sep 2026 09:42:35 +0200 Subject: [PATCH] platform.mk: Fix missing common.mk definitions platform.mk needs JWB_SCRIPT_DIR before it checks if TARGET_TUPLE is empty, otherwise downstream projects including platform.mk without defs.mk error out (as does jw-bind-zones-ldap-priv via projects.mk: /usr/bin/python3.13: can't open file '/jw-pkg.py': [Errno 2] No such file or directory ../jw-pkg/make/platform.mk:172: *** TARGET_TUPLE is empty. Schluss.. The fix is to include common.mk earlier in the stack in platform.mk. defs.mk then includes it via projects.mk, so remove direct inclusion from there. Signed-off-by: Jan Lindemann --- make/defs.mk | 1 - make/platform.mk | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/make/defs.mk b/make/defs.mk index 1522461c..cfd7b822 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -11,7 +11,6 @@ empty := space := $(empty) $(empty) comma := , -include $(JWBDIR)/make/common.mk include $(JWBDIR)/make/projects.mk # ----- Executables diff --git a/make/platform.mk b/make/platform.mk index ffebcfec..19a07bc8 100644 --- a/make/platform.mk +++ b/make/platform.mk @@ -63,6 +63,7 @@ else export SHELL := /bin/bash endif +include $(JWBDIR)/make/common.mk include $(JWBDIR)/make/py-version.mk JW_PKG_PY = $(PYTHON) $(JWB_SCRIPT_DIR)/jw-pkg.py -p $(PROJECTS_DIR) -t $(TOPDIR) $(JW_PKG_PY_EXTRA_OPTS)