[OE-core] autotools_preconfigure not removing separate B

Martin Jansa martin.jansa at gmail.com
Thu May 9 10:48:04 UTC 2013


Do we really need -e "${CONFIGURESTAMPFILE}" check in autotools_preconfigure?

In some cases when do_configure is failing (but after creating e.g. .qmake.cache)
it would be better to start with clean B on 2nd attempt to configure it, but
CONFIGURESTAMPFILE wasn't created yet.

Does someone remember why we need to test CONFIGURESTAMPFILE existence first 
(was it only to prevent cat ${CONFIGURESTAMPFILE} to fail?)

autotools_preconfigure() {
        if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
                if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${S}" != "${B}" ]; then
                        echo "Previously configured separate build directory detected, cleaning ${B}"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130509/86ead57d/attachment-0001.sig>


More information about the Openembedded-core mailing list