Skip to contentSkip to conversation

qt4-embedded: rename qtdemo file

PATCH Applied Chase Maupin 6 participants 6 messages Jun 3, 2010 – Jun 11, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt4-embedded: rename qtdemo file

* Changed the name of the qtdemo exectable installed in the /usr/bin directory to qtdemoE for Qt embedded builds. This allows the Qt embedded version of the demos package to co-exist with the Qt X11 version.
* Changed the demos package file list to accept both qtdemo and qtdemoE.

---
 recipes/qt4/qt-4.6.2.inc     |    3 +++
 recipes/qt4/qt4-embedded.inc |    2 +-
 recipes/qt4/qt4.inc          |    4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)
recipes/qt4/qt-4.6.2.inc +3 -0
index e89cf17..4a9f077 100644
@@ -57,6 +57,9 @@ do_install_append() {
 	for i in rcc uic moc ; do
 		install -m 0755 ${S}/bin/$i ${D}${bindir}/
 	done
+
+	#Append an E to the qtdemo file
+	mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
 }
 
 LICENSE = "LGPLv2.1 GPLv3"
recipes/qt4/qt4-embedded.inc +1 -1
index 9aaca6e..436f64c 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r19"
+INC_PR = "r20"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
recipes/qt4/qt4.inc +2 -2
index 5a19f65..e246e17 100644
@@ -103,8 +103,8 @@ FILES_${QT_BASE_NAME}-common               = "${bindir}/qtconfig"
 FILES_${QT_BASE_NAME}-common-dbg           = "${bindir}/.debug/qtconfig"
 FILES_${QT_BASE_NAME}-dbus                 = "${bindir}/qdbus ${bindir}/qdbusxml2cpp ${bindir}/qdbuscpp2xml ${bindir}/qdbusviewer"
 FILES_${QT_BASE_NAME}-dbus-dbg             = "${bindir}/.debug/qdbus ${bindir}/.debug/qdbusxml2cpp ${bindir}/.debug/qdbuscpp2xml ${bindir}/.debug/qdbusviewer"
-FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo ${bindir}/${QT_DIR_NAME}/demos/*"
-FILES_${QT_BASE_NAME}-demos-dbg            = "${bindir}/.debug/qtdemo ${bindir}/${QT_DIR_NAME}/demos/.debug/*  ${bindir}/${QT_DIR_NAME}/demos/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug"
+FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/*"
+FILES_${QT_BASE_NAME}-demos-dbg            = "${bindir}/.debug/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/.debug/*  ${bindir}/${QT_DIR_NAME}/demos/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug"
 FILES_${QT_BASE_NAME}-designer             = "${bindir}/*designer*"
 FILES_${QT_BASE_NAME}-designer-dbg         = "${bindir}/.debug/*designer*"
 FILES_${QT_BASE_NAME}-examples             = "${bindir}/${QT_DIR_NAME}/examples/*"
Signature · 1 line
1.5.4.3
Acked-by on v1 1/1
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Chase Maupin

* Changed the name of the qtdemo exectable installed in the /usr/bin directory to qtdemoE for Qt embedded builds. This allows the Qt embedded version of the demos package to co-exist with the Qt X11 version.
* Changed the demos package file list to accept both qtdemo and qtdemoE.

Quoted 38 lines
---
 recipes/qt4/qt-4.6.2.inc     |    3 +++
 recipes/qt4/qt4-embedded.inc |    2 +-
 recipes/qt4/qt4.inc          |    4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)
recipes/qt4/qt-4.6.2.inc +3 -0
index e89cf17..4a9f077 100644
@@ -57,6 +57,9 @@ do_install_append() {
 	for i in rcc uic moc ; do
 		install -m 0755 ${S}/bin/$i ${D}${bindir}/
 	done
+
+	#Append an E to the qtdemo file
+	mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
 }
 
 LICENSE = "LGPLv2.1 GPLv3"
recipes/qt4/qt4-embedded.inc +1 -1
index 9aaca6e..436f64c 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r19"
+INC_PR = "r20"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
recipes/qt4/qt4.inc +0 -0
index 5a19f65..e246e17 100644

recipes/qt4/qt4.inc FILES_${QT_BASE_NAME}-common = "${bindir}/qtconfig" · line 110

Quoted 10 lines
recipes/qt4/qt4.inc +2 -2
@@ -103,8 +103,8 @@ FILES_${QT_BASE_NAME}-common               = "${bindir}/qtconfig"
 FILES_${QT_BASE_NAME}-common-dbg           = "${bindir}/.debug/qtconfig"
 FILES_${QT_BASE_NAME}-dbus                 = "${bindir}/qdbus ${bindir}/qdbusxml2cpp ${bindir}/qdbuscpp2xml ${bindir}/qdbusviewer"
 FILES_${QT_BASE_NAME}-dbus-dbg             = "${bindir}/.debug/qdbus ${bindir}/.debug/qdbusxml2cpp ${bindir}/.debug/qdbuscpp2xml ${bindir}/.debug/qdbusviewer"
-FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo ${bindir}/${QT_DIR_NAME}/demos/*"
-FILES_${QT_BASE_NAME}-demos-dbg            = "${bindir}/.debug/qtdemo ${bindir}/${QT_DIR_NAME}/demos/.debug/*  ${bindir}/${QT_DIR_NAME}/demos/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug"
+FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/*"
+FILES_${QT_BASE_NAME}-demos-dbg            = "${bindir}/.debug/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/.debug/*  ${bindir}/${QT_DIR_NAME}/demos/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug"
 FILES_${QT_BASE_NAME}-designer             = "${bindir}/*designer*"
 FILES_${QT_BASE_NAME}-designer-dbg         = "${bindir}/.debug/*designer*"
 FILES_${QT_BASE_NAME}-examples             = "${bindir}/${QT_DIR_NAME}/examples/*"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMB88uMkyGM64RGpERAvNNAJ9dxgbS0or8dffW2g3EyQDgy2+YLACeKsUl aw4UUGIRN8dpTA3Y694MOFY=
=YC+E
-----END PGP SIGNATURE-----

#2 lore raw
Quoted 12 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Chase Maupin

* Changed the name of the qtdemo exectable installed in the /usr/bin directory to qtdemoE for Qt embedded builds. This allows the Qt embedded version of the demos package to co-exist with the Qt X11 version.
* Changed the demos package file list to accept both qtdemo and qtdemoE.

Quoted 3 lines
Quoted 1 line

Applied, thanks.

Quoted 62 lines
Quoted 38 lines
---
 recipes/qt4/qt-4.6.2.inc     |    3 +++
 recipes/qt4/qt4-embedded.inc |    2 +-
 recipes/qt4/qt4.inc          |    4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)
recipes/qt4/qt-4.6.2.inc +3 -0
index e89cf17..4a9f077 100644
@@ -57,6 +57,9 @@ do_install_append() {
 	for i in rcc uic moc ; do
 		install -m 0755 ${S}/bin/$i ${D}${bindir}/
 	done
+
+	#Append an E to the qtdemo file
+	mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
 }
 
 LICENSE = "LGPLv2.1 GPLv3"
recipes/qt4/qt4-embedded.inc +1 -1
index 9aaca6e..436f64c 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r19"
+INC_PR = "r20"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
recipes/qt4/qt4.inc +0 -0
index 5a19f65..e246e17 100644

recipes/qt4/qt4.inc FILES_${QT_BASE_NAME}-common = "${bindir}/qtconfig" · line 110

Quoted 10 lines
recipes/qt4/qt4.inc +2 -2
@@ -103,8 +103,8 @@ FILES_${QT_BASE_NAME}-common               = "${bindir}/qtconfig"
 FILES_${QT_BASE_NAME}-common-dbg           = "${bindir}/.debug/qtconfig"
 FILES_${QT_BASE_NAME}-dbus                 = "${bindir}/qdbus ${bindir}/qdbusxml2cpp ${bindir}/qdbuscpp2xml ${bindir}/qdbusviewer"
 FILES_${QT_BASE_NAME}-dbus-dbg             = "${bindir}/.debug/qdbus ${bindir}/.debug/qdbusxml2cpp ${bindir}/.debug/qdbuscpp2xml ${bindir}/.debug/qdbusviewer"
-FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo ${bindir}/${QT_DIR_NAME}/demos/*"
-FILES_${QT_BASE_NAME}-demos-dbg            = "${bindir}/.debug/qtdemo ${bindir}/${QT_DIR_NAME}/demos/.debug/*  ${bindir}/${QT_DIR_NAME}/demos/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug"
+FILES_${QT_BASE_NAME}-demos                = "${bindir}/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/*"
+FILES_${QT_BASE_NAME}-demos-dbg            = "${bindir}/.debug/qtdemo* ${bindir}/${QT_DIR_NAME}/demos/.debug/*  ${bindir}/${QT_DIR_NAME}/demos/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/.debug  ${bindir}/${QT_DIR_NAME}/demos/*/*/*/.debug"
 FILES_${QT_BASE_NAME}-designer             = "${bindir}/*designer*"
 FILES_${QT_BASE_NAME}-designer-dbg         = "${bindir}/.debug/*designer*"
 FILES_${QT_BASE_NAME}-examples             = "${bindir}/${QT_DIR_NAME}/examples/*"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMB88uMkyGM64RGpERAvNNAJ9dxgbS0or8dffW2g3EyQDgy2+YLACeKsUl aw4UUGIRN8dpTA3Y694MOFY=
=YC+E
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw

Denys Dmytriyenko ha scritto, Il 03/06/2010 18:50:

Quoted 21 lines · Koen Kooi
Quoted 9 lines · Chase Maupin
Quoted 9 lines
Quoted 9 lines

* Changed the name of the qtdemo exectable installed in the /usr/bin directory to qtdemoE for Qt embedded builds. This allows the Qt embedded version of the demos package to co-exist with the Qt X11 version.
* Changed the demos package file list to accept both qtdemo and qtdemoE.

Quoted 8 lines

Applied, thanks.

Quoted 6 lines
Quoted 6 lines
---
 recipes/qt4/qt-4.6.2.inc     |    3 +++
 recipes/qt4/qt4-embedded.inc |    2 +-
 recipes/qt4/qt4.inc          |    4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
recipes/qt4/qt-4.6.2.inc +0 -0
index e89cf17..4a9f077 100644
@@ -57,6 +57,9 @@ do_install_append() {
Quoted 8 lines
Quoted 8 lines

recipes/qt4/qt-4.6.2.inc do_install_append() { · line 64

Quoted 8 lines
recipes/qt4/qt-4.6.2.inc +3 -0
 	for i in rcc uic moc ; do
 		install -m 0755 ${S}/bin/$i ${D}${bindir}/
 	done
+
+	#Append an E to the qtdemo file
+	mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}
 }
 

This patch drive to an error with qt/X11
ERROR: Build of /home/koan/devel/openembedded/recipes/qt4/qt4-x11-free_4.6.2.bb do_install fail

| mv:
/home/koan/devel/build/kaeilos/tmp/work/armv5te-oe-linux-gnueabi/qt4-x11-free-4.6.2-r17.2/image/usr/bin/qtdemo' and /home/koan/devel/build/kaeilos/tmp/work/armv5te-oe-linux-gnueabi/qt4-x11-free-4.6.2-r17.2/image/usr/bin/qtdemo' are the same file

looks like the Append an E to the qtdemo file han not been tested with qt/X11, so I'd like to change recipes/qt4/qt-4.6.2.inc in this way

#Append an E to the qtdemo file
if [${QT_LIBINFIX} == "E"] ; then

	    mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}

fi

--
Marco Cavallini | KOAN sas | Bergamo - Italia
embedded and real-time software engineering
Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
http://www.KaeilOS.com

#4 lore raw
Quoted 4 lines · Marco Cavallini

#Append an E to the qtdemo file
if [${QT_LIBINFIX} == "E"] ; then

	    mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX}

fi

I think you need some quotes around ${QT_LIBINFIX} in the argument to [, otherwise you are liable to get an error if the variable is empty. It might also make more sense to test something like '-n "${QT_LIBINFIX"', rather than testing for it being 'E' specifically. But yes, clearly the current code is not satisfactory in the case of an empty infix.

p.

#5 lore raw

Hello,

Quoted 6 lines · Phil Blundell
Quoted 4 lines · Marco Cavallini

#Append an E to the qtdemo file
if [${QT_LIBINFIX} == "E"] ; then
          mv ${D}${bindir}/qtdemo ${D}${bindir}/qtdemo${QT_LIBINFIX} fi

Quoted 6 lines

I think you need some quotes around ${QT_LIBINFIX} in the argument to [, otherwise you are liable to get an error if the variable is empty.  It might also make more sense to test something like '-n "${QT_LIBINFIX"', rather than testing for it being 'E' specifically.  But yes, clearly the current code is not satisfactory in the case of an empty infix.

while we're at it, isn't "-embedded" a much more friendly distinction that using "E" ?

Regards,

Signature · 1 line
Leon