pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xf86-video-wsfb Add a patch taken from upstream re...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/368098abd1c7
branches:  trunk
changeset: 560197:368098abd1c7
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue Jun 09 06:32:31 2009 +0000

description:
Add a patch taken from upstream repository for xorg-server>=1.5.

diffstat:

 x11/xf86-video-wsfb/distinfo         |    3 +-
 x11/xf86-video-wsfb/patches/patch-aa |  147 +++++++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+), 1 deletions(-)

diffs (162 lines):

diff -r 4b1637bc7d30 -r 368098abd1c7 x11/xf86-video-wsfb/distinfo
--- a/x11/xf86-video-wsfb/distinfo      Tue Jun 09 06:29:46 2009 +0000
+++ b/x11/xf86-video-wsfb/distinfo      Tue Jun 09 06:32:31 2009 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2007/03/20 15:10:01 joerg Exp $
+$NetBSD: distinfo,v 1.3 2009/06/09 06:32:31 obache Exp $
 
 SHA1 (xf86-video-wsfb-0.2.1.tar.bz2) = 5f7fff95bf0f9409dc392e2f5c192156bf168b33
 RMD160 (xf86-video-wsfb-0.2.1.tar.bz2) = a3ef24a1921593cae51e87a4532b86a5dd2e1e1e
 Size (xf86-video-wsfb-0.2.1.tar.bz2) = 216172 bytes
+SHA1 (patch-aa) = a79da4d939ae7a1048ad18dd71195a5f8870e5f6
diff -r 4b1637bc7d30 -r 368098abd1c7 x11/xf86-video-wsfb/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xf86-video-wsfb/patches/patch-aa      Tue Jun 09 06:32:31 2009 +0000
@@ -0,0 +1,147 @@
+$NetBSD: patch-aa,v 1.1 2009/06/09 06:32:31 obache Exp $
+
+Adapt to xorg-server>=1.6
+
+--- src/wsfb_driver.c.orig     2007-01-02 14:38:33.000000000 +0000
++++ src/wsfb_driver.c
+@@ -40,15 +40,16 @@
+ #include "config.h"
+ #endif
+ 
++#include <errno.h>
+ #include <fcntl.h>
+ #include <sys/types.h>
++#include <sys/mman.h>
+ #include <sys/time.h>
+ #include <dev/wscons/wsconsio.h>
+ 
+ /* all driver need this */
+ #include "xf86.h"
+ #include "xf86_OSproc.h"
+-#include "xf86_ansic.h"
+ 
+ #include "mipointer.h"
+ #include "mibstore.h"
+@@ -59,8 +60,12 @@
+ #include "dgaproc.h"
+ 
+ /* for visuals */
+-#include "xf1bpp.h"
+-#include "xf4bpp.h"
++#ifdef HAVE_XF1BPP
++# include "xf1bpp.h"
++#endif
++#ifdef HAVE_XF4BPP
++# include "xf4bpp.h"
++#endif
+ #include "fb.h"
+ 
+ #include "xf86Resources.h"
+@@ -70,13 +75,7 @@
+ #include "xf86xv.h"
+ #endif
+ 
+-/* #include "wsconsio.h" */
+-
+-#ifndef XFree86LOADER
+-#include <sys/mman.h>
+-#endif
+-
+-#ifdef USE_PRIVSEP
++#ifdef X_PRIVSEP
+ extern int priv_open_device(const char *);
+ #else
+ #define priv_open_device(n)    open(n,O_RDWR|O_NONBLOCK|O_EXCL)
+@@ -184,22 +183,6 @@ static const OptionInfoRec WsfbOptions[]
+       { -1, NULL, OPTV_NONE, {0}, FALSE}
+ };
+ 
+-/* Symbols needed from other modules */
+-static const char *fbSymbols[] = {
+-      "fbPictureInit",
+-      "fbScreenInit",
+-      NULL
+-};
+-static const char *shadowSymbols[] = {
+-      "shadowAdd",
+-      "shadowSetup",
+-      "shadowUpdatePacked",
+-      "shadowUpdatePackedWeak",
+-      "shadowUpdateRotatePacked",
+-      "shadowUpdateRotatePackedWeak",
+-      NULL
+-};
+-
+ #ifdef XFree86LOADER
+ static XF86ModuleVersionInfo WsfbVersRec = {
+       "wsfb",
+@@ -237,7 +220,6 @@ WsfbSetup(pointer module, pointer opts, 
+       if (!setupDone) {
+               setupDone = TRUE;
+               xf86AddDriver(&WSFB, module, HaveDriverFuncs);
+-              LoaderRefSymLists(fbSymbols, shadowSymbols, NULL);
+               return (pointer)1;
+       } else {
+               if (errmaj != NULL)
+@@ -642,14 +624,18 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags
+ 
+       /* Load bpp-specific modules */
+       switch(pScrn->bitsPerPixel) {
++#ifdef HAVE_XF1BPP
+       case 1:
+               mod = "xf1bpp";
+               reqSym = "xf1bppScreenInit";
+               break;
++#endif
++#ifdef HAVE_XF4BPP
+       case 4:
+               mod = "xf4bpp";
+               reqSym = "xf4bppScreenInit";
+               break;
++#endif
+       default:
+               mod = "fb";
+               break;
+@@ -664,19 +650,11 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags
+                       WsfbFreeRec(pScrn);
+                       return FALSE;
+               }
+-              xf86LoaderReqSymLists(shadowSymbols, NULL);
+       }
+       if (mod && xf86LoadSubModule(pScrn, mod) == NULL) {
+               WsfbFreeRec(pScrn);
+               return FALSE;
+       }
+-      if (mod) {
+-              if (reqSym) {
+-                      xf86LoaderReqSymbols(reqSym, NULL);
+-              } else {
+-                      xf86LoaderReqSymLists(fbSymbols, NULL);
+-              }
+-      }
+       TRACE_EXIT("PreInit");
+       return TRUE;
+ }
+@@ -821,6 +799,7 @@ WsfbScreenInit(int scrnIndex, ScreenPtr 
+       fPtr->fbstart = fPtr->fbmem;
+ 
+       switch (pScrn->bitsPerPixel) {
++#ifdef HAVE_XF1BPP
+       case 1:
+               ret = xf1bppScreenInit(pScreen, fPtr->fbstart,
+                                      pScrn->virtualX, pScrn->virtualY,
+@@ -828,11 +807,14 @@ WsfbScreenInit(int scrnIndex, ScreenPtr 
+                                      pScrn->displayWidth);
+               break;
+       case 4:
++#endif
++#ifdef HAVE_XF4BPP
+               ret = xf4bppScreenInit(pScreen, fPtr->fbstart,
+                                      pScrn->virtualX, pScrn->virtualY,
+                                      pScrn->xDpi, pScrn->yDpi,
+                                      pScrn->displayWidth);
+               break;
++#endif
+       case 8:
+       case 16:
+       case 24:



Home | Main Index | Thread Index | Old Index