From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/5] qt4: allow a reduction in build time
Date: Wed, 17 Aug 2011 15:08:15 +0100 [thread overview]
Message-ID: <1313590095.13995.38.camel@rex> (raw)
In-Reply-To: <0723e2f710db1680c71a1f6f848563cfcc6b3cdc.1313503017.git.anders@chargestorm.se>
On Tue, 2011-08-16 at 15:57 +0200, Anders Darander wrote:
> When reducing build time by adding QT_DISTRO_FLAGS from the set '-no-gui -nomake tools
> -nomake examples -nomake demos -nomake docs', build failure can occur, due to not building
> all tools.
>
> * Make rm not error out when removing one of the, possibly, non-existing tools.
> * Only try to rename qtdemo, if qtdemo exists.
> * Guard do_split_packages() with an try-except-clause, otherwise we get an error stating
> that .../phrasebooks/... do not exist.
>
> Signed-off-by: Anders Darander <anders@chargestorm.se>
> ---
> meta/recipes-qt/qt4/qt4.inc | 13 ++++++++-----
> 1 files changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
> index 0410a92..994ec12 100644
> --- a/meta/recipes-qt/qt4/qt4.inc
> +++ b/meta/recipes-qt/qt4/qt4.inc
> @@ -227,7 +227,10 @@ python populate_packages_prepend() {
>
> phrasebook_dir = bb.data.expand('${datadir}/${QT_DIR_NAME}/phrasebooks/', d)
> phrasebook_name = bb.data.expand('${QT_BASE_NAME}-phrasebook-%s', d)
> - do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' )
> + try:
> + do_split_packages(d, phrasebook_dir, '^(.*)\.qph$', phrasebook_name, '${PN} phrasebook for %s', extra_depends='' )
> + except:
> + pass
Please use some actual test here, not a general try/except/pass. This
reason is that is some failure we want to know about happens, this will
hide it as the code stands.
The rest of the patch is ok, this just needs tweaking.
Cheers,
Richard
next prev parent reply other threads:[~2011-08-17 14:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-16 13:57 [PATCH 0/5] Miscellaneous fixes: mainly qt- and DISTRO_FEATURES-related Anders Darander
2011-08-16 13:57 ` [PATCH 1/5] qt4: allow a reduction in build time Anders Darander
2011-08-16 14:18 ` Paul Eggleton
2011-08-17 14:08 ` Richard Purdie [this message]
2011-08-17 17:15 ` Anders Darander
2011-08-17 17:51 ` Anders Darander
2011-08-16 13:57 ` [PATCH 2/5] qmake_base: add uclibceabi Anders Darander
2011-08-16 13:57 ` [PATCH 3/5] connman: use DISTRO_FEATURES to enable wifi and bluetooth Anders Darander
2011-08-16 13:57 ` [PATCH 4/5] ofono: conditionally enable bluetooth Anders Darander
2011-08-16 14:33 ` Koen Kooi
2011-08-17 6:31 ` Anders Darander
2011-08-16 13:57 ` [PATCH 5/5] create-pull-request: increase likelihood of detecting a rename Anders Darander
2011-08-23 1:00 ` [PATCH 0/5] Miscellaneous fixes: mainly qt- and DISTRO_FEATURES-related Saul Wold
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=1313590095.13995.38.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox