This PR fixes an issue where modifications in included files (e.g. packages/qt_details.mk) do not trigger a rebuild of the parent packages (native_qt and qt).
This addresses an oversight in 248613eb3ee034bf143821a51635e697dc114e6c from #30997.
Reproduction
On master (@ 595504a43209bead162da54a204df7d140a25f0e), modifying the included makefile does not change the build ID:
0$ cd depends
1$ gmake print-qt_build_id HOST=x86_64-w64-mingw32
2qt_build_id=b2ce790473c
3$ gmake print-native_qt_build_id HOST=x86_64-w64-mingw32
4native_qt_build_id=70e1e5164c5
5$ echo "" >> packages/qt_details.mk
6$ gmake print-qt_build_id HOST=x86_64-w64-mingw32
7qt_build_id=b2ce790473c
8$ gmake print-native_qt_build_id HOST=x86_64-w64-mingw32
9native_qt_build_id=70e1e5164c5
With this patch
The checksum calculation now parses include directives and adds those files to the hash. The IDs now update correctly:
0$ cd depends
1$ gmake print-qt_build_id HOST=x86_64-w64-mingw32
2qt_build_id=9a6ebf79cb3
3$ gmake print-native_qt_build_id HOST=x86_64-w64-mingw32
4native_qt_build_id=6ad78a3f644
5$ echo "" >> packages/qt_details.mk
6$ gmake print-qt_build_id HOST=x86_64-w64-mingw32
7qt_build_id=ca820665c52
8$ gmake print-native_qt_build_id HOST=x86_64-w64-mingw32
9native_qt_build_id=082e4cb2364