From owner-freebsd-ports@FreeBSD.ORG Sat Jul 30 11:25:08 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 854A61065670 for ; Sat, 30 Jul 2011 11:25:08 +0000 (UTC) (envelope-from ttsestt@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 52F408FC08 for ; Sat, 30 Jul 2011 11:25:08 +0000 (UTC) Received: by pzk5 with SMTP id 5so23590565pzk.17 for ; Sat, 30 Jul 2011 04:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=PSBZkNRoNUzChRFwmYgm1ST5pKlhih5amlJFdBYJ7vc=; b=rgsdVGgNUSQ9ikKu+Ea5kNOGpQRjvsUd0RbE18dvXuDljJF3eVNC7fD+1iQzewse0P FIyZmZ39Z/petMOjUdzMxgMrukW9NXErXjUVylzvffsEcotUeDvLwdeOeXEijTzhFDcA aBJfuqLZqWUSWHk7Zzwew2D+plZvISlfnBty4= Received: by 10.68.2.196 with SMTP id 4mr4176976pbw.112.1312025108024; Sat, 30 Jul 2011 04:25:08 -0700 (PDT) Received: from localhost (saeed.torservers.net [72.46.129.45]) by mx.google.com with ESMTPS id k3sm1528066pbj.61.2011.07.30.04.25.04 (version=SSLv3 cipher=OTHER); Sat, 30 Jul 2011 04:25:06 -0700 (PDT) From: Test Rat To: Michel Talon References: <20110730110312.GA75209@lpthe.jussieu.fr> Date: Sat, 30 Jul 2011 15:24:56 +0400 In-Reply-To: <20110730110312.GA75209@lpthe.jussieu.fr> (Michel Talon's message of "Sat, 30 Jul 2011 13:03:12 +0200") Message-ID: <86zkjwhuyf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-ports@freebsd.org Subject: Re: Time to mark portupgrade deprecated? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2011 11:25:08 -0000 Michel Talon 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 */ %%