tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mkdir -p, autoconf



On Sat, Oct 08, 2022 at 02:45:39 +0000, David Holland wrote:

> On Fri, Oct 07, 2022 at 02:31:28PM -0400, Greg Troxel wrote:
>  > The point is not that they exist, but that the program is robust against
>  > something else creating them.  Given autoconf macros have concerns about
>  > parallel execution, it's reasonable to expect
>  > 
>  >   if (!directory_exists())
>  >     make_it()
>  > 
>  > and a possible returned error if it doesn't exist but then creation
>  > fails.
> 
> I think it's a crock that autoconf suddenly cares about this after how
> many non-MAKE_JOBS_SAFE automake-generated makefiles we've had to deal
> with.

I guess the scenario they have in mind here is two different make
processes for two different pieces of software trying to "make
install" and create destination directories at the same time
($(prefix)/bin etc)

-uwe


Home | Main Index | Thread Index | Old Index