Re: 'USES=shebangfix' doesn't work with samba ports
- In reply to: Yasuhiro Kimura : "Re: 'USES=shebangfix' doesn't work with samba ports"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Nov 2023 03:32:17 UTC
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