summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-09-24 20:00:14 +0000
committerjoerg <joerg@pkgsrc.org>2006-09-24 20:00:14 +0000
commit6ce30ae99d8a11c1381c156635a9a12ca7d963ef (patch)
treeb0dd945ad9bb9a0aa70fb16ab4e4dfbdceccafb0 /x11
parentff964681273e087ad44b4b92900e46c32230a335 (diff)
downloadpkgsrc-6ce30ae99d8a11c1381c156635a9a12ca7d963ef.tar.gz
Unbreak build on DragonFly and other systems without getpwuid_r
by just always using getpwuid. Since the applet is not threaded anyway, it doesn't make a difference. Bump revision. OK jmmv@
Diffstat (limited to 'x11')
-rw-r--r--x11/gnome2-control-center/Makefile4
-rw-r--r--x11/gnome2-control-center/distinfo3
-rw-r--r--x11/gnome2-control-center/patches/patch-ab26
3 files changed, 30 insertions, 3 deletions
diff --git a/x11/gnome2-control-center/Makefile b/x11/gnome2-control-center/Makefile
index 44d33bf56b2..9983ca0c8ec 100644
--- a/x11/gnome2-control-center/Makefile
+++ b/x11/gnome2-control-center/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.70 2006/09/16 12:20:32 jmmv Exp $
+# $NetBSD: Makefile,v 1.71 2006/09/24 20:00:14 joerg Exp $
#
DISTNAME= control-center-2.16.0
PKGNAME= gnome2-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/control-center/2.16/}
EXTRACT_SUFX= .tar.bz2
diff --git a/x11/gnome2-control-center/distinfo b/x11/gnome2-control-center/distinfo
index bb65a2cd30d..8e2774d3460 100644
--- a/x11/gnome2-control-center/distinfo
+++ b/x11/gnome2-control-center/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.28 2006/09/15 15:12:40 jmmv Exp $
+$NetBSD: distinfo,v 1.29 2006/09/24 20:00:14 joerg Exp $
SHA1 (control-center-2.16.0.tar.bz2) = c73e614c3ba287202ca12f19029f15bab293690b
RMD160 (control-center-2.16.0.tar.bz2) = 85c8d8de2d9643581c89f468e1714be049c375af
Size (control-center-2.16.0.tar.bz2) = 1986964 bytes
SHA1 (patch-aa) = 588d06dfbf0b2cb5e244058a5b80f75a0faa4e29
+SHA1 (patch-ab) = c0561975640562546f612e252a9d239d6dbc695b
SHA1 (patch-ad) = 15aeffd62733036840d402f1ed3a2f1a89c8945d
SHA1 (patch-af) = 50f179c3d2775f0a058d7644f6f9a0b958f4b531
diff --git a/x11/gnome2-control-center/patches/patch-ab b/x11/gnome2-control-center/patches/patch-ab
new file mode 100644
index 00000000000..0c10b142d99
--- /dev/null
+++ b/x11/gnome2-control-center/patches/patch-ab
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.5 2006/09/24 20:00:14 joerg Exp $
+
+--- capplets/about-me/gnome-about-me.c.orig 2006-09-24 20:42:14.000000000 +0000
++++ capplets/about-me/gnome-about-me.c
+@@ -267,16 +267,12 @@ static char *
+ get_user_login (void)
+ {
+ char buf[LINE_MAX * 4];
+- struct passwd pwd, *err;
++ struct passwd *pwd;
+
+- int i;
+-#if __sun
+- i = getpwuid_r (getuid (), &pwd, buf, sizeof (buf));
+- return (i != 0) ? g_strdup (pwd.pw_name) : NULL;
+-#else
+- i = getpwuid_r (getuid (), &pwd, buf, sizeof (buf), &err);
+- return ((i == 0) && (err == &pwd)) ? g_strdup (pwd.pw_name) : NULL;
+-#endif
++ pwd = getpwuid (getuid ());
++ if (pwd == NULL)
++ return NULL;
++ return g_strdup (pwd->pw_name);
+ }
+
+ /*