git: 2356008bc729 - main - shells/ksh-devel: Fix build with /bin/sh

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Sun, 01 Mar 2026 16:47:36 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2356008bc7298e9c9ec167ede89449b8dac0ac45

commit 2356008bc7298e9c9ec167ede89449b8dac0ac45
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2026-03-01 16:25:42 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-03-01 16:46:55 +0000

    shells/ksh-devel: Fix build with /bin/sh
    
    When /bin/sh is $SHELL (as in poudriere), upstream commit 93fdfc28
    causes a ksh package error.
---
 shells/ksh-devel/files/patch-src_cmd_INIT_mamake.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/shells/ksh-devel/files/patch-src_cmd_INIT_mamake.c b/shells/ksh-devel/files/patch-src_cmd_INIT_mamake.c
new file mode 100644
index 000000000000..a589e3638358
--- /dev/null
+++ b/shells/ksh-devel/files/patch-src_cmd_INIT_mamake.c
@@ -0,0 +1,18 @@
+--- src/cmd/INIT/mamake.c.orig	2026-02-25 16:06:24.000000000 -0800
++++ src/cmd/INIT/mamake.c	2026-03-01 08:17:37.760046000 -0800
+@@ -3011,15 +3011,6 @@
+ 		state.maxjobs = 0;
+ 
+ 	/*
+-	 * standards compliance for shell actions
+-	 */
+-
+-	setenv("POSIXLY_CORRECT", "y", 1);
+-#if __QNX__
+-	setenv("POSIX_STRICT", "y", 1);  /* required for /bin/cp on QNX to update the target's last-modified date */
+-#endif
+-
+-	/*
+ 	 * load the environment
+ 	 */
+