CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
xorg-xf86-video-imx: fixed xorg-server compatibility
authorVictor Martinez <pitillo@ono.com>
Mon, 1 Oct 2012 00:27:14 +0000 (00:27 +0000)
committerVictor Martinez <pitillo@ono.com>
Mon, 1 Oct 2012 00:27:14 +0000 (00:27 +0000)
xorg-xf86-video-imx/.md5sum
xorg-xf86-video-imx/Pkgfile
xorg-xf86-video-imx/xorg-xf86-video-imx_misc.patch [new file with mode: 0644]

index d023d07166966002da7278742ff808d5696e7377..f814b73f5e49ca77c354e2ac2a8885a1eae39b06 100644 (file)
@@ -1 +1,2 @@
 349b0911a0e47e74f64fe9fcec62809e  xorg-xf86-video-imx-20111109.tar.bz2
+ad47aaecf9e81110110a13d28a8e2112  xorg-xf86-video-imx_misc.patch
index ec65b8c22d83a2f61fa57faa24809e38b9e8cc20..7da9ccdbca75e5225d4d0ae2f2c6bfcf187c19a2 100644 (file)
@@ -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 (file)
index 0000000..f9d38a2
--- /dev/null
@@ -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);
+ }