Date: Sat, 9 Sep 2017 16:49:29 +0000 (UTC) From: Jochen Neumeister <joneum@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449499 - head/Mk/Uses Message-ID: <201709091649.v89GnTNJ013634@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709091649.v89GnTNJ013634>