From ec61a1af6214104d7b94da806075db0c01ae6604 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 9 Jan 2026 14:53:23 +0000 Subject: [PATCH] depends: Hash included makefiles in package checksums Fix the behavior where modifications in included files (e.g. `packages/qt_details.mk`) do not trigger a rebuild of the parent packages (`native_qt` and `qt`). The checksum calculation now parses `include` directives and adds those files to the hash. --- depends/funcs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depends/funcs.mk b/depends/funcs.mk index 60e7889a4ec..5ea55bf92e6 100644 --- a/depends/funcs.mk +++ b/depends/funcs.mk @@ -60,7 +60,7 @@ endef define int_get_build_recipe_hash $(eval $(1)_patches_path?=$(PATCHES_PATH)/$(1)) -$(eval $(1)_all_file_checksums:=$(shell $(build_SHA256SUM) $(meta_depends) packages/$(1).mk $(addprefix $($(1)_patches_path)/,$($(1)_patches)) | cut -d" " -f1)) +$(eval $(1)_all_file_checksums:=$(shell $(build_SHA256SUM) $(meta_depends) packages/$(1).mk $$(grep "^include " packages/$(1).mk | cut -d' ' -f2 | xargs) $(addprefix $($(1)_patches_path)/,$($(1)_patches)) | cut -d" " -f1)) # If $(1)_local_dir is set, create a tarball of the local directory contents to # use as the source of the package, and include a hash of the tarball in the # package id, so if directory contents change, the package and packages