Time to mark portupgrade deprecated?

Test Rat ttsestt at gmail.com
Sat Jul 30 11:25:08 UTC 2011


Michel Talon <talon at 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 at freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
>> > To unsubscribe, send any mail to
>> > "freebsd-ports-unsubscribe at 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 */
%%


More information about the freebsd-ports mailing list