diff options
author | Cy Schubert <cy@FreeBSD.org> | 2011-06-08 17:55:19 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2011-06-08 17:55:19 +0000 |
commit | 6d2d5787fdae5ba525c0bf0f633a7cfac275c3f4 (patch) | |
tree | aae06a5a4d5852fdfdf92d7fe790ae36977f277d /x11-toolkits/xview | |
parent | 65946c5c2b9e692f33d789986315609c521f9000 (diff) |
Fix XAllocID assertion in Xview applications.
Assume maintainership of this port.
Obtained from: Ubuntu bug 89166
Notes
Notes:
svn path=/head/; revision=275241
Diffstat (limited to 'x11-toolkits/xview')
-rw-r--r-- | x11-toolkits/xview/Makefile | 4 | ||||
-rw-r--r-- | x11-toolkits/xview/files/patch-lib+libxview+server+server.c | 29 |
2 files changed, 27 insertions, 6 deletions
diff --git a/x11-toolkits/xview/Makefile b/x11-toolkits/xview/Makefile index 797e3a0bf867..b70558a98e82 100644 --- a/x11-toolkits/xview/Makefile +++ b/x11-toolkits/xview/Makefile @@ -7,7 +7,7 @@ PORTNAME= xview PORTVERSION= 3.2.1 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= x11-toolkits MASTER_SITES= ftp://ftp.efd.lth.se/pub/X11/ \ ftp://ftp.uni-heidelberg.de/pub/X11/contrib/libraries/ \ @@ -15,7 +15,7 @@ MASTER_SITES= ftp://ftp.efd.lth.se/pub/X11/ \ MASTER_SITE_SUBDIR= pav DISTNAME= xview3.2p1-X11R6 -MAINTAINER= ports@FreeBSD.org +MAINTAINER= cy@FreeBSD.org COMMENT= X Window-System-based Visual/Integrated Environment for Workstations MAKE_JOBS_UNSAFE= yes diff --git a/x11-toolkits/xview/files/patch-lib+libxview+server+server.c b/x11-toolkits/xview/files/patch-lib+libxview+server+server.c index c691498f3c5d..8ef64286e4e0 100644 --- a/x11-toolkits/xview/files/patch-lib+libxview+server+server.c +++ b/x11-toolkits/xview/files/patch-lib+libxview+server+server.c @@ -1,6 +1,14 @@ ---- ./lib/libxview/server/server.c.orig Sun Jun 26 20:53:40 1994 -+++ ./lib/libxview/server/server.c Sat Apr 1 18:25:28 2000 -@@ -65,6 +65,7 @@ static Notify_value scheduler(); +--- lib/libxview/server/server.c.orig 1994-06-26 11:53:40.000000000 -0700 ++++ lib/libxview/server/server.c 2011-06-08 10:21:36.653037943 -0700 +@@ -25,6 +25,7 @@ + #include <xview/win_notify.h> + #include <xview/defaults.h> + #include <X11/Xlib.h> ++#include <X11/Xlibint.h> + #include <xview_private/portable.h> + #include <xview_private/svr_atom.h> + #include <xview_private/svr_impl.h> +@@ -65,6 +66,7 @@ static unsigned int string_to_modmask(); static Server_atom_type save_atom(); static void server_yield_modifiers(); @@ -8,7 +16,7 @@ Xv_private char *xv_strtok(); -@@ -440,7 +441,7 @@ server_init(parent, server_public, avlis +@@ -440,7 +442,7 @@ /* lumpi@dobag.in-berlin.de */ if (XrmGetDatabase((Display *)server->xdisplay)) { server->db = XrmGetStringDatabase( @@ -17,3 +25,16 @@ #else if (((Display *)server->xdisplay)->xdefaults) { server->db = XrmGetStringDatabase( +@@ -741,10 +743,8 @@ + */ + + /* Used by atom mgr */ +- server->atom_mgr[ATOM] = (XID) XAllocID((Display *)server->xdisplay); +- server->atom_mgr[NAME] = (XID) XAllocID((Display *)server->xdisplay); +- server->atom_mgr[TYPE] = (XID) XAllocID((Display *)server->xdisplay); +- server->atom_mgr[DATA] = (XID) XAllocID((Display *)server->xdisplay); ++ /* XXX Fixed by Ubuntu bug 89166 */ ++ XAllocIDs((Display *)server->xdisplay, server->atom_mgr, 4); + + /* Key for XV_KEY_DATA. Used in local dnd ops. */ + server->dnd_ack_key = xv_unique_key(); |