From owner-dev-commits-ports-all@freebsd.org Wed Apr 21 04:57:40 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8572A5F62F0; Wed, 21 Apr 2021 04:57:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FQ7b83Hs3z4cNZ; Wed, 21 Apr 2021 04:57:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 643451FBE5; Wed, 21 Apr 2021 04:57:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13L4veDg077992; Wed, 21 Apr 2021 04:57:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13L4ve1D077991; Wed, 21 Apr 2021 04:57:40 GMT (envelope-from git) Date: Wed, 21 Apr 2021 04:57:40 GMT Message-Id: <202104210457.13L4ve1D077991@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tobias Kortkamp Subject: git: 12837690ed0c - main - Mk/Uses/cabal.mk: Replace shell process in EXECUTABLES wrapper scripts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tobik X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 12837690ed0c7785f94e8793ddc13a57477ef319 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2021 04:57:40 -0000 The branch main has been updated by tobik: URL: https://cgit.FreeBSD.org/ports/commit/?id=12837690ed0c7785f94e8793ddc13a57477ef319 commit 12837690ed0c7785f94e8793ddc13a57477ef319 Author: Tobias Kortkamp AuthorDate: 2021-04-21 04:34:56 +0000 Commit: Tobias Kortkamp CommitDate: 2021-04-21 04:46:41 +0000 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