Re: 1.16.90 regression: configure now takes 7 seconds to start

Simon Richter <[email protected]> Sat, 8 Jun 2024 12:21:27 +0900
Newsgroups gmane.comp.sysutils.automake.general
Message-ID <[email protected]>
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 (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEtjuqOJSXmNjSiX3Tfr04e7CZCBEFAmZjzjcACgkQfr04e7CZ
CBFy6wgAiXZnfwG2ziZUemxPtXE2SvWsTqcrxLC9oZ8lkl7leiYIL4toTg+3UA5j
dnPASz/hxkQtmkBrxJRz1pGel8useq7Yfnx8lH0skPoZI2EMeMC5Lvw7r/j/JGQR
j6IuEBIhrRHPJnooEuXEv2o90cyvNbZSeZWMNiVZlRcS2RtKYB4mL2MqAOngEGHO
BZdl0IFheUrW+rcaGOkmObt71WjLrklOlnLaO4brviv9GlvAZfTE4bcrP4p0pyGX
mlHtO9k0VvpIkDLasjMfYcAQs+S+px8qvLhkL2AiVyPaoSTcQwLj7dles38xL0qB
xFb91AJNHXHrLu3kyWAHqBWs5pexFg==
=NoZR
-----END PGP SIGNATURE-----