The patch to fix the issue. We got bitten by the lazy evaluation here.
Here how it works: we are calculating some components specific variables inside of vardefines task. However, the vars aren't getting called unless one of it's dependencies is called, e.g. hbase-deb. During the tasks and similar build operations all the tasks are generated but vars like HBASE_BUILD_DIR isn't calculated until the vardefines is actually called.
The best course of actions is to simply avoid using this info in the task's description.