From 12837690ed0c7785f94e8793ddc13a57477ef319 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Wed, 21 Apr 2021 06:34:56 +0200 Subject: [PATCH] Mk/Uses/cabal.mk: Replace shell process in EXECUTABLES wrapper scripts The wrapper scripts leave the shell running for no reason. Add an exec to replace the shell process. Before: $ ps -d 35230 5 Ss 0:00.09 -oksh (oksh) 35351 5 S+ 0:00.00 - /bin/sh /usr/local/bin/shellcheck - 35352 5 S+ 0:00.00 `-- /usr/local/libexec/cabal/shellcheck - After: $ ps -d 35230 5 Is 0:00.05 -oksh (oksh) 35236 5 I+ 0:00.01 - /usr/local/libexec/cabal/shellcheck - Approved by: arrowd Differential Revision: https://reviews.freebsd.org/D29852 --- Mk/Uses/cabal.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mk/Uses/cabal.mk b/Mk/Uses/cabal.mk index 78a8acb271cb..45ee43883ef6 100644 --- a/Mk/Uses/cabal.mk +++ b/Mk/Uses/cabal.mk @@ -196,7 +196,7 @@ do-install: ${ECHO_CMD} 'export ${dep:S/-/_/}_datadir=${DATADIR}' >> ${STAGEDIR}${PREFIX}/bin/${exe} . endfor ${ECHO_CMD} '' >> ${STAGEDIR}${PREFIX}/bin/${exe} - ${ECHO_CMD} '${PREFIX}/${CABAL_LIBEXEC}/${exe} "$$@"' >> ${STAGEDIR}${PREFIX}/bin/${exe} + ${ECHO_CMD} 'exec ${PREFIX}/${CABAL_LIBEXEC}/${exe} "$$@"' >> ${STAGEDIR}${PREFIX}/bin/${exe} ${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${exe} . endfor . endif