All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1 v2][PULL] Fix bug 2355
@ 2012-04-23  8:53 Dongxiao Xu
  2012-04-23  8:53 ` [PATCH 1/1] qt4: move functions from python to shell style Dongxiao Xu
  2012-04-23  9:45 ` [PATCH 0/1 v2][PULL] Fix bug 2355 Xu, Dongxiao
  0 siblings, 2 replies; 6+ messages in thread
From: Dongxiao Xu @ 2012-04-23  8:53 UTC (permalink / raw)
  To: openembedded-core

Hi Richard,

This pull request is the second version to fix bug 2355, please help to review and pull.

Changes from v1:
Add an inherit for siteinfo.bbclass

Thanks,
Dongxiao

The following changes since commit 00256125873ff6f1630743a712e882e5f473a9d2:

  self-hosted-image: Update poky revision to point at the 1.2 release branch (2012-04-18 15:59:20 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib dxu4/hob-bugfix-oecore
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix-oecore

Dongxiao Xu (1):
  qt4: move functions from python to shell style

 meta/recipes-qt/qt4/qt4-embedded.inc        |    2 +-
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |   15 +++++++++++--
 meta/recipes-qt/qt4/qt4-x11-free.inc        |    2 +-
 meta/recipes-qt/qt4/qt4.inc                 |   28 +++++++++++++++++++++++---
 meta/recipes-qt/qt4/qt4_arch.inc            |   25 ------------------------
 5 files changed, 38 insertions(+), 34 deletions(-)
 delete mode 100644 meta/recipes-qt/qt4/qt4_arch.inc

-- 
1.7.4.1




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

* [PATCH 1/1] qt4: move functions from python to shell style
  2012-04-23  8:53 [PATCH 0/1 v2][PULL] Fix bug 2355 Dongxiao Xu
@ 2012-04-23  8:53 ` Dongxiao Xu
  2012-04-24 10:50   ` Paul Eggleton
  2012-04-23  9:45 ` [PATCH 0/1 v2][PULL] Fix bug 2355 Xu, Dongxiao
  1 sibling, 1 reply; 6+ messages in thread
From: Dongxiao Xu @ 2012-04-23  8:53 UTC (permalink / raw)
  To: openembedded-core

In qt4's do_configure operation, it will refer to some variables that
are derived from 'd', however these variable values may be not correct
in multilib case since the extraction of these variables happens before
the multilib handler.

The fix is to move these python style functions back to shell style.

This fixes [YOCTO #2355]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/recipes-qt/qt4/qt4-embedded.inc        |    2 +-
 meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |   15 +++++++++++--
 meta/recipes-qt/qt4/qt4-x11-free.inc        |    2 +-
 meta/recipes-qt/qt4/qt4.inc                 |   28 +++++++++++++++++++++++---
 meta/recipes-qt/qt4/qt4_arch.inc            |   25 ------------------------
 5 files changed, 38 insertions(+), 34 deletions(-)
 delete mode 100644 meta/recipes-qt/qt4/qt4_arch.inc

diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
index 8c15352..291e62a 100644
--- a/meta/recipes-qt/qt4/qt4-embedded.inc
+++ b/meta/recipes-qt/qt4/qt4-embedded.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "Qt is a versatile cross-platform application framework -- this is
 SECTION = "libs"
 HOMEPAGE = "http://qt.nokia.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r43"
+INC_PR = "r44"
 
 QT_BASE_LIB  ?= "libqt-embedded"
 
diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
index efb61bf..d350f28 100644
--- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
+++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
@@ -4,7 +4,7 @@ SECTION = "libs"
 HOMEPAGE = "http://qt.nokia.com"
 LICENSE = "LGPLv2.1 | GPLv3"
 
-INC_PR = "r10"
+INC_PR = "r11"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:"
 
@@ -26,7 +26,15 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
                     file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \
                     file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
 
-require qt4_arch.inc
+set_arch() {
+   case ${TARGET_ARCH} in
+       arm*)     QT_ARCH=arm ;;
+       i*86*)    QT_ARCH=i386 ;;
+       mips*)    QT_ARCH=mips ;;
+       powerpc*) QT_ARCH=powerpc ;;
+       x86_64*)  QT_ARCH=x86_64 ;;
+   esac
+}
 
 # FIXME: make it work with "${STAGING_BINDIR_NATIVE}/pkg-config --cflags dbus-1"
 EXTRA_OECONF = "-prefix ${prefix} \
@@ -40,7 +48,7 @@ EXTRA_OECONF = "-prefix ${prefix} \
                 -verbose -release -fast -static \
                 -platform ${TARGET_OS}-oe-g++ \
                 -xplatform ${TARGET_OS}-oe-g++ \
-                -arch ${@qt_arch(d)} \
+                -arch ${QT_ARCH} \
                 -embedded -no-freetype -no-glib -no-iconv \
                 -qt3support \
                 -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/dbus-1.0 \
@@ -71,6 +79,7 @@ do_configure() {
     if [ ! -e bin/qmake ]; then
         ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake
     fi
+    set_arch
     (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
 }
 
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc
index 072c522..aab9304 100644
--- a/meta/recipes-qt/qt4/qt4-x11-free.inc
+++ b/meta/recipes-qt/qt4/qt4-x11-free.inc
@@ -5,7 +5,7 @@ HOMEPAGE = "http://qt.nokia.com"
 SECTION = "x11/libs"
 DEPENDS += "virtual/libgl virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
 
-INC_PR = "r41"
+INC_PR = "r42"
 
 QT_GLFLAGS ?= "${@base_contains('DISTRO_FEATURES', 'opengl', '-opengl', '-no-opengl', d)} "
 QT_GLFLAGS_qemux86 = "-opengl"
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
index 468a46f..03800e6 100644
--- a/meta/recipes-qt/qt4/qt4.inc
+++ b/meta/recipes-qt/qt4/qt4.inc
@@ -3,10 +3,6 @@ inherit qmake_base
 DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base sqlite3 tiff"
 DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
 
-require qt4_arch.inc
-QT_ARCH := "${@qt_arch(d)}"
-QT_ENDIAN = "${@qt_endian(d)}"
-
 QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm"
 QT_DISTRO_FLAGS_linuxstdbase = "-sm"
 
@@ -196,10 +192,34 @@ FILES_${QT_BASE_NAME}-xmlpatterns-dbg      = "${bindir}/.debug/xmlpatterns*"
 FILES_${QT_BASE_NAME}-qml-plugins          = "${libdir}/${QT_DIR_NAME}/imports/* ${libdir}/${QT_DIR_NAME}/plugins/qmltooling/*"
 FILES_${QT_BASE_NAME}-qml-plugins-dbg      = "${libdir}/${QT_DIR_NAME}/imports/*/*/*/.debug/* ${libdir}/${QT_DIR_NAME}/imports/*/.debug ${libdir}/${QT_DIR_NAME}/plugins/qmltooling/.debug"
 
+ARM_INSTRUCTION_SET = "arm"
+
+set_arch() {
+   case ${TARGET_ARCH} in
+       arm*)     QT_ARCH=arm ;;
+       i*86*)    QT_ARCH=i386 ;;
+       mips*)    QT_ARCH=mips ;;
+       powerpc*) QT_ARCH=powerpc ;;
+       x86_64*)  QT_ARCH=x86_64 ;;
+   esac
+}
+
+inherit siteinfo
+set_endian() {
+    if [ ${SITEINFO_ENDIANNESS} = "le" ] ; then
+        QT_ENDIAN="-little-endian"
+    elif [ ${SITEINFO_ENDIANNESS} = "be" ] ; then
+        QT_ENDIAN="-big-endian"
+    fi
+}
+
 do_configure() {
 	unset QMAKESPEC
 	unset QTDIR
 
+    set_arch
+    set_endian
+
 	if [ ! -e bin/qmake ]; then
 		ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake
 	fi
diff --git a/meta/recipes-qt/qt4/qt4_arch.inc b/meta/recipes-qt/qt4/qt4_arch.inc
deleted file mode 100644
index bde68dc..0000000
--- a/meta/recipes-qt/qt4/qt4_arch.inc
+++ /dev/null
@@ -1,25 +0,0 @@
-inherit siteinfo
-
-ARM_INSTRUCTION_SET = "arm"
-
-def qt_arch(d):
-    import bb, re
-    arch = d.getVar('TARGET_ARCH', True)
-    if re.match("^i.86$", arch):
-        arch = "i386"
-    elif re.match("^arm.*", arch):
-        arch = "arm"
-    elif arch == "x86_64":
-        arch = "x86"
-    elif arch == "mipsel":
-        arch = "mips"
-    return arch
-
-def qt_endian(d):
-    import bb
-    if d.getVar('SITEINFO_ENDIANNESS', True) == "le":
-        return "-little-endian"
-    elif d.getVar('SITEINFO_ENDIANNESS', True) == "be":
-        return "-big-endian"
-    else:
-        assert False
-- 
1.7.4.1




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

* Re: [PATCH 0/1 v2][PULL] Fix bug 2355
  2012-04-23  8:53 [PATCH 0/1 v2][PULL] Fix bug 2355 Dongxiao Xu
  2012-04-23  8:53 ` [PATCH 1/1] qt4: move functions from python to shell style Dongxiao Xu
@ 2012-04-23  9:45 ` Xu, Dongxiao
  2012-04-23 10:34   ` Xu, Dongxiao
  1 sibling, 1 reply; 6+ messages in thread
From: Xu, Dongxiao @ 2012-04-23  9:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-04-23 at 16:53 +0800, Dongxiao Xu wrote:
> Hi Richard,
> 
> This pull request is the second version to fix bug 2355, please help to review and pull.

Richard, there are some issue inside.
Please hold this change for a while.

Thanks,
Dongxiao

> 
> Changes from v1:
> Add an inherit for siteinfo.bbclass
> 
> Thanks,
> Dongxiao
> 
> The following changes since commit 00256125873ff6f1630743a712e882e5f473a9d2:
> 
>   self-hosted-image: Update poky revision to point at the 1.2 release branch (2012-04-18 15:59:20 +0100)
> 
> are available in the git repository at:
>   git://git.pokylinux.org/poky-contrib dxu4/hob-bugfix-oecore
>   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix-oecore
> 
> Dongxiao Xu (1):
>   qt4: move functions from python to shell style
> 
>  meta/recipes-qt/qt4/qt4-embedded.inc        |    2 +-
>  meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |   15 +++++++++++--
>  meta/recipes-qt/qt4/qt4-x11-free.inc        |    2 +-
>  meta/recipes-qt/qt4/qt4.inc                 |   28 +++++++++++++++++++++++---
>  meta/recipes-qt/qt4/qt4_arch.inc            |   25 ------------------------
>  5 files changed, 38 insertions(+), 34 deletions(-)
>  delete mode 100644 meta/recipes-qt/qt4/qt4_arch.inc
> 





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

* Re: [PATCH 0/1 v2][PULL] Fix bug 2355
  2012-04-23  9:45 ` [PATCH 0/1 v2][PULL] Fix bug 2355 Xu, Dongxiao
@ 2012-04-23 10:34   ` Xu, Dongxiao
  0 siblings, 0 replies; 6+ messages in thread
From: Xu, Dongxiao @ 2012-04-23 10:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-04-23 at 17:45 +0800, Xu, Dongxiao wrote:
> On Mon, 2012-04-23 at 16:53 +0800, Dongxiao Xu wrote:
> > Hi Richard,
> > 
> > This pull request is the second version to fix bug 2355, please help to review and pull.
> 
> Richard, there are some issue inside.
> Please hold this change for a while.

I just used the following configuration in local.conf.

MACHINE="qemuppc"
require conf/multilib.conf
MULTILIBS = "multilib:lib64"
DEFAULTTUNE_virtclass-multilib-lib64 = "powerpc64"

When I did a simple parse, I met the following error:

ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
NOTE: Error expanding variable set_arch
ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
NOTE: Error during finalise of
virtual:multilib:lib64:/home/dongxiao/poky/meta-yocto/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb
ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
ERROR: Unable to determine endianness for architecture ''
ERROR: Please add your architecture to siteinfo.bbclass
ERROR: Unable to
parse /home/dongxiao/poky/meta/recipes-support/pth/pth_2.0.7.bb: Exited
with "1"
| ETA:  --:--:--
ERROR: Command execution failed: Exited with 1


Originally I suppose it is related to my patch, however, this issue
still exists even without my patch.

Is it because we don't support powerpc multilib?

Thanks,
Dongxiao


> 
> Thanks,
> Dongxiao
> 
> > 
> > Changes from v1:
> > Add an inherit for siteinfo.bbclass
> > 
> > Thanks,
> > Dongxiao
> > 
> > The following changes since commit 00256125873ff6f1630743a712e882e5f473a9d2:
> > 
> >   self-hosted-image: Update poky revision to point at the 1.2 release branch (2012-04-18 15:59:20 +0100)
> > 
> > are available in the git repository at:
> >   git://git.pokylinux.org/poky-contrib dxu4/hob-bugfix-oecore
> >   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix-oecore
> > 
> > Dongxiao Xu (1):
> >   qt4: move functions from python to shell style
> > 
> >  meta/recipes-qt/qt4/qt4-embedded.inc        |    2 +-
> >  meta/recipes-qt/qt4/qt4-tools-nativesdk.inc |   15 +++++++++++--
> >  meta/recipes-qt/qt4/qt4-x11-free.inc        |    2 +-
> >  meta/recipes-qt/qt4/qt4.inc                 |   28 +++++++++++++++++++++++---
> >  meta/recipes-qt/qt4/qt4_arch.inc            |   25 ------------------------
> >  5 files changed, 38 insertions(+), 34 deletions(-)
> >  delete mode 100644 meta/recipes-qt/qt4/qt4_arch.inc
> > 
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core





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

* Re: [PATCH 1/1] qt4: move functions from python to shell style
  2012-04-23  8:53 ` [PATCH 1/1] qt4: move functions from python to shell style Dongxiao Xu
@ 2012-04-24 10:50   ` Paul Eggleton
  2012-05-08  5:34     ` Xu, Dongxiao
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Eggleton @ 2012-04-24 10:50 UTC (permalink / raw)
  To: Dongxiao Xu; +Cc: openembedded-core

Hi Dongxiao,

On Monday 23 April 2012 16:53:02 Dongxiao Xu wrote:
> In qt4's do_configure operation, it will refer to some variables that
> are derived from 'd', however these variable values may be not correct
> in multilib case since the extraction of these variables happens before
> the multilib handler.
> 
> The fix is to move these python style functions back to shell style.

This patch removes qt4_arch.inc without explaining why. Can the fix be made 
without removing it?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



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

* Re: [PATCH 1/1] qt4: move functions from python to shell style
  2012-04-24 10:50   ` Paul Eggleton
@ 2012-05-08  5:34     ` Xu, Dongxiao
  0 siblings, 0 replies; 6+ messages in thread
From: Xu, Dongxiao @ 2012-05-08  5:34 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

> -----Original Message-----
> From: Paul Eggleton [mailto:paul.eggleton@linux.intel.com]
> Sent: Tuesday, April 24, 2012 6:51 PM
> To: Xu, Dongxiao
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 1/1] qt4: move functions from python to shell
> style
> 
> Hi Dongxiao,
> 
> On Monday 23 April 2012 16:53:02 Dongxiao Xu wrote:
> > In qt4's do_configure operation, it will refer to some variables that
> > are derived from 'd', however these variable values may be not correct
> > in multilib case since the extraction of these variables happens
> > before the multilib handler.
> >
> > The fix is to move these python style functions back to shell style.
> 
> This patch removes qt4_arch.inc without explaining why. Can the fix be made
> without removing it?

Hi Paul,

In my new pull request, I keep the qt4_arch.inc file and put common functions there.
Thanks for your comments.

Thanks,
Dongxiao

> 
> Cheers,
> Paul
> 
> --
> 
> Paul Eggleton
> Intel Open Source Technology Centre



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

end of thread, other threads:[~2012-05-08  5:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23  8:53 [PATCH 0/1 v2][PULL] Fix bug 2355 Dongxiao Xu
2012-04-23  8:53 ` [PATCH 1/1] qt4: move functions from python to shell style Dongxiao Xu
2012-04-24 10:50   ` Paul Eggleton
2012-05-08  5:34     ` Xu, Dongxiao
2012-04-23  9:45 ` [PATCH 0/1 v2][PULL] Fix bug 2355 Xu, Dongxiao
2012-04-23 10:34   ` Xu, Dongxiao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.