From: "Tomas Chvatal" <scarabeus@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/x11:master commit in: x11-libs/libdrm/files/, x11-libs/libdrm/
Date: Tue, 29 Mar 2011 13:23:26 +0000 (UTC) [thread overview]
Message-ID: <e65788e108d33b956d3b76bc944223eaf822efa7.scarabeus@gentoo> (raw)
commit: e65788e108d33b956d3b76bc944223eaf822efa7
Author: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 29 13:23:21 2011 +0000
Commit: Tomas Chvatal <scarabeus <AT> gentoo <DOT> org>
CommitDate: Tue Mar 29 13:23:21 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=e65788e1
[x11-libs/libdrm] sync with main tree
---
x11-libs/libdrm/files/libdrm-2.4.15-solaris.patch | 33 ------------
...6-solaris.patch => libdrm-2.4.23-solaris.patch} | 52 ++++++++++++++------
x11-libs/libdrm/libdrm-9999.ebuild | 3 +-
3 files changed, 37 insertions(+), 51 deletions(-)
diff --git a/x11-libs/libdrm/files/libdrm-2.4.15-solaris.patch b/x11-libs/libdrm/files/libdrm-2.4.15-solaris.patch
deleted file mode 100644
index f344f0c..0000000
--- a/x11-libs/libdrm/files/libdrm-2.4.15-solaris.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-http://bugs.gentoo.org/show_bug.cgi?id=288064
-
---- libdrm/nouveau/nouveau_bo.c
-+++ libdrm/nouveau/nouveau_bo.c
-@@ -31,6 +31,12 @@
- #include <sys/mman.h>
- #include <sys/ioctl.h>
-
-+/* On solaris unistd.h and stropts.h are needed for ioctl */
-+#ifdef __sun
-+#include <unistd.h>
-+#include <stropts.h>
-+#endif
-+
- #include "nouveau_private.h"
-
- int
---- libdrm/radeon/radeon_bo_gem.c
-+++ libdrm/radeon/radeon_bo_gem.c
-@@ -39,6 +39,13 @@
- #include <sys/mman.h>
- #include <sys/ioctl.h>
- #include <errno.h>
-+
-+/* On solaris unistd.h and stropts.h are needed for ioctl */
-+#ifdef __sun
-+#include <unistd.h>
-+#include <stropts.h>
-+#endif
-+
- #include "xf86drm.h"
- #include "drm.h"
- #include "radeon_drm.h"
diff --git a/x11-libs/libdrm/files/libdrm-2.4.16-solaris.patch b/x11-libs/libdrm/files/libdrm-2.4.23-solaris.patch
similarity index 61%
rename from x11-libs/libdrm/files/libdrm-2.4.16-solaris.patch
rename to x11-libs/libdrm/files/libdrm-2.4.23-solaris.patch
index 90f9a3d..5c148a4 100644
--- a/x11-libs/libdrm/files/libdrm-2.4.16-solaris.patch
+++ b/x11-libs/libdrm/files/libdrm-2.4.23-solaris.patch
@@ -1,10 +1,8 @@
-This is a reapply (hopefully in the relevant places) of the original
-patch found here:
-http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg35327.html
-
---- libdrm-2.4.16/include/drm/drm.h
-+++ libdrm-2.4.16/include/drm/drm.h
-@@ -54,7 +54,11 @@
+Index: libdrm-2.4.23/include/drm/drm.h
+===================================================================
+--- libdrm-2.4.23.orig/include/drm/drm.h
++++ libdrm-2.4.23/include/drm/drm.h
+@@ -54,7 +54,11 @@ typedef int32_t __s32;
typedef uint32_t __u32;
typedef int64_t __s64;
typedef uint64_t __u64;
@@ -16,7 +14,7 @@ http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg35327.html
#endif
-@@ -210,12 +214,22 @@
+@@ -210,12 +214,22 @@ struct drm_ctx_priv_map {
* \sa drmAddMap().
*/
struct drm_map {
@@ -39,9 +37,9 @@ http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg35327.html
int mtrr; /**< MTRR slot used */
/* Private data */
};
-@@ -375,6 +389,9 @@
- int count; /**< Length of the buffer list */
+@@ -379,6 +393,9 @@ struct drm_buf_map {
void *virtual; /**< Mmap'd area in user-virtual */
+ #endif
struct drm_buf_pub *list; /**< Buffer information */
+#ifdef __sun
+ int fd;
@@ -49,9 +47,29 @@ http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg35327.html
};
/**
---- libdrm-2.4.16/xf86drm.c
-+++ libdrm-2.4.16/xf86drm.c
-@@ -967,7 +967,11 @@
+Index: libdrm-2.4.23/radeon/radeon_bo_gem.c
+===================================================================
+--- libdrm-2.4.23.orig/radeon/radeon_bo_gem.c
++++ libdrm-2.4.23/radeon/radeon_bo_gem.c
+@@ -38,6 +38,13 @@
+ #include <string.h>
+ #include <sys/mman.h>
+ #include <errno.h>
++
++/* On solaris unistd.h and stropts.h are needed for ioctl */
++#ifdef __sun
++#include <unistd.h>
++#include <stropts.h>
++#endif
++
+ #include "xf86drm.h"
+ #include "xf86atomic.h"
+ #include "drm.h"
+Index: libdrm-2.4.23/xf86drm.c
+===================================================================
+--- libdrm-2.4.23.orig/xf86drm.c
++++ libdrm-2.4.23/xf86drm.c
+@@ -972,7 +972,11 @@ int drmRmMap(int fd, drm_handle_t handle
{
drm_map_t map;
@@ -63,7 +81,7 @@ http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg35327.html
if(drmIoctl(fd, DRM_IOCTL_RM_MAP, &map))
return -errno;
-@@ -1205,6 +1209,9 @@
+@@ -1210,6 +1214,9 @@ drmBufMapPtr drmMapBufs(int fd)
bufs.count = 0;
bufs.list = NULL;
bufs.virtual = NULL;
@@ -73,8 +91,10 @@ http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg35327.html
if (drmIoctl(fd, DRM_IOCTL_MAP_BUFS, &bufs))
return NULL;
---- libdrm-2.4.16/xf86drm.h
-+++ libdrm-2.4.16/xf86drm.h
+Index: libdrm-2.4.23/xf86drm.h
+===================================================================
+--- libdrm-2.4.23.orig/xf86drm.h
++++ libdrm-2.4.23/xf86drm.h
@@ -64,6 +64,13 @@
#endif
diff --git a/x11-libs/libdrm/libdrm-9999.ebuild b/x11-libs/libdrm/libdrm-9999.ebuild
index 30c7d54..d4af1f5 100644
--- a/x11-libs/libdrm/libdrm-9999.ebuild
+++ b/x11-libs/libdrm/libdrm-9999.ebuild
@@ -28,8 +28,7 @@ RDEPEND="dev-libs/libpthread-stubs"
DEPEND="${RDEPEND}"
PATCHES=(
- "${FILESDIR}"/${PN}-2.4.16-solaris.patch
- "${FILESDIR}"/${PN}-2.4.15-solaris.patch
+ "${FILESDIR}"/${PN}-2.4.23-solaris.patch
)
pkg_setup() {
next reply other threads:[~2011-03-29 13:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 13:23 Tomas Chvatal [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-11-02 12:51 [gentoo-commits] proj/x11:master commit in: x11-libs/libdrm/files/, x11-libs/libdrm/ Chi-Thanh Christopher Nguyen
2015-02-11 21:58 Matt Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e65788e108d33b956d3b76bc944223eaf822efa7.scarabeus@gentoo \
--to=scarabeus@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox