Patchwork [2/2] qt4-embedded: move qte.sh profile script into own package

login
register
mail settings
Submitter Simon Busch
Date Sept. 25, 2011, 12:57 p.m.
Message ID <1316955464-19997-2-git-send-email-morphis@gravedo.de>
Download mbox | patch
Permalink /patch/12091/
State New, archived
Headers show

Comments

Simon Busch - Sept. 25, 2011, 12:57 p.m.
We don't want to pull the whole qt suite in our images when only installing a tiny setup
which needs the profile script for several configuration issues. This moves the qte.sh
profile script into a qt4-embedded-conf package which is automatically installed when an
image depends on qt4-embedded.

Signed-off-by: Simon Busch <morphis@gravedo.de>
---
 meta/recipes-qt/qt4/qt4-embedded.inc |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
Saul Wold - Sept. 28, 2011, 4:06 p.m.
On 09/25/2011 05:57 AM, Simon Busch wrote:
> We don't want to pull the whole qt suite in our images when only installing a tiny setup
> which needs the profile script for several configuration issues. This moves the qte.sh
> profile script into a qt4-embedded-conf package which is automatically installed when an
> image depends on qt4-embedded.
>
> Signed-off-by: Simon Busch<morphis@gravedo.de>
> ---
>   meta/recipes-qt/qt4/qt4-embedded.inc |    8 ++++++--
>   1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
> index 1ede922..ed872b0 100644
> --- a/meta/recipes-qt/qt4/qt4-embedded.inc
> +++ b/meta/recipes-qt/qt4/qt4-embedded.inc
> @@ -3,7 +3,7 @@ SECTION = "libs"
>   LICENSE = "LGPLv2.1 | GPLv3"
>   HOMEPAGE = "http://qt.nokia.com"
>   DEPENDS += "directfb tslib"
> -INC_PR = "r31"
> +INC_PR = "r32"
>
>   QT_BASE_NAME ?= "qt4-embedded"
>   QT_BASE_LIB  ?= "libqt-embedded"
> @@ -27,7 +27,11 @@ do_install_append() {
>       install -m 0755 ${WORKDIR}/qte.sh ${D}${sysconfdir}/profile.d/
>   }
>
> -FILES_${PN} += " ${sysconfdir}/profile.d/qte.sh"
> +# We put the qte profile into it's own package as we don't want to install all qt stuff
> +# with depending on the global package qt4-embedded
> +PACKAGES += " ${PN}-conf"
> +FILES_${PN}-conf += " ${sysconfdir}/profile.d/qte.sh"
> +RDEPENDS_${PN} += " ${PN}-conf"
>
>   inherit qt4e
>
Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
index 1ede922..ed872b0 100644
--- a/meta/recipes-qt/qt4/qt4-embedded.inc
+++ b/meta/recipes-qt/qt4/qt4-embedded.inc
@@ -3,7 +3,7 @@  SECTION = "libs"
 LICENSE = "LGPLv2.1 | GPLv3"
 HOMEPAGE = "http://qt.nokia.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r31"
+INC_PR = "r32"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
@@ -27,7 +27,11 @@  do_install_append() {
     install -m 0755 ${WORKDIR}/qte.sh ${D}${sysconfdir}/profile.d/
 }
 
-FILES_${PN} += " ${sysconfdir}/profile.d/qte.sh"
+# We put the qte profile into it's own package as we don't want to install all qt stuff
+# with depending on the global package qt4-embedded
+PACKAGES += " ${PN}-conf"
+FILES_${PN}-conf += " ${sysconfdir}/profile.d/qte.sh"
+RDEPENDS_${PN} += " ${PN}-conf"
 
 inherit qt4e