public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/x11:master commit in: x11-libs/libdrm/files/, x11-libs/libdrm/
Date: Wed, 11 Feb 2015 21:58:20 +0000 (UTC)	[thread overview]
Message-ID: <1423691872.3378c88822a31d05d68b4a21d82a0cfadcf657e8.mattst88@gentoo> (raw)

commit:     3378c88822a31d05d68b4a21d82a0cfadcf657e8
Author:     Matt Turner <mattst88 <AT> gmail <DOT> com>
AuthorDate: Wed Feb 11 21:57:52 2015 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 21:57:52 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=3378c888

x11-libs/libdrm: Drop Solaris patch.

Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=539822

---
 x11-libs/libdrm/files/libdrm-2.4.58-solaris.patch | 104 ----------------------
 x11-libs/libdrm/libdrm-9999.ebuild                |   1 -
 2 files changed, 105 deletions(-)

diff --git a/x11-libs/libdrm/files/libdrm-2.4.58-solaris.patch b/x11-libs/libdrm/files/libdrm-2.4.58-solaris.patch
deleted file mode 100644
index 9e41100..0000000
--- a/x11-libs/libdrm/files/libdrm-2.4.58-solaris.patch
+++ /dev/null
@@ -1,104 +0,0 @@
---- a/include/drm/drm.h
-+++ b/include/drm/drm.h
-@@ -54,7 +54,11 @@ typedef int32_t  __s32;
- typedef uint32_t __u32;
- typedef int64_t  __s64;
- typedef uint64_t __u64;
-+#if defined(__sun)
-+typedef unsigned long long drm_handle_t;
-+#else
- typedef unsigned long drm_handle_t;
-+#endif
- 
- #endif
- 
-@@ -210,12 +214,22 @@ struct drm_ctx_priv_map {
-  * \sa drmAddMap().
-  */
- struct drm_map {
-+#ifdef __sun
-+	unsigned long long offset;
-+                               /**< Requested physical address (0 for SAREA)*/
-+	unsigned long long handle;
-+                               /**< User-space: "Handle" to pass to mmap() */
-+                               /**< Kernel-space: kernel-virtual address */
-+#else
- 	unsigned long offset;	 /**< Requested physical address (0 for SAREA)*/
-+#endif
- 	unsigned long size;	 /**< Requested physical size (bytes) */
- 	enum drm_map_type type;	 /**< Type of memory to map */
- 	enum drm_map_flags flags;	 /**< Flags */
-+#ifndef __sun
- 	void *handle;		 /**< User-space: "Handle" to pass to mmap() */
- 				 /**< Kernel-space: kernel-virtual address */
-+#endif
- 	int mtrr;		 /**< MTRR slot used */
- 	/*   Private data */
- };
-@@ -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;
-+#endif
- };
- 
- /**
---- a/radeon/radeon_bo_gem.c
-+++ b/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 "libdrm.h"
- #include "xf86drm.h"
- #include "xf86atomic.h"
- #include "drm.h"
---- a/xf86drm.c
-+++ b/xf86drm.c
-@@ -972,7 +972,11 @@ int drmRmMap(int fd, drm_handle_t handle
- {
-     drm_map_t map;
- 
-+#ifdef __sun
-+    map.handle = handle;
-+#else
-     map.handle = (void *)(uintptr_t)handle;
-+#endif
- 
-     if(drmIoctl(fd, DRM_IOCTL_RM_MAP, &map))
- 	return -errno;
-@@ -1210,6 +1214,9 @@ drmBufMapPtr drmMapBufs(int fd)
-     bufs.count = 0;
-     bufs.list  = NULL;
-     bufs.virtual = NULL;
-+#ifdef __sun
-+    bufs.fd = fd;
-+#endif
-     if (drmIoctl(fd, DRM_IOCTL_MAP_BUFS, &bufs))
- 	return NULL;
- 
---- a/xf86drm.h
-+++ b/xf86drm.h
-@@ -64,6 +64,13 @@
- 
- #endif
- 
-+#if defined(__sun) && !defined(_IOC)
-+#define _IOC(dir, group, nr, size)                             \
-+    (dir == DRM_IOC_READWRITE ? _IOWRN(group, nr, size) :      \
-+      (dir == DRM_IOC_WRITE ? _IOWN(group, nr, size) :         \
-+       /* dir == DRM_IOC_READ */  _IORN(group, nr, size) ))
-+#endif
-+
- 				/* Defaults, if nothing set in xf86config */
- #define DRM_DEV_UID	 0
- #define DRM_DEV_GID	 0

diff --git a/x11-libs/libdrm/libdrm-9999.ebuild b/x11-libs/libdrm/libdrm-9999.ebuild
index 98da7c5..8589a76 100644
--- a/x11-libs/libdrm/libdrm-9999.ebuild
+++ b/x11-libs/libdrm/libdrm-9999.ebuild
@@ -30,7 +30,6 @@ RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1:=[${MULTILIB_USEDEP}]
 DEPEND="${RDEPEND}"
 
 PATCHES=(
-	"${FILESDIR}"/${PN}-2.4.58-solaris.patch
 )
 
 src_prepare() {


             reply	other threads:[~2015-02-11 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-11 21:58 Matt Turner [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
2011-03-29 13:23 Tomas Chvatal

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=1423691872.3378c88822a31d05d68b4a21d82a0cfadcf657e8.mattst88@gentoo \
    --to=mattst88@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