* autotools_preconfigure not removing separate B
@ 2013-05-09 10:48 Martin Jansa
2013-05-09 20:57 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Martin Jansa @ 2013-05-09 10:48 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
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}"
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: autotools_preconfigure not removing separate B
2013-05-09 10:48 autotools_preconfigure not removing separate B Martin Jansa
@ 2013-05-09 20:57 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2013-05-09 20:57 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
On Thu, 2013-05-09 at 12:48 +0200, Martin Jansa wrote:
> 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?)
I suspect so. I think the logical here also assumed we were going to try
and do something like a "make distclean" originally too so it was rather
specific about the conditions.
With the better support for separate ${B} looking like the right
direction to go (roughly well supported by recipes), we might be able to
justify unconditionally wiping ${B} at the start of do_configure.
> 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}"
i.e. this just becomes:
if [ "${S}" != "${B}" ]; then
echo "Separate build directory detected, cleaning ${B}"
We still need a plan to deal with that horrible monster include file.
Its fine for proof of concept but we need to move somewhere from here.
Cheers,
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-09 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 10:48 autotools_preconfigure not removing separate B Martin Jansa
2013-05-09 20:57 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox