[oe-commits] Koen Kooi : xf86-video-displaylink 0.3: add gentoo patch to fix build

git version control git at git.openembedded.org
Mon Feb 22 10:37:39 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 6986f36e799ef37af2108e5e855e147c81322b8d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6986f36e799ef37af2108e5e855e147c81322b8d

Author: Koen Kooi <koen at openembedded.org>
Date:   Mon Feb 22 09:35:41 2010 +0100

xf86-video-displaylink 0.3: add gentoo patch to fix build

---

 .../xf86-video-displaylink-0.3-xorg-abi-fix.patch  |   25 ++++++++++++++++++++
 recipes/xorg-driver/xf86-video-displaylink_0.3.bb  |    4 ++-
 2 files changed, 28 insertions(+), 1 deletions(-)

diff --git a/recipes/xorg-driver/xf86-video-displaylink/xf86-video-displaylink-0.3-xorg-abi-fix.patch b/recipes/xorg-driver/xf86-video-displaylink/xf86-video-displaylink-0.3-xorg-abi-fix.patch
new file mode 100644
index 0000000..df8e1db
--- /dev/null
+++ b/recipes/xorg-driver/xf86-video-displaylink/xf86-video-displaylink-0.3-xorg-abi-fix.patch
@@ -0,0 +1,25 @@
+--- orig/src/displaylink.c	2009-06-10 16:38:15.000000000 +0200
++++ new/src/displaylink.c	2009-12-23 20:06:18.000000000 +0100
+@@ -46,8 +46,10 @@
+ 
+ #include "fb.h"
+ 
++#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
+ #include "xf86Resources.h"
+ #include "xf86RAC.h"
++#endif
+ 
+ #include "fbdevhw.h"
+ 
+@@ -282,9 +284,11 @@
+ 
+ 	fPtr->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
+ 
++#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 6
+ 	pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
+ 	/* XXX Is this right?  Can probably remove RAC_FB */
+ 	pScrn->racIoFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
++#endif
+ 
+ 	/* open device */
+ 	if (!fbdevHWInit(pScrn,NULL,xf86FindOptionValue(fPtr->pEnt->device->options,"fbdev")))
diff --git a/recipes/xorg-driver/xf86-video-displaylink_0.3.bb b/recipes/xorg-driver/xf86-video-displaylink_0.3.bb
index 5df8e95..cbc3637 100644
--- a/recipes/xorg-driver/xf86-video-displaylink_0.3.bb
+++ b/recipes/xorg-driver/xf86-video-displaylink_0.3.bb
@@ -4,6 +4,8 @@ DESCRIPTION = "X.Org X server -- displaylink driver"
 
 RRECOMMENDS_${PN} = "kernel-module-udlfb"
 
-SRC_URI = "http://projects.unbit.it/downloads/udlfb-0.2.3_and_xf86-video-displaylink-${PV}.tar.gz"
+SRC_URI = "http://projects.unbit.it/downloads/udlfb-0.2.3_and_xf86-video-displaylink-${PV}.tar.gz \
+           file://xf86-video-displaylink-0.3-xorg-abi-fix.patch;patch=1 \
+"
 
 S = "${WORKDIR}/${PN}"





More information about the Openembedded-commits mailing list