diff options
author | obache <obache> | 2009-06-09 06:32:31 +0000 |
---|---|---|
committer | obache <obache> | 2009-06-09 06:32:31 +0000 |
commit | 6a697273392a1b9e1b1c7223a9b37af46244b122 (patch) | |
tree | fe976ca737c12d80f2473ef7c453c8d103714f3d /x11/xf86-video-wsfb | |
parent | 09adc3f27b6be627d5848851a36568ff2830cb83 (diff) | |
download | pkgsrc-6a697273392a1b9e1b1c7223a9b37af46244b122.tar.gz |
Add a patch taken from upstream repository for xorg-server>=1.5.
Diffstat (limited to 'x11/xf86-video-wsfb')
-rw-r--r-- | x11/xf86-video-wsfb/distinfo | 3 | ||||
-rw-r--r-- | x11/xf86-video-wsfb/patches/patch-aa | 147 |
2 files changed, 149 insertions, 1 deletions
diff --git a/x11/xf86-video-wsfb/distinfo b/x11/xf86-video-wsfb/distinfo index 9a84608cf9f..97b9061e352 100644 --- a/x11/xf86-video-wsfb/distinfo +++ b/x11/xf86-video-wsfb/distinfo @@ -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 --git a/x11/xf86-video-wsfb/patches/patch-aa b/x11/xf86-video-wsfb/patches/patch-aa new file mode 100644 index 00000000000..158b5aae3ca --- /dev/null +++ b/x11/xf86-video-wsfb/patches/patch-aa @@ -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: |