Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [CONSOLIDATED PULL 23/27] qt4: allow a reduction in build time
Date: Tue, 16 Aug 2011 23:26:46 -0700	[thread overview]
Message-ID: <5708a11bfe4a17baea022d1ed8d77b50c136b692.1313560883.git.sgw@linux.intel.com> (raw)
In-Reply-To: <cover.1313560883.git.sgw@linux.intel.com>
In-Reply-To: <cover.1313560883.git.sgw@linux.intel.com>

From: Anders Darander <anders@chargestorm.se>

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
 }
-- 
1.7.6




  parent reply	other threads:[~2011-08-17  6:31 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17  6:26 [CONSOLIDATED PULL 00/27] Updates and various fixes Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 01/27] cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-native Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 02/27] libproxy: remove dependency on X libs Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 03/27] libxcb: enable native/nativesdk builds as was done previously in meta-oe Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 04/27] qemu: Make qemu buildable inside qemux86/qemuppc target Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 05/27] rootfs_rpm: Fix DEFAULTTUNE setting in multilib case Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 06/27] package_rpm: enhance strip_multilib function Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 07/27] package_rpm: Fix package rename issue in multilib case Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 08/27] gtk-icon-cache: Adding MLPREFIX when dynamically set RDEPENDS Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 09/27] linux-yocto: bump version string to 3.0.1 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 10/27] qemu: change default kernel to 3.0.x Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 11/27] linux-yocto: meta SRCREV bump Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 12/27] package(_ipk).bbclass: opkg using ALL_MULTILIB_PACKAGE_ARCHS Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 13/27] bluez-hcidump: upgrade from 2.0 to 2.1 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 14/27] tcf-agent: add openssl into DEPENDS Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 15/27] cronie: upgrade from 1.4.7 to 1.4.8 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 16/27] mdadm: upgrade mdadm from 3.2.1 to 3.2.2 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 17/27] util-macros: upgrade from 1.14.0 to the latest version 0.15.0 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 18/27] freetype: upgrade from 2.4.4 to 2.4.6 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 19/27] xproto: upgrade from 7.0.21 to 7.0.22 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 20/27] glproto: upgrade from 1.4.13 to 1.4.14 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 21/27] dri2proto: upgrade from 2.4 to 2.6 Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 22/27] distro_tracking_fields.inc: update the info for the following recipes Saul Wold
2011-08-17  6:26 ` Saul Wold [this message]
2011-08-17  6:26 ` [CONSOLIDATED PULL 24/27] qmake_base: add uclibceabi Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 25/27] connman: use DISTRO_FEATURES to enable wifi and bluetooth Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 26/27] ofono: conditionally enable bluetooth Saul Wold
2011-08-17  6:26 ` [CONSOLIDATED PULL 27/27] create-pull-request: increase likelihood of detecting a rename Saul Wold
2011-08-17  6:36 ` [CONSOLIDATED PULL 00/27] Updates and various fixes Anders Darander
2011-08-17 14:17 ` Richard Purdie

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=5708a11bfe4a17baea022d1ed8d77b50c136b692.1313560883.git.sgw@linux.intel.com \
    --to=sgw@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