mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
Mk/Uses/shebangfix.mk: Fix SHEBANG_FILES to use find(1)
Ports like net/vmware-vsphere-cli use SHEBANG_FILES with globs like so: SHEBANG_FILES= bin/* ... As of FreeBSD 11.1-RELEASE sed has changed and errors if attempted on non-file objects. In the case of the cited port there are many other files in the bin/ directory which are symlinks for compatibility with old scripts. This causes the port patching to fail. PR: 221229 Differential Revision: https://reviews.freebsd.org/D11853
This commit is contained in:
parent
a10a4258a7
commit
45e556ab89
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447527
@ -94,7 +94,8 @@ fix-shebang:
|
|||||||
.endif
|
.endif
|
||||||
.if defined(SHEBANG_FILES)
|
.if defined(SHEBANG_FILES)
|
||||||
@cd ${WRKSRC}; \
|
@cd ${WRKSRC}; \
|
||||||
${ECHO_CMD} ${SHEBANG_FILES} | ${XARGS} ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS}
|
${FIND} ${SHEBANG_FILES} -type f \
|
||||||
|
-exec ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS} {} +
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user