Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2009 09:36:23 -0500 (CDT)
From:      Scott Bennett <bennett@cs.niu.edu>
To:        freebsd-ports@freebsd.org
Subject:   cups build error needs warning placed into UPDATING
Message-ID:  <200907281436.n6SEaNJh027339@mp.cs.niu.edu>

next in thread | raw e-mail | index | archive | help
     I ran into a problem with the cups update build failing with the following
messages.

===>  Installing for cups-base-1.3.10_3
===>   Generating temporary packing list
===>  Checking if print/cups-base already installed
if ! pw groupshow cups; then pw groupadd cups -g 193; fi
pw: unknown group `cups'
pw: gid `193' has already been allocated
*** Error code 65

Stop in /usr/ports/print/cups-base.

===>>> A backup package for cups-base-1.3.10_2 should
       be located in /usr/ports/packages/portmaster-backup

===>>> Installation of cups-base-1.3.10_3 (print/cups-base) failed
===>>> Aborting update

===>>> Update for cups-base-1.3.10_2 failed
===>>> Aborting update


...and so forth.  After much experimentation and head-scratching, it finally
dawned on me that the problem was the result of having nscd(8) running and
with cacheing enabled for "group" accesses.  [eyeballs rolled...]  Killing
nscd and temporarily editing the "cache" operands out of the lines in
/etc/nsswitch.conf solved the problem upon rerunning portmaster.
     A warning about this ought to be in UPDATING, not only for cups, but
for any other builds and installs that alter any of the data typically cached
by nscd(8).  If these ports are being installed or updated, then nscd should
first be taken out of the picture.


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:       bennett at cs.niu.edu                              *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************



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