pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/xorg-libs Update xorg-libs to 6.8.2nb6
details: https://anonhg.NetBSD.org/pkgsrc/rev/0f482eb447ce
branches: trunk
changeset: 505851:0f482eb447ce
user: abs <abs%pkgsrc.org@localhost>
date: Sun Jan 08 14:51:11 2006 +0000
description:
Update xorg-libs to 6.8.2nb6
If _POSIX_REENTRANT_FUNCTIONS on NetBSD is defined, use the correct
getpwnam_r() and gerpwuid_r() forms. This sidesteps the issue as to
whether _POSIX_REENTRANT_FUNCTIONS _should_ be defined on NetBSD.
diffstat:
x11/xorg-libs/Makefile | 4 ++--
x11/xorg-libs/distinfo | 4 ++--
x11/xorg-libs/patches/patch-bc | 30 ++++++++++++++++++++++++++----
3 files changed, 30 insertions(+), 8 deletions(-)
diffs (84 lines):
diff -r c8e945f22c19 -r 0f482eb447ce x11/xorg-libs/Makefile
--- a/x11/xorg-libs/Makefile Sun Jan 08 14:39:12 2006 +0000
+++ b/x11/xorg-libs/Makefile Sun Jan 08 14:51:11 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2005/12/12 19:52:17 joerg Exp $
+# $NetBSD: Makefile,v 1.29 2006/01/08 14:51:11 abs Exp $
DISTNAME= ${DISTFILES}
PKGNAME= xorg-libs-${XORG_VER}
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG}
DISTFILES= X11R${XORG_VER}-src1.tar.gz X11R${XORG_VER}-src2.tar.gz \
diff -r c8e945f22c19 -r 0f482eb447ce x11/xorg-libs/distinfo
--- a/x11/xorg-libs/distinfo Sun Jan 08 14:39:12 2006 +0000
+++ b/x11/xorg-libs/distinfo Sun Jan 08 14:51:11 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.25 2005/12/12 19:52:17 joerg Exp $
+$NetBSD: distinfo,v 1.26 2006/01/08 14:51:11 abs Exp $
SHA1 (X11R6.8.2-src1.tar.gz) = 23c60680274062a1db17f646a8388149309dc45c
RMD160 (X11R6.8.2-src1.tar.gz) = bb170d7a11416c3d9bd1d23d461ba4cea9b1b2c8
@@ -35,7 +35,7 @@
SHA1 (patch-az) = 3fc898c7c91037710b0fd27eff55ca8b55a19b4b
SHA1 (patch-ba) = 710acb72c80c38e52ba949053a9e43c72c0205f6
SHA1 (patch-bb) = 126e217b3bb0df8bb072f26f1575af9c610b9ba6
-SHA1 (patch-bc) = 04ccf6c3f718d31f6af3012bed7c7269b6393c4d
+SHA1 (patch-bc) = 6f2061570de06125fc556fb01c050bc51d9d3ddb
SHA1 (patch-bd) = f370cbbacbd9061f526f3a1d4924c55bd77559fb
SHA1 (patch-be) = 19573fbc5b27a6fd17366e51801ec5a84bd3a063
SHA1 (patch-bf) = 0661e6e787e57c865844c10ba27b381f525673b5
diff -r c8e945f22c19 -r 0f482eb447ce x11/xorg-libs/patches/patch-bc
--- a/x11/xorg-libs/patches/patch-bc Sun Jan 08 14:39:12 2006 +0000
+++ b/x11/xorg-libs/patches/patch-bc Sun Jan 08 14:51:11 2006 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-bc,v 1.2 2005/12/12 19:52:17 joerg Exp $
+$NetBSD: patch-bc,v 1.3 2006/01/08 14:51:11 abs Exp $
---- include/Xos_r.h.orig 2005-12-12 19:16:02.000000000 +0000
+--- include/Xos_r.h.orig 2004-04-23 19:43:05.000000000 +0100
+++ include/Xos_r.h
@@ -205,6 +205,9 @@ extern void XtProcessUnlock(
# undef _POSIX_THREAD_SAFE_FUNCTIONS
@@ -21,7 +21,29 @@
static __inline__ void _Xpw_copyPasswd(_Xgetpwparams p)
{
memcpy(&(p).pws, (p).pwp, sizeof(struct passwd));
-@@ -427,7 +430,7 @@ typedef int _Xgetservbynameparams; /* du
+@@ -335,7 +338,20 @@ typedef struct {
+ char pwbuf[X_LINE_MAX];
+ } _Xgetpwparams;
+ # if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4) || defined(Lynx)
+-# ifndef Lynx
++# if defined(__NetBSD__)
++static __inline__ struct passwd * _XGetpwuid(uid_t u, _Xgetpwparams p)
++{
++ struct passwd *pwp;
++ return (getpwuid_r(u, &p.pws, p.pwbuf, sizeof((p).pwbuf), &pwp) == -1)
++ ? NULL : &p.pws;
++}
++static __inline__ struct passwd * _XGetpwnam(const char *n, _Xgetpwparams p)
++{
++ struct passwd *pwp;
++ return (getpwnam_r(n, &p.pws, p.pwbuf, sizeof((p).pwbuf), &pwp) == -1)
++ ? NULL : &p.pws;
++}
++# elif !defined(Lynx)
+ # define _XGetpwuid(u,p) \
+ ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
+ # define _XGetpwnam(u,p) \
+@@ -427,7 +443,7 @@ typedef int _Xgetservbynameparams; /* du
/* UnixWare 2.0, or other systems with thread support but no _r API. */
/* WARNING: The h_addr_list and s_aliases values are *not* copied! */
@@ -30,7 +52,7 @@
#include <sys/param.h>
#endif
-@@ -652,6 +655,15 @@ extern int _Preaddir_r(DIR *, struct dir
+@@ -652,6 +668,15 @@ extern int _Preaddir_r(DIR *, struct dir
# elif defined(SVR4)
/* Pre-POSIX API, returns non-NULL on success. */
# define _XReaddir(d,p) (readdir_r((d), &(p).dir_entry))
Home |
Main Index |
Thread Index |
Old Index