Created attachment 986 [details] test file to reproduce bug Steps to reproduce: 1) Download and place attached test.bbclass file in poky 2) Inherit test.bbclass in any recipe 3) Get the graph for that particular recipe i.e. $ bitbake -g <recipe> 4) You should see the following error: ERROR: Task <yocto_dir>/poky/meta/recipes-extended/libaio/libaio_0.3.109.bb (do_test_task) has circular dependency on <yocto_dir>/poky/meta/recipes-extended/libaio/libaio_0.3.109.bb (do_fetch) 5) Replace line number 2 in test.bbclass with: do_build[recrdeptask] += 'do_test_task' 6) Step number 5 will remove circular dependency for fetch task. Repeat Step 3. You will still see the same error <bug>. This is because bitbake didn't reparse the metadata. 6) Remove <build_dir>/tmp/cache/ 7) Repeat step number 3. Now bitbake will reparse all the metadata and will not show any error.
I just tried this with bitbake/poky master and the system reparsed things correctly after I changed test.bbclass. Which revision of the metadata did you find this issue with?
If you can reproduce this against master, pleas reopen this. I'm going to assume this is with an older version of the metadata though, before some of the cache fixes.
I have also verified it against the master that it isn't reproducible. Seems like that it is resolved while fixing the cache issues, as Richard mentioned.