I have the impression that the above sequence of 8 commands is part of a "preprocessing" step belonging to an easyblock;
granted, we have no step for such a purpose yet but, it could be thought of as another kind of patching?