diff options
author | bsiegert <bsiegert> | 2015-07-04 14:36:56 +0000 |
---|---|---|
committer | bsiegert <bsiegert> | 2015-07-04 14:36:56 +0000 |
commit | a44b4d801854e253306e8c510e2534607fc5edbb (patch) | |
tree | 9857d60557667b414b25acb6c85680df246cfb28 | |
parent | e153a5781710523d27bca819fc8eed8c4c999fe0 (diff) | |
download | pkgsrc-a44b4d801854e253306e8c510e2534607fc5edbb.tar.gz |
Pear occasionally leaves some internal state files lying around. Do not
only skip them in file checking but actively delete them at the end of the
install.
Fixes some OSX fallout that jperkin@ was seeing, plus PR pkg/49071.
-rw-r--r-- | lang/php/pear.mk | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lang/php/pear.mk b/lang/php/pear.mk index 0b6cad86097..34d201ab7cd 100644 --- a/lang/php/pear.mk +++ b/lang/php/pear.mk @@ -1,4 +1,4 @@ -# $NetBSD: pear.mk,v 1.23 2013/01/07 14:26:14 taca Exp $ +# $NetBSD: pear.mk,v 1.24 2015/07/04 14:36:56 bsiegert Exp $ # # This Makefile fragment is intended to be included by packages that build # and install pear packages. @@ -50,21 +50,23 @@ GENERATE_PLIST+= ${PEAR_GENERATE_PLIST} NO_BUILD= yes +.if ${_USE_DESTDIR} != "no" +PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/\.alias/.*\.txt +PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/.*\.reg +PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.depdb +PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.depdblock +PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.filemap +PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.lock +CHECK_FILES_SKIP+= ${PEAR_FILES_SKIP} +.endif + post-extract: @cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml do-install: cd ${WRKSRC} && ${SETENV} TZ=UTC \ ${PEAR_CMD} "install" ${PEAR_DESTDIR} -n -O package.xml || exit 1 - -.if ${_USE_DESTDIR} != "no" -CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/\.alias/.*\.txt -CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/.*\.reg -CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.depdb -CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.depdblock -CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.filemap -CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.lock -.endif + ${RM} -f ${PEAR_FILES_SKIP:S/^/${DESTDIR}&/} .include "../../lang/php/phpversion.mk" .include "${PHPPKGSRCDIR}/buildlink3.mk" |