Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2014 10:47:23 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Ross Penner <rossp@f-m.fm>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: net-im/prosody post install error
Message-ID:  <CACdU%2Bf-W=DAuokQEP7hFmjX_3OHuhwDcxknahK6H4RDV6YetKQ@mail.gmail.com>
In-Reply-To: <1394852101.4088.94721153.6A3EC0B2@webmail.messagingengine.com>
References:  <1394852101.4088.94721153.6A3EC0B2@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 14, 2014 at 9:55 PM, Ross Penner <rossp@f-m.fm> wrote:
> When I try to build prosody (on FreeBSD 9.2-RELEASE-p3), I get the
> following error once it gets to the installation phase. The error
> references already having a prosody user and group. They were created
> the first time I tried to install and this message is from my second
> attempt.
>
> ===>  Installing for prosody-0.9.3
> /bin/sh /usr/ports/net-im/prosody/work/pkg-install prosody-0.9.3
> PRE-INSTALL
> prosody:*:242:
> You already have a group "prosody", so I will use it.
> pw: user 'prosody' already exists
> Adding user "prosody" failed...
> *** [pre-install] Error code 1
>
>
> Thanks for any help or insight you can provide.

The pkg-install script should be detecting the user, what does the
following command show?

/usr/sbin/pw user show prosody ; echo $?

On my system with no prosody user it returns with:

pw: no such user `prosody`
67

It should return with a value of zero, when the port is installed:

# /usr/sbin/pw user show prosody ; echo $?
prosody:*:242:1::0:0:Prosody XMMP Server:/nonexistent:/usr/sbin/nologin
0

I have tried installing/deinstalling/re-installing the port, and don't
get the prosody user already exists error.

-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf-W=DAuokQEP7hFmjX_3OHuhwDcxknahK6H4RDV6YetKQ>