The source project of this merge request has been removed.
App Update: Minetest 5.0.0.23
Note: version 5.0.0 (as opposed to previous 0.4.17) is most likely a mistake, but for now it's specified in the minetest upstream.
0.5 is much cleaner now, and builds just fine without any patches.
Tested on my buildserver.