From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Cc: Otavio Salvador <otavio@ossystems.com.br>
Subject: Re: [meta-qt5][PATCH 1/2] nativesdk-qtbase: Fix install error in case install task is rerun
Date: Mon, 17 Feb 2014 12:38:11 -0500 [thread overview]
Message-ID: <20140217173811.GQ22890@denix.org> (raw)
In-Reply-To: <1392411754-10608-1-git-send-email-otavio@ossystems.com.br>
On Fri, Feb 14, 2014 at 07:02:33PM -0200, Otavio Salvador wrote:
> In case changes are done in do_install and the sstate checksums
> change, the task would fail as the qmake binary has already been
> replaced. Avoid this error checking for the original filename.
BTW, I was working on a different change in this area, which would do the
qmake swap in ${D} instead of ${B} - that way it would be safe to repeat
do_install if it fails and it would fix the above issue. Would you rather want
that change or keep yours?
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> recipes-qt/qt5/nativesdk-qtbase.inc | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc
> index c4ef6e8..36bc334 100644
> --- a/recipes-qt/qt5/nativesdk-qtbase.inc
> +++ b/recipes-qt/qt5/nativesdk-qtbase.inc
> @@ -178,8 +178,10 @@ do_install() {
> find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
>
> # switch back the proper qmake
> - rm ${B}/bin/qmake
> - mv ${B}/bin/qmake-real ${B}/bin/qmake
> + if [ -e ${B}/bin/qmake-real ]; then
> + rm ${B}/bin/qmake
> + mv ${B}/bin/qmake-real ${B}/bin/qmake
> + fi
>
> oe_runmake install INSTALL_ROOT=${D}
>
> --
> 1.7.10.4
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
next prev parent reply other threads:[~2014-02-17 17:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 21:02 [meta-qt5][PATCH 1/2] nativesdk-qtbase: Fix install error in case install task is rerun Otavio Salvador
2014-02-14 21:02 ` [meta-qt5][PATCH 2/2] nativesdk-qtbase.inc: Remove unused contents Otavio Salvador
2014-02-17 17:36 ` Denys Dmytriyenko
2014-02-17 17:45 ` Otavio Salvador
2014-02-21 21:31 ` Jacob Kroon
2014-02-21 21:46 ` Otavio Salvador
2014-02-21 21:56 ` Jacob Kroon
2014-02-17 17:38 ` Denys Dmytriyenko [this message]
2014-02-17 17:46 ` [meta-qt5][PATCH 1/2] nativesdk-qtbase: Fix install error in case install task is rerun Otavio Salvador
-- strict thread matches above, loose matches on Subject: below --
2014-02-17 19:37 Otavio Salvador
2014-02-17 19:39 ` Otavio Salvador
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140217173811.GQ22890@denix.org \
--to=denis@denix.org \
--cc=openembedded-devel@lists.openembedded.org \
--cc=otavio@ossystems.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.