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.
--
Sebastien Marie
Index: /usr/ports/infrastructure/mk/bsd.port.mk
===================================================================
RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v
retrieving revision 1.1434
diff -u -p -r1.1434 bsd.port.mk
--- /usr/ports/infrastructure/mk/bsd.port.mk 30 Jul 2018 17:03:51 -0000
1.1434
+++ /usr/ports/infrastructure/mk/bsd.port.mk 1 Aug 2018 08:51:48 -0000
@@ -2687,7 +2687,7 @@ do-configure:
_post-configure-finalize:
.for _wrap in aclocal
@printf '#!/bin/sh\nexit 1\n' > ${WRKDIR}/bin/${_wrap}
- @chmod 555 ${WRKDIR}/bin/${_wrap}
+ @chmod 755 ${WRKDIR}/bin/${_wrap}
.endfor
${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE}