php: add a vardeps for configure on sysconfdir
PATCH 1/1 php: add a vardeps for configure on sysconfdir
From: Roy Li <[email protected]>
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.
--- meta-oe/recipes-devtools/php/php_5.5.24.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/php/php_5.5.24.bb +2 -0
@@ -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!'
Signature · 1 line
1.9.1
Quoted 3 lines · On Wed, Jun 03, 2015 at 05:39:36PM +0800, [email protected] wrote:
From: Roy Li <[email protected]>
building php will fail when sstatus is used, since some hardcode paths
what's sstatus? did you mean sstate?
Quoted 10 lines
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.
Please improve the commit message, from this I'm still not sure what this is supposed to fix.
Quoted 27 lines
Signed-off-by Roy Li <[email protected]>--- meta-oe/recipes-devtools/php/php_5.5.24.bb | 2 ++ 1 file changed, 2 insertions(+)meta-oe/recipes-devtools/php/php_5.5.24.bb +2
-0@@ -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!'Signature · 7 lines
1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 15 lines · Martin Jansa
Quoted 3 lines · On Wed, Jun 03, 2015 at 05:39:36PM +0800, [email protected] wrote:
From: Roy Li <[email protected]>
building php will fail when sstatus is used, since some hardcode paths
what's sstatus? did you mean sstate?
Quoted 8 lines
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.
Quoted 6 lines
Quoted 2 lines
Consider no too much package depends on php-native, so add a vardeps for configure on sysconfdir to force php-native to build always.
Please improve the commit message, from this I'm still not sure what this is supposed to fix.
Ok, I will resend it, if the new commit log is not clear, I think you can build two project with same sstate.
Thanks
-Roy
Quoted 28 lines
Quoted 27 lines
Signed-off-by Roy Li <[email protected]>--- meta-oe/recipes-devtools/php/php_5.5.24.bb | 2 ++ 1 file changed, 2 insertions(+)meta-oe/recipes-devtools/php/php_5.5.24.bb +2
-1@@ -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
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
Best Reagrds, Roy | RongQing Li