summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorwiz <wiz>2012-06-05 22:15:02 +0000
committerwiz <wiz>2012-06-05 22:15:02 +0000
commit748903ad2bf25b60553bcc1d5d91a1c5db7e6ac1 (patch)
tree78411105ba8e9e9ec408c1172a76e6b27bf0d299 /x11
parenta42b3da6ecd776ac15ddbcaea16b81d6b7af998d (diff)
downloadpkgsrc-748903ad2bf25b60553bcc1d5d91a1c5db7e6ac1.tar.gz
Address PR 46544 using a patch from Gustau Pérez i Querol from
http://freebsd.1045724.n5.nabble.com/Xorg-1-12-td5642201.html via Francois Tigeot.
Diffstat (limited to 'x11')
-rw-r--r--x11/libXxf86dga/distinfo3
-rw-r--r--x11/libXxf86dga/patches/patch-src_XF86DGA2.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/x11/libXxf86dga/distinfo b/x11/libXxf86dga/distinfo
index de910958921..596b91337f0 100644
--- a/x11/libXxf86dga/distinfo
+++ b/x11/libXxf86dga/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2012/06/03 17:48:03 wiz Exp $
+$NetBSD: distinfo,v 1.5 2012/06/05 22:15:02 wiz Exp $
SHA1 (libXxf86dga-1.1.3.tar.bz2) = 5af5d7d2f239b31035ae5b9d3e3718c833af8b56
RMD160 (libXxf86dga-1.1.3.tar.bz2) = 7075d6db6fa256e9ee54de5b78a2a9ad685481ac
Size (libXxf86dga-1.1.3.tar.bz2) = 290347 bytes
+SHA1 (patch-src_XF86DGA2.c) = c4ed9a3e6f8cce2b323796fa8f037dc6416996ed
diff --git a/x11/libXxf86dga/patches/patch-src_XF86DGA2.c b/x11/libXxf86dga/patches/patch-src_XF86DGA2.c
new file mode 100644
index 00000000000..cd6ea08e22d
--- /dev/null
+++ b/x11/libXxf86dga/patches/patch-src_XF86DGA2.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_XF86DGA2.c,v 1.1 2012/06/05 22:15:03 wiz Exp $
+
+Fix build on DragonFly i386 (and probably others).
+From Gustau Pérez i Querol in
+http://freebsd.1045724.n5.nabble.com/Xorg-1-12-td5642201.html
+
+--- src/XF86DGA2.c.orig 2012-03-08 05:35:46.000000000 +0000
++++ 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)(unsigned long)base);
+ if (pMap->virtual == (void *)-1)
+ return False;
+ mprotect(pMap->virtual, size, PROT_READ | PROT_WRITE);