[oe] [PATCH][meta-oe] php: add a vardeps for configure on sysconfdir

rongqing.li at windriver.com rongqing.li at windriver.com
Wed Jun 3 09:39:36 UTC 2015


From: Roy Li <rongqing.li at windriver.com>

building php will fail when sstatus is used, since some hardcode paths
in php-native will make the wrong path, and try to fix it like below:
    do_install_append_virtclass-native() {
           create_wrapper ${D}${bindir}/php \
               PHP_PEAR_SYSCONF_DIR=${sysconfdir}/ \
    }
but php-native does not work for a 64bit target(qemuarm64) and if sstat is
from a 32bit(qemuppc) on the host same machine.

Consider no too much package depends on php-native, so add a vardeps for
configure on sysconfdir to force php-native to build always.

Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
 meta-oe/recipes-devtools/php/php_5.5.24.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-devtools/php/php_5.5.24.bb b/meta-oe/recipes-devtools/php/php_5.5.24.bb
index 3e656af..9c0dd7f 100644
--- a/meta-oe/recipes-devtools/php/php_5.5.24.bb
+++ b/meta-oe/recipes-devtools/php/php_5.5.24.bb
@@ -106,6 +106,8 @@ EXTRA_OEMAKE = "INSTALL_ROOT=${D}"
 
 acpaths = ""
 
+do_configure[vardeps] += "${sysconfdir}"
+
 do_configure_prepend () {
     rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4
     find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!'
-- 
1.9.1




More information about the Openembedded-devel mailing list