This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix Hurd build with read-only source directory
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 27 Nov 2018 22:06:58 +0000
- Subject: Re: Fix Hurd build with read-only source directory
- References: <alpine.DEB.2.21.1811271811500.11571@digraph.polyomino.org.uk> <20181127183239.ljlijsahtj76hy5h@function>
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