[oe] php.inc removing directories that do not exist

Stephano Cetola stephanoc at gmail.com
Tue Jul 15 00:06:46 UTC 2014


php.inc -> do_install_append_pn-php:


    rm -rf ${D}/${TMPDIR}
    [...]
    TMP=`dirname ${D}/${TMPDIR}`
    while test ${TMP} != ${D}; do
        rmdir ${TMP}
        TMP=`dirname ${TMP}`;
    done


Added in this commit:

https://github.com/openembedded/meta-oe/commit/357915b6d11dfa612fbadaa4966a0b3e0f332467



This is failing when I try to install PHP using Ubuntu 14.04.

Here are the variables being used:

${D} (bitbake destination dir) =
[...]/build/tmp/work/cortexa9hf-vfp-neon-reach-linux-gnueabi/php/5.4.14-r6.0/image

${TMPDIR} (bitbake temp dir) = [...]/build/tmp

The combination of ${D}/${TMPDIR} doesn't make any sense to me.  Maybe
the intention was something like ${D}/tmp?

I've removed these references to the dubious directory ${D}/${TMPDIR}
and everything builds fine without any warnings or errors. Anyone know
why this code exists?

Kind Regards,
Stephano



More information about the Openembedded-devel mailing list