issue #21473: implement and enforce extension dependencies