[oe-commits] Tom Rini : xqt2: Rework the patches for xqt2 (vs the core part).

git version control git at git.openembedded.org
Mon Apr 25 16:48:27 UTC 2011


Module: openembedded.git
Branch: 2011.03-maintenance
Commit: 9ed5103650cd285ae5493dd26e7a6a8f28412945
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=9ed5103650cd285ae5493dd26e7a6a8f28412945

Author: Tom Rini <tom_rini at mentor.com>
Date:   Wed Mar 16 11:53:21 2011 -0700

xqt2: Rework the patches for xqt2 (vs the core part).

The way this package builds, xqt2 isn't the main place for
${S}.  So we add in another task to apply the patches in that
directory (as there's 4 of them).

Signed-off-by: Tom Rini <tom_rini at mentor.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 recipes/xqt2/files/KeyMap.patch                |    4 ++--
 recipes/xqt2/files/fix_qtscreen_HACK.patch     |    6 +++---
 recipes/xqt2/files/fix_seqfault_qtscreen.patch |    4 ++--
 recipes/xqt2/files/moc_call.patch              |    4 ++--
 recipes/xqt2/xqt2_20060509.bb                  |   22 +++++++++++++++++-----
 5 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/recipes/xqt2/files/KeyMap.patch b/recipes/xqt2/files/KeyMap.patch
index 62564cf..2b00dca 100644
--- a/recipes/xqt2/files/KeyMap.patch
+++ b/recipes/xqt2/files/KeyMap.patch
@@ -1,5 +1,5 @@
---- xc/../xqt2/xfree86/xqt-driver/KeyMap.h	2004-10-16 08:06:07.000000000 +0200
-+++ xc/../xqt2/xfree86/xqt-driver/KeyMap~.h	2006-05-10 19:41:16.000000000 +0200
+--- xqt2/xfree86/xqt-driver/KeyMap.h	2004-10-16 08:06:07.000000000 +0200
++++ xqt2/xfree86/xqt-driver/KeyMap~.h	2006-05-10 19:41:16.000000000 +0200
 @@ -75,6 +75,7 @@
  /* [          */	K(BracketLeft,	XK_bracketleft, XK_braceleft)	// Fn+T
  /* {          */	K(BraceLeft,	XK_braceleft,	NoSymbol)	// ???
diff --git a/recipes/xqt2/files/fix_qtscreen_HACK.patch b/recipes/xqt2/files/fix_qtscreen_HACK.patch
index 7e4b2c6..be7a26e 100644
--- a/recipes/xqt2/files/fix_qtscreen_HACK.patch
+++ b/recipes/xqt2/files/fix_qtscreen_HACK.patch
@@ -1,6 +1,6 @@
-diff -Nur xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc xc/../xqt2/xfree86/xqt-driver/qtscreen.cc
---- xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc	2008-09-25 14:18:44.000000000 +0200
-+++ xc/../xqt2/xfree86/xqt-driver/qtscreen.cc	2008-09-25 14:28:30.000000000 +0200
+diff -Nur xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc xqt2/xfree86/xqt-driver/qtscreen.cc
+--- xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc	2008-09-25 14:18:44.000000000 +0200
++++ xqt2/xfree86/xqt-driver/qtscreen.cc	2008-09-25 14:28:30.000000000 +0200
 @@ -109,6 +109,7 @@
  	desktopSize = newSize;
  	fullScrSize = desktopSize;
diff --git a/recipes/xqt2/files/fix_seqfault_qtscreen.patch b/recipes/xqt2/files/fix_seqfault_qtscreen.patch
index 43b97f4..72c1e6e 100644
--- a/recipes/xqt2/files/fix_seqfault_qtscreen.patch
+++ b/recipes/xqt2/files/fix_seqfault_qtscreen.patch
@@ -1,5 +1,5 @@
---- xc/../xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc	2009-02-08 15:47:33.000000000 +0100
-+++ xc/../xqt2/xfree86/xqt-driver/qtscreen.cc	2009-02-08 15:52:09.000000000 +0100
+--- xqt2.vanilla/xfree86/xqt-driver/qtscreen.cc	2009-02-08 15:47:33.000000000 +0100
++++ xqt2/xfree86/xqt-driver/qtscreen.cc	2009-02-08 15:52:09.000000000 +0100
 @@ -406,7 +406,9 @@
  //
  void qtScreen::keyPressEvent(QKeyEvent *ev)
diff --git a/recipes/xqt2/files/moc_call.patch b/recipes/xqt2/files/moc_call.patch
index 6e150e2..b86df1d 100644
--- a/recipes/xqt2/files/moc_call.patch
+++ b/recipes/xqt2/files/moc_call.patch
@@ -1,5 +1,5 @@
---- xc/../xqt2/xfree86/xqt-driver/Imakefile	2006-05-09 11:59:07.000000000 +0200
-+++ xc/../xqt2/xfree86/xqt-driver/Imakefile	2004-09-16 12:40:30.000000000 +0200
+--- xqt2/xfree86/xqt-driver/Imakefile	2006-05-09 11:59:07.000000000 +0200
++++ xqt2/xfree86/xqt-driver/Imakefile	2004-09-16 12:40:30.000000000 +0200
 @@ -12,7 +12,7 @@
  
  QTDIR = QtDir
diff --git a/recipes/xqt2/xqt2_20060509.bb b/recipes/xqt2/xqt2_20060509.bb
index 034d756..627c917 100644
--- a/recipes/xqt2/xqt2_20060509.bb
+++ b/recipes/xqt2/xqt2_20060509.bb
@@ -5,7 +5,7 @@ LICENSE = "GPL"
 SECTION = "opie/applications"
 APPTYPE = "binary"
 APPNAME = "Xqt"
-PR = "r4"
+PR = "r5"
 
 inherit palmtop
 
@@ -15,21 +15,33 @@ SRC_URI = "cvs://anonymous@cvs.sourceforge.jp/cvsroot/xqt;module=xqt2;method=pse
         ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-3.tgz;name=archive3 \
         ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-4.tgz;name=archive4 \
         ftp://ftp.xfree86.org/pub/XFree86/4.3.0/source/X430src-5.tgz;name=archive5 \
-        file://KeyMap.patch \
-        file://moc_call.patch \
         file://imake-staging.patch \
         file://cross.patch \
         file://fephack.patch \
         file://xchar2b.patch \
         file://xqt-make.patch \ 
-        file://fix_qtscreen_HACK.patch \
-	file://fix_seqfault_qtscreen.patch "
+        file://KeyMap.patch;apply=false \
+        file://moc_call.patch;apply=false \
+        file://fix_qtscreen_HACK.patch;apply=false \
+	file://fix_seqfault_qtscreen.patch;apply=false"
 S = "${WORKDIR}/xc"
 
 QT_LIBRARY = '${@base_conditional("PALMTOP_USE_MULTITHREADED_QT", "yes", "qte-mt", "qte",d)}'
 QT_LIBRARY_append_c7x0 = " -laticore"
 
+do_patch_xqt2() {
+	# Apply xqt2 patches.
+	cd ${WORKDIR}/xqt2
+	patch -p1 -i ${WORKDIR}/KeyMap.patch
+	patch -p1 -i ${WORKDIR}/moc_call.patch
+	patch -p1 -i ${WORKDIR}/fix_qtscreen_HACK.patch
+	patch -p1 -i ${WORKDIR}/fix_seqfault_qtscreen.patch
+}
+
+addtask patch_xqt2 after do_unpack before do_configure
+
 do_configure() {
+
 	#general config
 	echo "#define BuildServersOnly YES" > config/cf/host.def
 	echo "#define ProjectRoot /usr" >> config/cf/host.def





More information about the Openembedded-commits mailing list