defs.mk: Make common PKG_CONFIG build dir opt-in #152

Merged
Jan Lindemann merged 1 commit from jan/fix/20261020-defs-mk-make-common-pkg-config-build-dir-opt-in into master 2026-10-20 10:22:11 +02:00 AGit

2026-10-20

defs.mk: Make common PKG_CONFIG build dir opt-in
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m21s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m16s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m56s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 5m13s
CI / Packaging test (push) Successful in 0s
f70b14e92 ("defs.mk: Disable BUILD_PKG_CONFIG") disabled the
BUILD_PKG_CONFIG copy target, but the dir_build_PKG_CONFIG.done rule
still runs `mkdir -p $(BUILD_PKG_CONFIGDIR)`, and that directory is
keyed off DEVELOPMENT. A dev-version downstream package built against an
installed, read-only jw-pkg therefore resolves BUILD_PKG_CONFIGDIR to
$(JWBDIR)/pkgconfig and fails the build with "mkdir: Permission denied".

Default BUILD_PKG_CONFIGDIR to project-local $(TOPDIR)/make regardless of
DEVELOPMENT, and leave it overridable so that a self-contained build over
multiple projects can point it at some shared $(JWBDIR)/pkgconfig
directory at the user's discretion.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-10-20 10:11:28 +02:00