From: Victor Martinez <pitillo@ono.com>
Date: Mon, 1 Oct 2012 00:27:14 +0000 (+0000)
Subject: xorg-xf86-video-imx: fixed xorg-server compatibility
X-Git-Url: http://gitweb/?a=commitdiff_plain;h=b8b411b917863a5f65bf140c50321e556d132f5f;p=ports%2Fefikamx-arm.git

xorg-xf86-video-imx: fixed xorg-server compatibility
---

diff --git a/xorg-xf86-video-imx/.md5sum b/xorg-xf86-video-imx/.md5sum
index d023d07..f814b73 100644
--- a/xorg-xf86-video-imx/.md5sum
+++ b/xorg-xf86-video-imx/.md5sum
@@ -1 +1,2 @@
 349b0911a0e47e74f64fe9fcec62809e  xorg-xf86-video-imx-20111109.tar.bz2
+ad47aaecf9e81110110a13d28a8e2112  xorg-xf86-video-imx_misc.patch
diff --git a/xorg-xf86-video-imx/Pkgfile b/xorg-xf86-video-imx/Pkgfile
index ec65b8c..7da9ccd 100644
--- a/xorg-xf86-video-imx/Pkgfile
+++ b/xorg-xf86-video-imx/Pkgfile
@@ -8,11 +8,13 @@
 name=xorg-xf86-video-imx
 version=20111109
 release=1
-source=(http://crux-arm.nu/files/distfiles/efikamx/$name-$version.tar.bz2)
+source=(http://crux-arm.nu/files/distfiles/efikamx/$name-$version.tar.bz2 \
+	xorg-xf86-video-imx_misc.patch)
 
 build() {
   export CFLAGS="$CFLAGS -I/usr/src/linux-`uname -r`/include"
   cd $name-$version
+  patch -p0 -i $SRC/xorg-xf86-video-imx_misc.patch
   chmod u+x autogen.sh
   ./autogen.sh --prefix=/usr
   make
diff --git a/xorg-xf86-video-imx/xorg-xf86-video-imx_misc.patch b/xorg-xf86-video-imx/xorg-xf86-video-imx_misc.patch
new file mode 100644
index 0000000..f9d38a2
--- /dev/null
+++ b/xorg-xf86-video-imx/xorg-xf86-video-imx_misc.patch
@@ -0,0 +1,30 @@
+--- src.orig/imx_ext.c	2012-10-01 02:18:44.005430995 +0200
++++ src/imx_ext.c	2012-10-01 02:19:33.575431373 +0200
+@@ -90,10 +90,10 @@
+ 	/* Check if any reply values need byte swapping */
+ 	if (client->swapped)
+ 	{
+-		swaps(&rep.sequenceNumber, n);
+-		swapl(&rep.length, n);
+-		swapl(&rep.pixmapPhysAddr, n);
+-		swapl(&rep.pixmapPitch, n);
++		swaps(&rep.sequenceNumber);
++		swapl(&rep.length);
++		swapl(&rep.pixmapPhysAddr);
++		swapl(&rep.pixmapPitch);
+ 	}
+ 
+ 	/* Reply to client */
+@@ -121,10 +121,10 @@
+ 
+ 	REQUEST(xIMX_EXT_GetPixmapPhysAddrReq);
+ 
+-	swaps(&stuff->length, n);
++	swaps(&stuff->length);
+ 	REQUEST_SIZE_MATCH(xIMX_EXT_GetPixmapPhysAddrReq);
+ 
+-	swapl(&stuff->pixmap, n);
++	swapl(&stuff->pixmap);
+ 	return Proc_IMX_EXT_GetPixmapPhysAddr(client);
+ }
+