Interestingly, the build failure and one of the sed commands in the post-patch target were both due to problems introduced by one of the patches.