Date: Sat, 4 Nov 2023 12:32:17 +0900 From: Tatsuki Makino <tatsuki_makino@hotmail.com> To: Yasuhiro Kimura <yasu@FreeBSD.org>, "ports@FreeBSD.org" <ports@freebsd.org> Subject: Re: 'USES=shebangfix' doesn't work with samba ports Message-ID: <SI2PR01MB5036568F9BF570876802D151FAA4A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> In-Reply-To: <20231103.181558.155976036412011835.yasu@FreeBSD.org> References: <20231101.194831.884534926634764408.yasu@FreeBSD.org> <SI2PR01MB5036131DC946D79189FF0A2BFAA6A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> <SI2PR01MB50368B5A6B6BC4152606803DFAA5A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com> <20231103.181558.155976036412011835.yasu@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Yasuhiro Kimura wrote on 2023/11/03 18:15: > Bug 274885 net/samba413 net/samba416: Make 'USES=shebangfix' work as is expected > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274885 Thank you very much. Then, if the solution is on Mk/Uses/shebangfix.mk side, the following patch could be used. It seems that there was a mechanism in bsd.port.mk to load again at a later time. This would mean that all variables can be handled. Regards. Below is the patch. This has only been written and not tested. diff --git a/Mk/Uses/shebangfix.mk b/Mk/Uses/shebangfix.mk index 20dba527996..92a2093ef08 100644 --- a/Mk/Uses/shebangfix.mk +++ b/Mk/Uses/shebangfix.mk @@ -35,6 +35,11 @@ .if !defined(_INCLUDE_USES_SHEBANGFIX_MK) _INCLUDE_USES_SHEBANGFIX_MK= yes +_USES_POST+= shebangfix +.endif + +.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_SHEBANGFIX_POST_MK) +_INCLUDE_USES_SHEBANGFIX_POST_MK= yes SHEBANG_LANG+= bash java ksh perl php python ruby tcl tk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SI2PR01MB5036568F9BF570876802D151FAA4A>