Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] qt4-tools-nativesdk fixes
@ 2011-06-18 18:56 Paul Eggleton
  2011-06-18 18:56 ` [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf Paul Eggleton
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-06-18 18:56 UTC (permalink / raw)
  To: openembedded-core

Several fixes for qt4-tools-nativesdk.

The following changes since commit 835d817f1ba7b99167743fdb86ba80f3a07bd82d:

  systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:12:40 +0100)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib paule/qt4-nativesdk-fix
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/qt4-nativesdk-fix

Paul Eggleton (3):
  qt4-tools-nativesdk: fix unpack failure due to missing g++.conf
  qt4-tools-nativesdk: drop freetype include as we build with
    -no-freetype
  qt4-tools-nativesdk: fix compile failure in src/dbus

 meta/recipes-qt/qt4/files/qt-dbus-const.patch |   21 +++++++++++++++++++++
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc   |    7 ++++---
 2 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-qt/qt4/files/qt-dbus-const.patch

-- 
1.7.4.1




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf
  2011-06-18 18:56 [PATCH 0/3] qt4-tools-nativesdk fixes Paul Eggleton
@ 2011-06-18 18:56 ` Paul Eggleton
  2011-06-20 23:56   ` Khem Raj
  2011-06-18 18:56 ` [PATCH 2/3] qt4-tools-nativesdk: drop freetype include as we build with -no-freetype Paul Eggleton
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2011-06-18 18:56 UTC (permalink / raw)
  To: openembedded-core

FILESPATHPKG was being used to in order to bring in linux.conf and
g++.conf in this recipe, however this probably never worked since
FILESPATHPKG always has the MACHINE appended to it and these are not
machine-specific files. The only reason it built was that these two files
could be found within the "files" subdir until we removed Qt 4.6.3.
Using FILESEXTRAPATHS (as qt4-tools-native does) solves this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
index 5faf40c..d1f4b47 100644
--- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
+++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
@@ -5,9 +5,10 @@ HOMEPAGE = "http://qt.nokia.com"
 PRIORITY = "optional"
 LICENSE = "LGPLv2.1 | GPLv3"
 
-INC_PR = "r3"
+INC_PR = "r4"
+
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:"
 
-FILESPATHPKG =. "qt-${PV}:"
 inherit nativesdk qmake2
 
 SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/3] qt4-tools-nativesdk: drop freetype include as we build with -no-freetype
  2011-06-18 18:56 [PATCH 0/3] qt4-tools-nativesdk fixes Paul Eggleton
  2011-06-18 18:56 ` [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf Paul Eggleton
@ 2011-06-18 18:56 ` Paul Eggleton
  2011-06-18 18:56 ` [PATCH 3/3] qt4-tools-nativesdk: fix compile failure in src/dbus Paul Eggleton
  2011-06-22 16:42 ` [PATCH 0/3] qt4-tools-nativesdk fixes Richard Purdie
  3 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-06-18 18:56 UTC (permalink / raw)
  To: openembedded-core

Freetype support is disabled so there's no need to point to the freetype
headers.

Prompted by OE commit 4931b37c8faf1eef7322cc82bf979885c770f4e0 from
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
index d1f4b47..114f998 100644
--- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
+++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
@@ -44,7 +44,6 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -qt3support \
                 -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include \
-                -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/freetype2 \
                 -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/dbus-1.0 \
                 -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/lib/dbus-1.0/include \
                 -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/c++ \
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/3] qt4-tools-nativesdk: fix compile failure in src/dbus
  2011-06-18 18:56 [PATCH 0/3] qt4-tools-nativesdk fixes Paul Eggleton
  2011-06-18 18:56 ` [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf Paul Eggleton
  2011-06-18 18:56 ` [PATCH 2/3] qt4-tools-nativesdk: drop freetype include as we build with -no-freetype Paul Eggleton
@ 2011-06-18 18:56 ` Paul Eggleton
  2011-06-22 16:42 ` [PATCH 0/3] qt4-tools-nativesdk fixes Richard Purdie
  3 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-06-18 18:56 UTC (permalink / raw)
  To: openembedded-core

[Qt #17962]   -- http://bugreports.qt.nokia.com/browse/QTBUG-17962
[YOCTO #1168] -- http://bugzilla.pokylinux.org/show_bug.cgi?id=1168

Fix "invalid conversion from 'const void*' to 'void*'" error compiling
src/dbus/qdbusintegrator.cpp. It is assumed that the use of "const" here
is incorrect as no other usage of Q_GLOBAL_STATIC_WITH_ARGS uses const
prefix on the first (TYPE) argument.

Patch was imported from the Qt bug tracker (see above reference); the
patch was rejected but for procedural rather than validity reasons.

Fixes [YOCTO #1168]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/recipes-qt/qt4/files/qt-dbus-const.patch |   21 +++++++++++++++++++++
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc   |    1 +
 2 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-qt/qt4/files/qt-dbus-const.patch

diff --git a/meta/recipes-qt/qt4/files/qt-dbus-const.patch b/meta/recipes-qt/qt4/files/qt-dbus-const.patch
new file mode 100644
index 0000000..a856912
--- /dev/null
+++ b/meta/recipes-qt/qt4/files/qt-dbus-const.patch
@@ -0,0 +1,21 @@
+Remove "const" usage that causes compile failure building qt4-tools-nativesdk
+
+Patch has apparently been rejected upstream, not because it is invalid
+but because the submitter did not submit a merge request for it, so the
+validity of the patch upstream is uncertain. For further details see:
+http://bugreports.qt.nokia.com/browse/QTBUG-17962
+
+Original Author: Pavel Heimlich <tropikhajma at gmail.com>
+Upstream-Status: Rejected
+
+--- qt-everywhere-opensource-src-4.7.3/src/dbus/qdbusintegrator.cpp.orig	2011-03-12 02:11:32.313467991 +0100
++++ qt-everywhere-opensource-src-4.7.3/src/dbus/qdbusintegrator.cpp	2011-03-12 02:11:03.795809176 +0100
+@@ -71,7 +71,7 @@
+ static bool isDebugging;
+ #define qDBusDebug              if (!::isDebugging); else qDebug
+ 
+-Q_GLOBAL_STATIC_WITH_ARGS(const QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS)))
++Q_GLOBAL_STATIC_WITH_ARGS(QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS)))
+ 
+ static inline QString dbusServiceString()
+ { return *orgFreedesktopDBusString(); }
diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
index 114f998..19da0ce 100644
--- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
+++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
@@ -17,6 +17,7 @@ SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.
            file://qt-config.patch \
            file://qmake-exists-check.patch \
            file://configure-paths.patch \
+           file://qt-dbus-const.patch \
            file://g++.conf \
            file://linux.conf"
 
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf
  2011-06-18 18:56 ` [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf Paul Eggleton
@ 2011-06-20 23:56   ` Khem Raj
  2011-06-21  7:37     ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2011-06-20 23:56 UTC (permalink / raw)
  To: openembedded-core

On 06/18/2011 11:56 AM, Paul Eggleton wrote:
> FILESPATHPKG was being used to in order to bring in linux.conf and
> g++.conf in this recipe, however this probably never worked since
> FILESPATHPKG always has the MACHINE appended to it and these are not
> machine-specific files.

FILESPATHPKG is not supported in oe-core. Its an oe.dev feature for now.


  The only reason it built was that these two files
> could be found within the "files" subdir until we removed Qt 4.6.3.
> Using FILESEXTRAPATHS (as qt4-tools-native does) solves this.
>
> Signed-off-by: Paul Eggleton<paul.eggleton@linux.intel.com>
> ---
>   meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |    5 +++--
>   1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
> index 5faf40c..d1f4b47 100644
> --- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
> +++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
> @@ -5,9 +5,10 @@ HOMEPAGE = "http://qt.nokia.com"
>   PRIORITY = "optional"
>   LICENSE = "LGPLv2.1 | GPLv3"
>
> -INC_PR = "r3"
> +INC_PR = "r4"
> +
> +FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:"
>
> -FILESPATHPKG =. "qt-${PV}:"
>   inherit nativesdk qmake2
>
>   SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf
  2011-06-20 23:56   ` Khem Raj
@ 2011-06-21  7:37     ` Paul Eggleton
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2011-06-21  7:37 UTC (permalink / raw)
  To: openembedded-core

On Tuesday 21 June 2011 00:56:48 Khem Raj wrote:
> On 06/18/2011 11:56 AM, Paul Eggleton wrote:
> > FILESPATHPKG was being used to in order to bring in linux.conf and
> > g++.conf in this recipe, however this probably never worked since
> > FILESPATHPKG always has the MACHINE appended to it and these are not
> > machine-specific files.
> 
> FILESPATHPKG is not supported in oe-core. Its an oe.dev feature for now.

Right, but there's still a reference to it in utils.bbclass where it 
supposedly operates in the manner I described. This patch actually removes its 
usage in the qt4-tools-nativesdk recipe however.

Cheers,
Paull

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/3] qt4-tools-nativesdk fixes
  2011-06-18 18:56 [PATCH 0/3] qt4-tools-nativesdk fixes Paul Eggleton
                   ` (2 preceding siblings ...)
  2011-06-18 18:56 ` [PATCH 3/3] qt4-tools-nativesdk: fix compile failure in src/dbus Paul Eggleton
@ 2011-06-22 16:42 ` Richard Purdie
  3 siblings, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2011-06-22 16:42 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sat, 2011-06-18 at 19:56 +0100, Paul Eggleton wrote:
> Several fixes for qt4-tools-nativesdk.
> 
> The following changes since commit 835d817f1ba7b99167743fdb86ba80f3a07bd82d:
> 
>   systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:12:40 +0100)
> 
> are available in the git repository at:
>   git://git.openembedded.org/openembedded-core-contrib paule/qt4-nativesdk-fix
>   http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/qt4-nativesdk-fix
> 
> Paul Eggleton (3):
>   qt4-tools-nativesdk: fix unpack failure due to missing g++.conf
>   qt4-tools-nativesdk: drop freetype include as we build with
>     -no-freetype
>   qt4-tools-nativesdk: fix compile failure in src/dbus
> 

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-22 16:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-18 18:56 [PATCH 0/3] qt4-tools-nativesdk fixes Paul Eggleton
2011-06-18 18:56 ` [PATCH 1/3] qt4-tools-nativesdk: fix unpack failure due to missing g++.conf Paul Eggleton
2011-06-20 23:56   ` Khem Raj
2011-06-21  7:37     ` Paul Eggleton
2011-06-18 18:56 ` [PATCH 2/3] qt4-tools-nativesdk: drop freetype include as we build with -no-freetype Paul Eggleton
2011-06-18 18:56 ` [PATCH 3/3] qt4-tools-nativesdk: fix compile failure in src/dbus Paul Eggleton
2011-06-22 16:42 ` [PATCH 0/3] qt4-tools-nativesdk fixes Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox