Fix Hurd build with read-only source directory
Joseph Myers
joseph@codesourcery.com
Tue Nov 27 22:07:00 GMT 2018
On Tue, 27 Nov 2018, Samuel Thibault wrote:
> Indeed. I guess we don't want to care about concurrent builds on
> different systems? A way to make it safer would be to move the file in
> two steps: in scripts/move-if-change, after testing for difference, move
> to "$2.$$", thus in the same directory but with a name which shouldn't
> be getting conflicts, then move from "$2.$$" to "$2", which will have
> filesystem-provided atomicity.
Note that move-if-change comes from gnulib, so any such improvements would
need to go there first.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list