Re: [PATCH] localedata: Avoid concurrently written locales in gen-locale.sh

Florian Weimer <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <[email protected]>
* Sam James:

>> +      # (Some versions of mv do not report an error here.)
>> +      mv -Tn $stage ${common_objpfx}localedata/$out 2>/dev/null || true
>
> I'm sorry to ask this, but is mv -T sufficiently portable? It's not
> POSIX but I don't recall if we require any extensions for coreutils
> elsewhere in glibc.

I think I found a portable way to get the expected rename failure.
Well, not really portable because naturally, these details are
unspecified by POSIX.  But I don't think we'll need the special options.

I'll send a new patch.

Thanks,
Florian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.