[package] php5: create missing directory
authorFlorian Fainelli <florian@openwrt.org>
Wed, 19 Sep 2012 15:09:25 +0000 (15:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 19 Sep 2012 15:09:25 +0000 (15:09 +0000)
for some reason building php5 fails for me with the following error:

make -C
/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5
install
INSTALL_ROOT=/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5/staging
make[4]: Entering directory
`/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5'
Installing shared extensions:
/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5/staging/usr/lib/php/extensions/no-debug-non-zts-20100525/
Installing PHP CGI binary:
/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5/staging/usr/bin/
cp: cannot create regular file
`/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5/staging/usr/bin/#INST@8653#':
No such file or directory
make[4]: *** [install-cgi] Error 1
make[4]: Leaving directory
`/openwrt/kirkwood/trunk/build_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/php-5.4.5'
make[3]: ***
[/openwrt/kirkwood/trunk/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/stamp/.php_installed]
Error 2
make[3]: Leaving directory `/openwrt/kirkwood/trunk/feeds/packages/lang/php5'
make[2]: *** [package/feeds/packages/php5/compile] Error 2
make[2]: Leaving directory `/openwrt/kirkwood/trunk'
make[1]: ***
[/openwrt/kirkwood/trunk/staging_dir/target-arm_v5te_uClibc-0.9.33.2_eabi/stamp/.package_compile]
Error 2

I needed the following patch:

Signed-off-by: Martin Mueller <mm@sig21.net>
SVN-Revision: 33469

lang/php5/Makefile

index 4a41ee921ab8ad8dc7a4fb9aaeb11134e234b1f5..9d3170ffab3e05e10b1cee6645007a2cc71bd8f1 100644 (file)
@@ -493,6 +493,7 @@ define Build/Prepare
 endef
 
 define Build/InstallDev
+       mkdir -p $(PKG_BUILD_DIR)/staging/usr/bin
        make -C $(PKG_BUILD_DIR) install INSTALL_ROOT=$(PKG_BUILD_DIR)/staging
        rm -f $(PKG_BUILD_DIR)/staging/usr/bin/php
        $(CP) $(PKG_BUILD_DIR)/staging/* $(STAGING_DIR_HOST)