On 08/07/2023 15:22, ASSI via Cygwin-apps wrote: > Jon Turney via Cygwin-apps writes: >> So, the idea here is that we try to ensure it's on, at least for the >> working directory. > > That IMHO should only be done when the working directory is created, but > not retroactively applied to an existing workdir. Yeah, that's just a side effect of where I put it. >> Skipping it when 'finish' is used isn't right, because then 'finish >> all' wouldn't work as desired. But yeah, it seems that this is in the >> wrong place. I'll look into moving it. > > Meanwhile I've done this: > > --8<---------------cut here---------------start------------->8--- > if [ $OSTYPE = "cygwin" ] > then > + [ -n "$(find ${workdir} -maxdepth 0 -empty)" ] && > chattr -fR +C ${workdir} >/dev/null 2>&1 || true This seems a bit nuts as we've just done the mkdir a few lines above, we could just check if the directory doesn't exist and apply case-sensitivity if we are creating it. > fi > --8<---------------cut here---------------end--------------->8--- > > I think it should be moved into a function that can be called before the > prep command, but I haven't actually tried it for a longer time or > checked what tests need changing due to the extra output: The warning (error if RESTRICT=case_insensitive) should occur for all commands, not just prep. How about the attached. >> I think there's possibly something else going wrong if it's taking 5 >> minutes, as that seems excessive. > > Try it on the gcc build dir… Even then, it should only be modifying every directory, not every file.