pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/46649: x11/libdrm-2.4.37 fails to compile on DragonFly 3.1-DEVEL
The following reply was made to PR pkg/46649; it has been noted by GNATS.
From: David Shao <davshao%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/46649: x11/libdrm-2.4.37 fails to compile on DragonFly
3.1-DEVEL
Date: Mon, 2 Jul 2012 08:41:44 -0700
ETIME is seemingly not defined for DragonFly and possibly for FreeBSD
because the optional STREAMS of POSIX is not implemented. I will file
a bug report with DragonFly.
At least the following patch enables compilation, not tested for functionality.
diff --git a/x11/libdrm/distinfo b/x11/libdrm/distinfo
index 1883910..61a0b76 100644
--- a/x11/libdrm/distinfo
+++ b/x11/libdrm/distinfo
@@ -6,4 +6,5 @@ Size (libdrm-2.4.37.tar.bz2) = 504014 bytes
SHA1 (patch-ab) = 66dadd3244bfa9c69be0982fd2108deb94483de2
SHA1 (patch-ac) = 67c998df7dfc0dabc86320ea6d015cede3e464ea
SHA1 (patch-ad) = ea3ef8de8db782ddab23f182f1e6bd9d8f612a78
+SHA1 (patch-intel_intel__bufmgr__gem.c) =
8be0dcd7e2a4e0ce235aea9bce5b13753c683761
SHA1 (patch-libkms_linux.c) = 737d0a8e7b742ee9d24fec94c72de6b4915dd675
diff --git a/x11/libdrm/patches/patch-intel_intel__bufmgr__gem.c
b/x11/libdrm/patches/patch-intel_intel__bufmgr__gem.c
new file mode 100644
index 0000000..f291bb0
--- /dev/null
+++ b/x11/libdrm/patches/patch-intel_intel__bufmgr__gem.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- intel/intel_bufmgr_gem.c.orig 2012-07-02 15:22:14.326942000 +0000
++++ intel/intel_bufmgr_gem.c
+@@ -54,6 +54,9 @@
+ #include <stdbool.h>
+
+ #include "errno.h"
++#ifndef ETIME
++#define ETIME ETIMEDOUT
++#endif
+ #include "libdrm_lists.h"
+ #include "intel_bufmgr.h"
+ #include "intel_bufmgr_priv.h"
Home |
Main Index |
Thread Index |
Old Index