'make distcheck' failure with Permission denied: 'packets_gen.h.tmp'
A quick "solution" to this problem would be disabling lazy-overwrite (through whatever way we resolve #43995); that way, no *.tmp files are ever needed.
I put "solution" in quotes because it wouldn't actually be addressing the problem; just avoiding it. Although maybe, for reasons mentioned in #43995, it would be sensible to always disable lazy-overwrite for dist builds.
I think #43995 fixed this too.
Master 'make distcheck' failed in generate_packets.py: PermissionError: 13 Permission denied: 'packets_gen.h.tmp'
I haven't investigated more. This might require something special to reproduce, as I think that CI does 'make distcheck' test and it has not complained after the generate_packets.py rework.