mkdir -p, autoconf

2022-10-07 Thread Greg Troxel
I am chasing a bug in the postgis install phase, found by a bulk build, while it ran fine on my system -- which happened to have coreutils. There are a lot of moving pieces in postgis's install becaues it's autoconf *and* pgxs, but there's one aspect that I want to bring up here. autoconf has a

Re: mkdir -p, autoconf

2022-10-07 Thread Joerg Sonnenberger
Am Fri, Oct 07, 2022 at 06:40:19AM -0400 schrieb Greg Troxel: > autoconf rejects NetBSD mkdir -p and thus there is some install-sh and > that would have been ok but this somehow interacts with pgxs and blows > up. > > So my real questions are: > > 1) Is NetBSD's mkdir -p safe, in that it is imm

Re: mkdir -p, autoconf

2022-10-07 Thread ignatios
hi, On Fri, Oct 07, 2022 at 06:40:19AM -0400, Greg Troxel wrote: > > 1) Is NetBSD's mkdir -p safe, in that it is immune to > check for dir > call mkdir(2) which fails because another mkdir did it in between > return -1 because that was an error > > I don't see this documented in

Re: mkdir -p, autoconf

2022-10-07 Thread Greg Troxel
ignat...@cs.uni-bonn.de writes: > hi, > > On Fri, Oct 07, 2022 at 06:40:19AM -0400, Greg Troxel wrote: >> >> 1) Is NetBSD's mkdir -p safe, in that it is immune to >> check for dir >> call mkdir(2) which fails because another mkdir did it in between >> return -1 because that was an

Re: mkdir -p, autoconf

2022-10-07 Thread ignatios
On Fri, Oct 07, 2022 at 01:25:57PM -0400, Greg Troxel wrote: > Sorry, I meant not documented in mkdir(1). "Create intermediate directories as required. ... Do not consider it an error if the argument directory already exists." Hm... our implementation doesn't consider it an error if any interm

Re: mkdir -p, autoconf

2022-10-07 Thread Greg Troxel
ignat...@cs.uni-bonn.de writes: > On Fri, Oct 07, 2022 at 01:25:57PM -0400, Greg Troxel wrote: > >> Sorry, I meant not documented in mkdir(1). > > "Create intermediate directories as required. ... > Do not consider it an error if the argument directory already > exists." > > Hm... our implemen

Re: mkdir -p, autoconf

2022-10-07 Thread David Holland
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()) >