New comment by loreb on void-packages repository https://github.com/void-linux/void-packages/issues/30546#issuecomment-828795237 Comment: I know and I hate it! The problem is that fixing one single issue (copy the file instead of using rename(2)) pulled in one function (copyfile) which needs *several* small files, that's why I asked if there was a way to pull in stuff from gnulib without copying it all. That being said, 99% of the patch is: add copy-file.[ch] compile, see what is missing, loop The C & m4 files were taken from gnulib's repository, hopefully there's a way to check that the bulk of the patch is an exact copy of those... what is left is - add the dependencies to Makefile.am - torture the template to make it work, by running aclocal & automake, adding an additional (temporary!) dependency on automake, and the horrible thing I did to avoid help2man