Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2011 15:24:56 +0400
From:      Test Rat <ttsestt@gmail.com>
To:        Michel Talon <talon@lpthe.jussieu.fr>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Time to mark portupgrade deprecated?
Message-ID:  <86zkjwhuyf.fsf@gmail.com>
In-Reply-To: <20110730110312.GA75209@lpthe.jussieu.fr> (Michel Talon's message of "Sat, 30 Jul 2011 13:03:12 %2B0200")
References:  <20110730110312.GA75209@lpthe.jussieu.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Michel Talon <talon@lpthe.jussieu.fr> writes:

> Chris Brennan wrote:
>
>> On 7/26/2011 3:28 PM, RW wrote:
>> > It seems more reasonable than the idea that most people using FreeBSD
>> > are doing so despite being "very unhappy with FreeBSD ports". If
>> > that's=
>> 
>> > really true then we should give Beastie nipple-clamps and a ball-gag
>> > to=
>> 
>> > better appeal to our key demographic.
>> > _______________________________________________
>> > freebsd-ports@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> > To unsubscribe, send any mail to
>> > "freebsd-ports-unsubscribe@freebsd.org=
>> "
>> 
>> +1 just because the thought of that is funny as hell!
>
> As a testimonial to the diabolical nature of FreeBSD yesterday i have
> installed a PC with FreeBSD-8.2 RELEASE, using the distributed packages
> (pkg_add -r). When installing gimp, something went south. After some
> checks it was avahi-app which refused to install, the reason being
> that pw groupadd -n avahi failed, with the message:
> "group disappeared during update"
[...]

Did you have nscd(8) running at the time? Try invalidating its cache.

%% an ugly hack
Index: usr.sbin/pw/pw_group.c
===================================================================
--- usr.sbin/pw/pw_group.c	(revision 224499)
+++ usr.sbin/pw/pw_group.c	(working copy)
@@ -266,7 +266,8 @@ pw_group(struct userconf * cnf, int mode, struct c
 			warn("group update");
 		return EX_IOERR;
 	}
 	/* grp may have been invalidated */
+	system("nscd -I group 2>/dev/null >&2");
 	if ((grp = GETGRNAM(a_name->val)) == NULL)
 		errx(EX_SOFTWARE, "group disappeared during update");
 
Index: usr.sbin/pw/pw_user.c
===================================================================
--- usr.sbin/pw/pw_user.c	(revision 224499)
+++ usr.sbin/pw/pw_user.c	(working copy)
@@ -729,6 +729,7 @@ pw_user(struct userconf * cnf, int mode, struct ca
 		editgroups(pwd->pw_name, cnf->groups);
 
 	/* go get a current version of pwd */
+	system("nscd -I user 2>/dev/null >&2");
 	pwd = GETPWNAM(a_name->val);
 	if (pwd == NULL) {
 		/* This will fail when we rename, so special case that */
%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zkjwhuyf.fsf>