diff options
author | bjs <bjs@pkgsrc.org> | 2008-09-16 21:57:09 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2008-09-16 21:57:09 +0000 |
commit | cdeb921a6fabb27b3dabba5ba51d8b51f6239369 (patch) | |
tree | 620aaac2ce349ed377d36205d06c33faf4a5a0db /x11/libX11 | |
parent | 353a50ce2dda2f3fe09fa9696d6b71414aff7e52 (diff) | |
download | pkgsrc-cdeb921a6fabb27b3dabba5ba51d8b51f6239369.tar.gz |
Update to libX11-1.1.5: integrates the patches listed as removed
as well as a number of i18n fixes.
Diffstat (limited to 'x11/libX11')
-rw-r--r-- | x11/libX11/Makefile | 5 | ||||
-rw-r--r-- | x11/libX11/distinfo | 21 | ||||
-rw-r--r-- | x11/libX11/patches/patch-aa | 44 | ||||
-rw-r--r-- | x11/libX11/patches/patch-ab | 21 | ||||
-rw-r--r-- | x11/libX11/patches/patch-ac | 24 | ||||
-rw-r--r-- | x11/libX11/patches/patch-ah | 60 | ||||
-rw-r--r-- | x11/libX11/patches/patch-ai | 17 | ||||
-rw-r--r-- | x11/libX11/patches/patch-aj | 18 | ||||
-rw-r--r-- | x11/libX11/patches/patch-ak | 44 | ||||
-rw-r--r-- | x11/libX11/patches/patch-al | 27 | ||||
-rw-r--r-- | x11/libX11/patches/patch-am | 15 | ||||
-rw-r--r-- | x11/libX11/patches/patch-an | 27 | ||||
-rw-r--r-- | x11/libX11/patches/patch-ao | 15 |
13 files changed, 23 insertions, 315 deletions
diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile index 27dd32abece..43bb5211ced 100644 --- a/x11/libX11/Makefile +++ b/x11/libX11/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.15 2008/07/24 01:07:31 bjs Exp $ +# $NetBSD: Makefile,v 1.16 2008/09/16 21:57:09 bjs Exp $ # -DISTNAME= libX11-1.1.4 -PKGREVISION= 2 +DISTNAME= libX11-1.1.5 CATEGORIES= x11 devel MASTER_SITES= ${MASTER_SITE_XORG:=lib/} EXTRACT_SUFX= .tar.bz2 diff --git a/x11/libX11/distinfo b/x11/libX11/distinfo index 1a8f199db25..4ab5a36b8f0 100644 --- a/x11/libX11/distinfo +++ b/x11/libX11/distinfo @@ -1,20 +1,11 @@ -$NetBSD: distinfo,v 1.11 2008/07/24 01:07:31 bjs Exp $ +$NetBSD: distinfo,v 1.12 2008/09/16 21:57:09 bjs Exp $ -SHA1 (libX11-1.1.4.tar.bz2) = e91092e22c3b48371c3549afba1b6a457acb2d7e -RMD160 (libX11-1.1.4.tar.bz2) = 42776389986e0b158f703a9b88fdf95bb5095d1f -Size (libX11-1.1.4.tar.bz2) = 1576030 bytes -SHA1 (patch-aa) = 00b07dfbf3e9b7b8ea636bb9ce4b5a037db56f61 -SHA1 (patch-ab) = 7cb4fe18ec4e4f3305a1508ddd77ef41a5f98cb8 -SHA1 (patch-ac) = a5473e31ce8b60c9ee9f19a453face3dffb9ab24 +SHA1 (libX11-1.1.5.tar.bz2) = b703cb7c97e5aa35bf04a8df798e128ae16cf0d0 +RMD160 (libX11-1.1.5.tar.bz2) = 78567a999640851e7daba1ab44603ec099d0b619 +Size (libX11-1.1.5.tar.bz2) = 1585005 bytes +SHA1 (patch-aa) = 599bac98260dd066b1e26b9569eba964a6cb6c02 +SHA1 (patch-ac) = 3bad58728e5e84e305058580e9a819314cf68bb7 SHA1 (patch-ad) = 58645e734f48334ce5cbf62f5870d087d95194ee SHA1 (patch-ae) = f9957bdb7a03c87dd24c2d4bfe4f0f46fd955fcc SHA1 (patch-af) = a97f3b31eecc783caecfeb315ac2cf6603ec32a5 SHA1 (patch-ag) = 626875c0c772264ea53fbf4f6e9c2228f7628ecf -SHA1 (patch-ah) = 20c4e36f8b8d0b805abe55e4246c02bdd32108da -SHA1 (patch-ai) = 164a5dd68278552a0d6e389815568d8c38982927 -SHA1 (patch-aj) = 1da0dec1119b66940b7627bb51d3834d813026ab -SHA1 (patch-ak) = 0320b2ef0a6e93fe0b23a5b0b903505b58182deb -SHA1 (patch-al) = fc39dd845dc49dce15b80f2c8ff7e1766e85656c -SHA1 (patch-am) = b1946f578716c261b5fd0a99d7eba2876e197a61 -SHA1 (patch-an) = 00b554db6b9e957b714190a3dc7e9d3c9c10b1a0 -SHA1 (patch-ao) = 2ee7efa67cfa8f6be2ebcab5fdcc2be71c1cf961 diff --git a/x11/libX11/patches/patch-aa b/x11/libX11/patches/patch-aa index b84256f08db..507348063d9 100644 --- a/x11/libX11/patches/patch-aa +++ b/x11/libX11/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.5 2008/07/24 01:07:31 bjs Exp $ +$NetBSD: patch-aa,v 1.6 2008/09/16 21:57:09 bjs Exp $ Include pthread.h as thread stubs might be macros like on NetBSD. @@ -7,7 +7,7 @@ Define conditional for cross-compiling support. Also, don't look for keysmydef.h, as this could break cross builds (from GIT). ---- configure.ac.orig 2008-03-06 15:48:26.000000000 -0500 +--- configure.ac.orig 2008-09-04 17:38:59.000000000 -0400 +++ configure.ac @@ -180,7 +180,7 @@ esac AC_SUBST(XTHREADS) @@ -29,45 +29,7 @@ builds (from GIT). freebsd*) XTHREAD_CFLAGS="-D_THREAD_SAFE" XTHREADLIB="-pthread" ;; -@@ -220,31 +220,14 @@ AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, - # - # Find keysymdef.h - # --KEYSYMDEF="" - AC_MSG_CHECKING([keysymdef.h]) --for flag in $XPROTO_CFLAGS -I/usr/include; do -- case "$KEYSYMDEF" in -- "") -- case "$flag" in -- *-I*) -- dir=`echo "$flag" | sed 's/ *-I//'` -- file="$dir/X11/keysymdef.h" -- if test -f "$file"; then -- KEYSYMDEF="$file" -- fi -- ;; -- esac -- ;; -- esac --done --case "$KEYSYMDEF" in --"") -- AC_MSG_ERROR([Cannot find keysymdef.h]) -- ;; --*) -+dir=`pkg-config --variable=includedir xproto` -+KEYSYMDEF="$dir/X11/keysymdef.h" -+if test -f "$KEYSYMDEF"; then - AC_MSG_RESULT([$KEYSYMDEF]) -- ;; --esac -+else -+ AC_MSG_ERROR([Cannot find keysymdef.h]) -+fi - AC_SUBST(KEYSYMDEF) - - AM_CONDITIONAL(UDC, test xfalse = xtrue) -@@ -322,6 +305,8 @@ else +@@ -305,6 +305,8 @@ else fi AC_SUBST(XKBPROTO_REQUIRES) diff --git a/x11/libX11/patches/patch-ab b/x11/libX11/patches/patch-ab deleted file mode 100644 index c056c1a61f0..00000000000 --- a/x11/libX11/patches/patch-ab +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-ab,v 1.3 2008/07/24 01:07:31 bjs Exp $ - -IM: Respect XMODIFIERS for Thai locale (bug #15719) - ---- modules/im/ximcp/imThaiIm.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ modules/im/ximcp/imThaiIm.c -@@ -67,7 +67,13 @@ _XimCheckIfThaiProcessing(im) - char *language; - - _XGetLCValues(im->core.lcd, XlcNLanguage, &language, NULL); -- if(strcmp(language, THAI_LANGUAGE_NAME) == 0) { -+ if(strcmp(language, THAI_LANGUAGE_NAME) == 0 && -+ (strcmp(im->core.im_name, "") == 0 || -+ strcmp(im->core.im_name, "BasicCheck") == 0 || -+ strcmp(im->core.im_name, "Strict") == 0 || -+ strcmp(im->core.im_name, "Thaicat") == 0 || -+ strcmp(im->core.im_name, "Passthrough") == 0)) -+ { - return(True); - } - return(False); diff --git a/x11/libX11/patches/patch-ac b/x11/libX11/patches/patch-ac index 9380df1396d..44ad02bb943 100644 --- a/x11/libX11/patches/patch-ac +++ b/x11/libX11/patches/patch-ac @@ -1,11 +1,11 @@ -$NetBSD: patch-ac,v 1.5 2008/07/24 01:07:31 bjs Exp $ +$NetBSD: patch-ac,v 1.6 2008/09/16 21:57:09 bjs Exp $ _POSIX_THREAD_SAFE_FUNCTIONS is not used on NetBSD. Instead, let's use _REENTRANT. ---- configure.orig 2008-03-06 15:48:42.000000000 -0500 +--- configure.orig 2008-09-04 17:48:46.000000000 -0400 +++ configure -@@ -927,6 +927,8 @@ XKB_FALSE +@@ -929,6 +929,8 @@ XKB_FALSE XKBPROTO_CFLAGS XKBPROTO_LIBS XKBPROTO_REQUIRES @@ -14,7 +14,7 @@ let's use _REENTRANT. LINT LINT_FLAGS LINT_TRUE -@@ -22885,43 +22887,38 @@ esac +@@ -23393,43 +23395,38 @@ esac @@ -70,7 +70,7 @@ let's use _REENTRANT. ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 -@@ -22930,28 +22927,35 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec +@@ -23438,28 +23435,35 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err @@ -118,7 +118,7 @@ let's use _REENTRANT. if test x$thrstubs = xyes; then THRSTUBS_TRUE= THRSTUBS_FALSE='#' -@@ -22966,8 +22970,8 @@ if test x$xthreads = xyes ; then +@@ -23474,8 +23478,8 @@ if test x$xthreads = xyes ; then linux*|openbsd*|gnu*|k*bsd*-gnu) XTHREADLIB=-lpthread ;; netbsd*) @@ -129,7 +129,7 @@ let's use _REENTRANT. freebsd*) XTHREAD_CFLAGS="-D_THREAD_SAFE" XTHREADLIB="-pthread" ;; -@@ -23507,6 +23511,15 @@ else +@@ -24006,6 +24010,15 @@ else fi @@ -145,7 +145,7 @@ let's use _REENTRANT. for ac_header in stdlib.h unistd.h -@@ -24641,6 +24654,13 @@ echo "$as_me: error: conditional \"XKB\" +@@ -25140,6 +25153,13 @@ echo "$as_me: error: conditional \"XKB\" Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi @@ -159,7 +159,7 @@ let's use _REENTRANT. if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. Usually this means the macro was only invoked conditionally." >&5 -@@ -25466,6 +25486,8 @@ XKB_FALSE!$XKB_FALSE$ac_delim +@@ -25967,6 +25993,8 @@ XKB_FALSE!$XKB_FALSE$ac_delim XKBPROTO_CFLAGS!$XKBPROTO_CFLAGS$ac_delim XKBPROTO_LIBS!$XKBPROTO_LIBS$ac_delim XKBPROTO_REQUIRES!$XKBPROTO_REQUIRES$ac_delim @@ -168,12 +168,12 @@ let's use _REENTRANT. LINT!$LINT$ac_delim LINT_FLAGS!$LINT_FLAGS$ac_delim LINT_TRUE!$LINT_TRUE$ac_delim -@@ -25490,7 +25512,7 @@ LIBOBJS!$LIBOBJS$ac_delim +@@ -25991,7 +26019,7 @@ LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF -- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then -+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then +- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then ++ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 diff --git a/x11/libX11/patches/patch-ah b/x11/libX11/patches/patch-ah deleted file mode 100644 index fbf72e43ae1..00000000000 --- a/x11/libX11/patches/patch-ah +++ /dev/null @@ -1,60 +0,0 @@ -$NetBSD: patch-ah,v 1.3 2008/07/24 01:07:31 bjs Exp $ - ---- src/XlibInt.c.orig 2008-07-23 01:53:49.000000000 -0400 -+++ src/XlibInt.c -@@ -206,8 +206,6 @@ static char *_XAsyncReply( - Bool discard); - #endif /* !USE_XCB */ - --#define SEQLIMIT (65535 - (BUFSIZE / SIZEOF(xReq)) - 10) -- - /* - * The following routines are internal routines used by Xlib for protocol - * packet transmission and reception. -@@ -570,24 +568,34 @@ _XWaitForReadable( - } - #endif /* !USE_XCB */ - -+static int sync_hazard(Display *dpy) -+{ -+ unsigned long span = dpy->request - dpy->last_request_read; -+ unsigned long hazard = min((dpy->bufmax - dpy->buffer) / SIZEOF(xReq), 65535 - 10); -+ return span >= 65535 - hazard - 10; -+} -+ - static - int _XSeqSyncFunction( - register Display *dpy) - { - xGetInputFocusReply rep; - register xReq *req; -+ int sent_sync = 0; - - LockDisplay(dpy); -- if ((dpy->request - dpy->last_request_read) >= (BUFSIZE / SIZEOF(xReq))) { -+ if ((dpy->request - dpy->last_request_read) >= (65535 - BUFSIZE/SIZEOF(xReq))) { - GetEmptyReq(GetInputFocus, req); - (void) _XReply (dpy, (xReply *)&rep, 0, xTrue); -+ sent_sync = 1; - } - /* could get XID handler while waiting for reply in MT env */ -- if (dpy->synchandler == _XSeqSyncFunction) { -+ if (dpy->synchandler == _XSeqSyncFunction && !sync_hazard(dpy)) { - dpy->synchandler = dpy->savedsynchandler; - dpy->flags &= ~XlibDisplayPrivSync; - } - UnlockDisplay(dpy); -+ if (sent_sync) - SyncHandle(); - return 0; - } -@@ -595,8 +603,7 @@ int _XSeqSyncFunction( - void _XSetSeqSyncFunction( - register Display *dpy) - { -- if ((dpy->request - dpy->last_request_read) >= SEQLIMIT && -- !(dpy->flags & XlibDisplayPrivSync)) { -+ if (!(dpy->flags & XlibDisplayPrivSync) && sync_hazard(dpy)) { - dpy->savedsynchandler = dpy->synchandler; - dpy->synchandler = _XSeqSyncFunction; - dpy->flags |= XlibDisplayPrivSync; diff --git a/x11/libX11/patches/patch-ai b/x11/libX11/patches/patch-ai deleted file mode 100644 index 5602e86b326..00000000000 --- a/x11/libX11/patches/patch-ai +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: patch-ai,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -Bug #15884: Remove useless sleep()'s from the connection code. - ---- modules/im/ximcp/imTrans.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ modules/im/ximcp/imTrans.c -@@ -77,10 +77,7 @@ _XimTransConnect( - spec->trans_conn = NULL; - - if (connect_stat == TRANS_TRY_CONNECT_AGAIN) -- { -- sleep(1); - continue; -- } - else - break; - } diff --git a/x11/libX11/patches/patch-aj b/x11/libX11/patches/patch-aj deleted file mode 100644 index e5133e2142d..00000000000 --- a/x11/libX11/patches/patch-aj +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-aj,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -NLS: Make UTF-8 the default for Russian - ---- nls/locale.alias.pre.orig 2008-03-06 15:45:06.000000000 -0500 -+++ nls/locale.alias.pre -@@ -916,8 +916,9 @@ ro_RO: ro_RO.ISO8859-2 - ro_RO.iso88592: ro_RO.ISO8859-2 - ro_RO.ISO-8859-2: ro_RO.ISO8859-2 - ro_RO.utf8: ro_RO.UTF-8 --ru: ru_RU.ISO8859-5 --ru_RU: ru_RU.ISO8859-5 -+ru: ru_RU.UTF-8 -+ru_RU: ru_RU.UTF-8 -+ru_RU.utf8: ru_RU.UTF-8 - ru_RU.iso88595: ru_RU.ISO8859-5 - ru_RU.ISO-8859-5: ru_RU.ISO8859-5 - ru_RU.koi8r: ru_RU.KOI8-R diff --git a/x11/libX11/patches/patch-ak b/x11/libX11/patches/patch-ak deleted file mode 100644 index eabac8ee7aa..00000000000 --- a/x11/libX11/patches/patch-ak +++ /dev/null @@ -1,44 +0,0 @@ -$NetBSD: patch-ak,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -ConnDis: properly cast 'addr' before accessing it as a byte array. - -Bug #15884: Remove useless sleep()'s from the connection code. - ---- src/ConnDis.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ src/ConnDis.c -@@ -42,6 +42,7 @@ in this Software without prior written a - #include <X11/Xdmcp.h> - #include <stdio.h> - #include <ctype.h> -+#include <unistd.h> - - #if !defined(WIN32) - #ifndef Lynx -@@ -389,10 +390,7 @@ _X11TransConnectDisplay ( - trans_conn = NULL; - - if (connect_stat == TRANS_TRY_CONNECT_AGAIN) -- { -- sleep(1); - continue; -- } - else - break; - } -@@ -409,7 +407,6 @@ _X11TransConnectDisplay ( - { - _X11TransClose(trans_conn); - trans_conn = NULL; -- sleep(1); - if (saddr) - { - free ((char *) saddr); -@@ -1143,7 +1140,7 @@ GetAuthorization( - - /* In the case of v4 mapped addresses send the v4 - part of the address - addr is already in network byte order */ -- if (memcmp(addr+8, ipv4mappedprefix, 12) == 0) { -+ if (memcmp((char*)addr+8, ipv4mappedprefix, 12) == 0) { - for (i = 20 ; i < 24; i++) - xdmcp_data[j++] = ((char *)addr)[i]; - diff --git a/x11/libX11/patches/patch-al b/x11/libX11/patches/patch-al deleted file mode 100644 index 70570a9a70c..00000000000 --- a/x11/libX11/patches/patch-al +++ /dev/null @@ -1,27 +0,0 @@ -$NetBSD: patch-al,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -Warning fixes. - ---- src/GetDflt.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ src/GetDflt.c -@@ -98,16 +98,16 @@ GetHomeDir( - int len) - { - #ifdef WIN32 -- register char *ptr1; -- register char *ptr2; -+ register char *ptr1 = NULL; -+ register char *ptr2 = NULL; - int len1 = 0, len2 = 0; - -- if (ptr1 = getenv("HOME")) { /* old, deprecated */ -+ if ((ptr1 = getenv("HOME"))) { /* old, deprecated */ - len1 = strlen (ptr1); - } else if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) { - len1 = strlen (ptr1); - len2 = strlen (ptr2); -- } else if (ptr2 = getenv("USERNAME")) { -+ } else if ((ptr2 = getenv("USERNAME"))) { - len1 = strlen (ptr1 = "/users/"); - len2 = strlen (ptr2); - } diff --git a/x11/libX11/patches/patch-am b/x11/libX11/patches/patch-am deleted file mode 100644 index 7b74e8c7bd0..00000000000 --- a/x11/libX11/patches/patch-am +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-am,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -Warning fix. - ---- src/locking.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ src/locking.c -@@ -60,7 +60,7 @@ extern LockInfoPtr _Xi18n_lock; - #ifdef WIN32 - static DWORD _X_TlsIndex = (DWORD)-1; - --_Xthread_init() -+void _Xthread_init() - { - if (_X_TlsIndex == (DWORD)-1) - _X_TlsIndex = TlsAlloc(); diff --git a/x11/libX11/patches/patch-an b/x11/libX11/patches/patch-an deleted file mode 100644 index b49ab5e896a..00000000000 --- a/x11/libX11/patches/patch-an +++ /dev/null @@ -1,27 +0,0 @@ -$NetBSD: patch-an,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -Fix missing error condition (from GIT) - -added error check in Xcms color file parser; closes bug #15305 - ---- src/xcms/cmsColNm.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ src/xcms/cmsColNm.c -@@ -735,10 +735,17 @@ LoadColornameDB(void) - } - - if ((stream = _XFopenFile (pathname, "r")) == NULL) { -+ /* can't open file */ -+ XcmsColorDbState = XcmsDbInitFailure; - return(XcmsFailure); - } - -- stringSectionSize(stream, &nEntries, &size); -+ if (stringSectionSize(stream, &nEntries, &size) != XcmsSuccess || -+ nEntries == 0) { -+ (void) fclose(stream); -+ XcmsColorDbState = XcmsDbInitFailure; -+ return(XcmsFailure); -+ } - rewind(stream); - - strings = (char *) Xmalloc(size); diff --git a/x11/libX11/patches/patch-ao b/x11/libX11/patches/patch-ao deleted file mode 100644 index f6a934cca99..00000000000 --- a/x11/libX11/patches/patch-ao +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ao,v 1.1 2008/07/24 01:07:31 bjs Exp $ - -Warning fix. - ---- src/xlibi18n/lcWrap.c.orig 2008-03-06 15:45:06.000000000 -0500 -+++ src/xlibi18n/lcWrap.c -@@ -154,7 +154,7 @@ _XlcDefaultMapModifiers( - #ifdef WIN32 - { - char *s; -- for (s = mods; s = strchr(s, '@'); s++) { -+ for (s = mods; (s = strchr(s, '@')); s++) { - for (s++; *s && *s != '='; s++) { - if (*s == '#') { - *s = '='; |