From owner-freebsd-ports@FreeBSD.ORG Mon Mar 31 21:14:05 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1E5CA119 for ; Mon, 31 Mar 2014 21:14:05 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD7957E3 for ; Mon, 31 Mar 2014 21:14:04 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 9F56B204F9; Mon, 31 Mar 2014 17:13:57 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute4.internal (MEProxy); Mon, 31 Mar 2014 17:13:57 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=f-m.fm; h= message-id:from:to:cc:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= vXPzbGbED8cWw1JREB6euVyICLY=; b=f+D1YRupd9QRdr2iyDRFR5RrI9l8clFe htdXEiWPkqG+Ni2uMOU5VxhyOXZ2f1qrc/xXl1vG/MPiUNOtlpPdVyT/wthbE5se NHzg9tJbRjuXvQ4IWm0pAEmJri9q4n9rZKI3Cl8pZ3Ll3iJ/k/zsPnu6lyzJQ84j eqtCFk+nBGA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=vXPzbGbED8cWw1JREB6euVyICLY=; b=gTS mNaX/qx8mz/rJSIhz+rM7NshjiMCz5X8zGZAoPtJQzilcYOe4Hn4r+J9XtWvnRhE uJywvMPAYS2+dxKomU5AGFXzI6MiIP8BM8N3ofTfF5k8gtwYHbQfC7zQXtd1Bhjx oqX5pnpbl0eQ85rtkH1XwbEj79NDn+WoUOFaK0Dc= Received: by web4.nyi.mail.srv.osa (Postfix, from userid 99) id 730F5100284; Mon, 31 Mar 2014 17:13:57 -0400 (EDT) Message-Id: <1396300437.13593.101149621.7585F27C@webmail.messagingengine.com> X-Sasl-Enc: 9O/LlkfEZfZgQhQ8Uzn1rm0RgyrhuMsqFg7E0M39lEbV 1396300437 From: Ross Penner To: Scot Hetzel MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-8832fc58 In-Reply-To: References: <1394852101.4088.94721153.6A3EC0B2@webmail.messagingengine.com> Subject: Re: net-im/prosody post install error Date: Mon, 31 Mar 2014 14:13:57 -0700 Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2014 21:14:05 -0000 On Sat, 15 Mar 2014, at 08:47 AM, Scot Hetzel wrote: > On Fri, Mar 14, 2014 at 9:55 PM, Ross Penner 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. > ok, so I run "/usr/sbin/pw user show prosody ; echo $?" and I get the same error you do on your system with no user. When I look at /etc/passwd, the prosody user is there: prosody:*:242:1:Prosody XMPP Server:/nonexistent:/usr/sbin/nologin Also, when I try to remove the prosody user, it fails: # pw userdel -n prosody pw: no such user `prosody'