Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2007 16:00:54 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Roar Pettersen <roar.pettersen@uib.no>
Cc:        ports@FreeBSD.org
Subject:   Re: cricket-1.0.5_4
Message-ID:  <20070615230054.GA88372@eos.sc1.parodius.com>
In-Reply-To: <Pine.SOC.4.64.0706152238540.16506@alf.uib.no>
References:  <Pine.SOC.4.64.0706152238540.16506@alf.uib.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 15, 2007 at 10:40:27PM +0200, Roar Pettersen wrote:
>  Hi !
>  I'm trying to compile Cricket, but I get this error message :
>  server:/usr/ports/net-mgmt/cricket# make
>  ===>  cricket-1.0.5_4 uses a UID registered to another port.
>  *** Error code 1
> 
>  Can anybody look into this problem ?

Did you remove the IGNORE line from the Makefile?  It looks like you may
have.  The IGNORE line explicitly states what the problem is; you
shouldn't be able to build the port if IGNORE is set to non-null.

IGNORE=         uses a UID registered to another port

And the UID is:

CRICKET_USER?=  wwwadm
CRICKET_UID?=   81
CRICKET_GROUP?= www
CRICKET_GID?=   80

$ grep wwwadm /usr/ports/UIDs
$ grep :8[01]: /usr/ports/UIDs
www:*:80:80:World Wide Web Owner:/nonexistent:/sbin/nologin
alias:*:81:81:QMail user:/var/qmail/alias:/nonexistent
qmaild:*:82:81:QMail user:/var/qmail:/nonexistent
qmaill:*:83:81:QMail user:/var/qmail:/nonexistent
qmailp:*:84:81:QMail user:/var/qmail:/nonexistent

UID 81 is reserved for qmail, which is obviously not what the port
should be trying to use.  GID 80 is used by Apache and friends, although
if I remember right, the cricket user ends up having its default GID set
to the same group as what Apache runs as, so CGIs and other whatnots
have the ability to access cricket-specific files.

As a workaround, you could try setting CRICKET_UID=999 in make.conf or
during make time.  This UID isn't listed in ports/UIDs, but may become
so in the future.

In general, yes, this port needs to have a UID added to UIDs and
should utilise that.

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |




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