Thank you @peterleinchen for the correct basic assessment and almost the right implementation (you patch the source bundle, not the target one). After some more research I created a more generic guide how to handle this properly: