svn commit: r449499 - head/Mk/Uses
Jochen Neumeister
joneum at FreeBSD.org
Sat Sep 9 16:49:30 UTC 2017
Author: joneum
Date: Sat Sep 9 16:49:29 2017
New Revision: 449499
URL: https://svnweb.freebsd.org/changeset/ports/449499
Log:
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
Modified:
head/Mk/Uses/php.mk
Modified: head/Mk/Uses/php.mk
==============================================================================
--- head/Mk/Uses/php.mk Sat Sep 9 16:48:31 2017 (r449498)
+++ head/Mk/Uses/php.mk Sat Sep 9 16:49:29 2017 (r449499)
@@ -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}
More information about the svn-ports-all
mailing list