Hi,

On 2016-12-26 16:39, Huang Qiyu wrote:
1)Add php_7.1.0.bb
2)Delete php_5.5.38.bb,since it is Replaced by php_5.6.26.bb.
3)Move pthread-check-threads-m4.patch out of 7.1.0, since it is integrated upstream.

Signed-off-by: Huang Qiyu <huangqy.f...@cn.fujitsu.com>

I took the latest and greatest php 7.1.0 from master http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/php

And added php (among other things) to a poky/pyro core-image-sato-sdk and built an extensible SDK

bitbake core-image-sato-sdk -c populate_sdk_ext

When I try to install the SDK

./poky-glibc-x86_64-core-image-sato-sdk-armv7a-neon-toolchain-ext-2.3.sh

I get:

Extracting SDK................................................................................................................................done
Setting it up...
Extracting buildtools...
Preparing build system...
Parsing recipes: 100% |#########################################################################################################################| Time: 0:00:41 Initialising tasks: 100% |######################################################################################################################| Time: 0:00:15 Checking sstate mirror object availability: 100% |##############################################################################################| Time: 0:00:00 WARNING: Logfile for failed setscene task is /opt/ext-sdk/poky/2.3/tmp/work/x86_64-linux/php-native/7.1.0-r0/temp/log.do_populate_sysroot_setscene.24207 WARNING: Setscene task (virtual:native:/opt/ext-sdk/poky/2.3/layers/multi-v7-ml/recipes-devtools/php.ori/php_7.1.0.bb:do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
ERROR: Task php-native.do_populate_sysroot_setscene failed
ERROR: SDK preparation failed: error log written to /opt/ext-sdk/poky/2.3/preparing_build_system.log

I believe the problem is in:

php_sstate_postinst

In cooker mode I am able to see related warnings like this:

bitbake php-native -c clean && bitbake php-native

you might need to run it twize

NOTE: Executing SetScene Tasks
WARNING: Logfile for failed setscene task is /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-pyro-multi-v7-core-image-minimal-sato-sdk-ext/build/build/tmp/work/x86_64-linux/php-native/7.1.0-r1/temp/log.do_populate_sysroot_setscene.6285 WARNING: Setscene task (virtual:native:/tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-pyro-multi-v7-core-image-minimal-sato-sdk-ext/build/meta-mainline/multi-v7-ml/recipes-devtools/php/php_7.1.0.bb:do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
NOTE: Executing RunQueue Tasks

Note that with -c cleansstate or -c cleanall you won't see the warning

I hacked this to make it compile without a warning - not sure it is correct:

php_sstate_postinst() {
    if [ "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
    then
head -n1 ${SYSROOT_DESTDIR}${sysconfdir}/pear.conf > ${SYSROOT_DESTDIR}${sysconfdir}/pear.tmp.conf for p in `tail -n1 ${SYSROOT_DESTDIR}${sysconfdir}/pear.conf | sed -s 's/;/ /g'`; do echo $p | awk -F: 'BEGIN {OFS = ":"; ORS = ";"}{if(NF==3){print $1, length($3)-2*match($3, /^"/), $3} else {print $0}}';
        done >> ${SYSROOT_DESTDIR}${sysconfdir}/pear.tmp.conf
mv -f ${SYSROOT_DESTDIR}${sysconfdir}/pear.tmp.conf ${SYSROOT_DESTDIR}/${sysconfdir}/pear.conf
    fi
}

Can you please have a look?

Regards,

Robert
--
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to