Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
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: Tue, 16 Aug 2011 15:18:02 +0100	[thread overview]
Message-ID: <201108161518.02244.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <0723e2f710db1680c71a1f6f848563cfcc6b3cdc.1313503017.git.anders@chargestorm.se>

On Tuesday 16 August 2011 14:57:48 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
> 
>          # Package all the plugins and their -dbg version and create a meta
> package import os
> @@ -278,11 +281,11 @@ do_install() {
> 
>  	# These are host binaries, we should only use them in staging
>  	rm ${D}/${bindir}/qmake
> -	rm ${D}/${bindir}/uic
> -	rm ${D}/${bindir}/uic3
> +	rm -f ${D}/${bindir}/uic
> +	rm -f ${D}/${bindir}/uic3
>  	rm ${D}/${bindir}/moc
>  	rm ${D}/${bindir}/rcc
> -	rm ${D}/${bindir}/lrelease
> +	rm -f ${D}/${bindir}/lrelease
> 
>  	# fix pkgconfig, libtool and prl files
>  	sed -i -e s#-L${S}/lib##g \
> @@ -319,6 +322,6 @@ do_install() {
> 
>  	#Append an E to the qtdemo file
>  	if [ -n "${QT_LIBINFIX}" ] ; then
> -		mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
> +		[ -f ${D}${bindir}/qtdemo ] && mv ${D}${bindir}/qtdemo
> ${D}${bindir}/qtdemo${QT_LIBINFIX} fi
>  }

Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



  reply	other threads:[~2011-08-16 14:22 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 [this message]
2011-08-17 14:08   ` Richard Purdie
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=201108161518.02244.paul.eggleton@linux.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --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