diff options
author | Jochen Neumeister <joneum@FreeBSD.org> | 2017-09-09 16:49:29 +0000 |
---|---|---|
committer | Jochen Neumeister <joneum@FreeBSD.org> | 2017-09-09 16:49:29 +0000 |
commit | fb672379f80cc35e43e7154f358fb1a2c45da21b (patch) | |
tree | 5c59b4c8420a70aeb6eb2cd191b90e7423c3fe6d /Mk/Uses | |
parent | x11/dsbautostart: Update to 1.1 (diff) |
When "USES= php:ext" is set into the Makefile, there is a following
warning:"@exec is deprecated, please use @[pre|post][un]exec" [1][2]
After change exec and unexec to post* it works again correctly
[1] https://github.com/freebsd/freebsd-ports/blob/master/CHANGES#L407
[2] https://www.freebsd.org/doc/en/books/porters-handbook/book.html#plist-keywords-base-exec
Approved by: portmgr (mat)
Approved my: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D12215
Notes
Notes:
svn path=/head/; revision=449499
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/php.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index 3e0ac35bf4a0..e423bb77a2c5 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -275,13 +275,13 @@ add-plist-phpext: >> ${TMPPLIST} @${FIND} -P ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME} ! -type d 2>/dev/null | \ ${SED} -ne 's,^${STAGEDIR}${PREFIX}/,,p' >> ${TMPPLIST} - @${ECHO_CMD} "@exec echo \#include \\\"ext/${PHP_MODNAME}/config.h\\\" >> %D/include/php/ext/php_config.h" \ + @${ECHO_CMD} "@postexec echo \#include \\\"ext/${PHP_MODNAME}/config.h\\\" >> %D/include/php/ext/php_config.h" \ >> ${TMPPLIST} - @${ECHO_CMD} "@unexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \ + @${ECHO_CMD} "@preunexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \ >> ${TMPPLIST} - @${ECHO_CMD} "@unexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \ + @${ECHO_CMD} "@preunexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \ >> ${TMPPLIST} - @${ECHO_CMD} "@unexec ${RM} %D/include/php/ext/php_config.h.orig" \ + @${ECHO_CMD} "@preunexec ${RM} %D/include/php/ext/php_config.h.orig" \ >> ${TMPPLIST} @${ECHO_CMD} "${PHP_EXT_INI_FILE}" \ >> ${TMPPLIST} |