Skip to content

build: Remove old extract rules from build tree when configuration changes

Sam Thursfield requested to merge sam/reconfigure-extractor-fix into master

For the functional-tests we run Tracker entirely from the source tree. We need to maintain a directory of .rule files for tracker-extract to use, and we must only have the .rule files that are enabled in the current build configuration. This wasn't working properly because we didn't remove old .rule files when reconfiguring, so disabling an extractor at configure-time would sometimes not work as expected.

This is fixed by preparing the uninstalled rule files in a shell script rather than from Meson, allowing us to delete the rule files each time that we reconfigure.

Merge request reports