Hi, On 6/8/24 08:50, Bruno Haible wrote:
You can't achieve portability by using a highly unportable program like 'stat'. That's why my patch only uses 'df' and 'mount'.
You can test if it's available, and fall back if not.
I don't care much about the 0.4 seconds spent on determining sub-second resolution. It's the 6 seconds that bug me.
If sub-second resolution is available, we don't need to test further, so we can skip these tests if stat is available.
Since a tarball can be created on ext4 and unpacked on vfat FS, this would mean that autoconf needs to introduce a sleep() of up to 1 second, _regardless_ on which FS it is running. No, thank you, that is not a good cure to the problem.
If "touch" is available and capable of setting arbitrary timestamps, that could also work. We need the fallback, though.
Simon
OpenPGP_signature.asc
Description: OpenPGP digital signature