On Wed, Aug 01, 2018 at 11:03:39AM +0200, Sebastien Marie wrote: > Hi, > > After issuing a "make clean=build" on a port, I am unable to build > again. > > "make" failed in 'configure' stage: > > $ make > ... > /bin/sh: cannot create > /home/semarie/repos/openbsd/ports/pobj/rust-1.28.0/bin/aclocal: Permission > denied > *** Error 1 in . > (/home/semarie/repos/openbsd/ports/infrastructure/mk/bsd.port.mk:2689 > '_post-configure-finalize': @printf '#!/bin/sh\nexit ...) > *** Error 1 in . > (/home/semarie/repos/openbsd/ports/infrastructure/mk/bsd.port.mk:2708 > '/home/semarie/repos/openbsd/ports/pobj/rust-1.28.0/build-amd64/.configure_done') > *** Error 1 in /home/semarie/ports/mystuff/lang/rust > (/home/semarie/repos/openbsd/ports/infrastructure/mk/bsd.port.mk:2396 'all') > > It is due to _post-configure-finalize target that chmod 555 on the file, > and after that, ksh is unable to override it. > > One possibility is to have just 755 on mode. > > Another would be to rm -f ${WRKDIR}/bin/${_wrap} before the printf. > > Thanks. > --
I'll do that. Because it's the thing that makes sense. You do expect all configure parts to go away when make clean=build