Doing things from patches has one flaw: it doesn't add or move files very well. Add the missing file content.
Delete the PMI rte component as this was never intended for production release
Update git/hg ignore files