[90547] trunk/dports/x11/xorg-libXxf86dga
jeremyhu at macports.org
jeremyhu at macports.org
Thu Mar 8 11:52:57 PST 2012
Revision: 90547
http://trac.macports.org/changeset/90547
Author: jeremyhu at macports.org
Date: 2012-03-08 11:52:57 -0800 (Thu, 08 Mar 2012)
Log Message:
-----------
xorg-libXxf86dga: i386 build fix (#33532)
Modified Paths:
--------------
trunk/dports/x11/xorg-libXxf86dga/Portfile
Added Paths:
-----------
trunk/dports/x11/xorg-libXxf86dga/files/
trunk/dports/x11/xorg-libXxf86dga/files/0001-Build-fix-when-sizeof-off_t-sizeof-void.patch
Modified: trunk/dports/x11/xorg-libXxf86dga/Portfile
===================================================================
--- trunk/dports/x11/xorg-libXxf86dga/Portfile 2012-03-08 19:45:03 UTC (rev 90546)
+++ trunk/dports/x11/xorg-libXxf86dga/Portfile 2012-03-08 19:52:57 UTC (rev 90547)
@@ -25,6 +25,10 @@
depends_lib port:xorg-libXext \
port:xorg-xf86dgaproto
+patchfiles \
+ 0001-Build-fix-when-sizeof-off_t-sizeof-void.patch
+patch.pre_args -p1
+
livecheck.type regex
livecheck.url http://xorg.freedesktop.org/archive/individual/lib/?C=M&O=D
livecheck.regex libXxf86dga-(\\d+(?:\\.\\d+)*)
Added: trunk/dports/x11/xorg-libXxf86dga/files/0001-Build-fix-when-sizeof-off_t-sizeof-void.patch
===================================================================
--- trunk/dports/x11/xorg-libXxf86dga/files/0001-Build-fix-when-sizeof-off_t-sizeof-void.patch (rev 0)
+++ trunk/dports/x11/xorg-libXxf86dga/files/0001-Build-fix-when-sizeof-off_t-sizeof-void.patch 2012-03-08 19:52:57 UTC (rev 90547)
@@ -0,0 +1,28 @@
+From 56b5a5887349e9d0e1d28da157fe6441ca691f56 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston <jeremyhu at apple.com>
+Date: Thu, 8 Mar 2012 11:49:36 -0800
+Subject: [PATCH] Build fix when sizeof(off_t) > sizeof(void *)
+
+https://trac.macports.org/ticket/33532
+
+Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+---
+ src/XF86DGA2.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/XF86DGA2.c b/src/XF86DGA2.c
+index e81b486..32f455b 100644
+--- a/src/XF86DGA2.c
++++ b/src/XF86DGA2.c
+@@ -928,7 +928,7 @@ DGAMapPhysical(
+ if ((pMap->fd = open(name, O_RDWR)) < 0)
+ return False;
+ pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,
+- MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base);
++ MAP_FILE | MAP_SHARED, pMap->fd, (off_t)(uintptr_t)base);
+ if (pMap->virtual == (void *)-1)
+ return False;
+ mprotect(pMap->virtual, size, PROT_READ | PROT_WRITE);
+--
+1.7.9.2
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120308/4a9cde1e/attachment.html>
More information about the macports-changes
mailing list