php: delete /usr/lib/php/build instead of /usr/lib/php
authorFloris Bos <bos@je-eigen-domein.nl>
Mon, 18 May 2015 19:51:59 +0000 (21:51 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 19 May 2015 19:37:56 +0000 (21:37 +0200)
Fixes #8121

External PHP modules like the OPcache may live in
/usr/lib/php/extensions, so only delete /usr/lib/php/build

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/php/php.mk

index 279ebf8ecebed950e8b4052bc02bb6de5362f384..bc3794af88f3cda5827f48fb5d6413bb8937a63d 100644 (file)
@@ -295,7 +295,7 @@ endef
 PHP_POST_INSTALL_TARGET_HOOKS += PHP_EXTENSIONS_FIXUP
 
 define PHP_INSTALL_FIXUP
-       rm -rf $(TARGET_DIR)/usr/lib/php
+       rm -rf $(TARGET_DIR)/usr/lib/php/build
        rm -f $(TARGET_DIR)/usr/bin/phpize
        $(INSTALL) -D -m 0755 $(PHP_DIR)/php.ini-production \
                $(TARGET_DIR)/etc/php.ini