https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66005
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- And fcntl in tclx. Anyway, I think choosing between flock(1) and some python file locking would be better than using perl which is only needed in maintainer mode and not otherwise.