severity: error
In my-recipe_1.0.bb
inherit something
DEPENDS = "bar"
The inherit (or include or require) statement will pull in code that might set DEPENDS as well.
In the end those setting would be overwritten if DEPENDS is set after that.
Move DEPENDS before any inherit or include or require statement
DEPENDS = "bar"
inherit something
or use
inherit something
DEPENDS += "bar"