Issue #1329470 by fago : Committing patch provided by fago. Automatically adds dependency when exporting roles with features.