From owner-freebsd-ports@FreeBSD.ORG Tue May 13 20:03:59 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 139B2797 for ; Tue, 13 May 2014 20:03:59 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8714B2A0F for ; Tue, 13 May 2014 20:03:57 +0000 (UTC) Received: from mandree.no-ip.org ([78.48.21.116]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MZCQ8-1WVvsA06Xs-00L1RL for ; Tue, 13 May 2014 22:03:50 +0200 Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id C178923CEED for ; Tue, 13 May 2014 22:03:45 +0200 (CEST) Message-ID: <53727AA1.8050201@gmx.de> Date: Tue, 13 May 2014 22:03:45 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: staging without root privileges References: <201405131718.s4DHISsC013859@mech-cluster241.men.bris.ac.uk> In-Reply-To: <201405131718.s4DHISsC013859@mech-cluster241.men.bris.ac.uk> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:plio3E287OJZk5CUf/ppAzactYmCqoLpxrg+IH+GF14hQ1XuwJ4 jzf1PR/qrt6/iC5WKDLslz3SL0Dl+tbVe0sCeeGbBzpNE7mjhEJZfj7V9xfLPL8N/NV+Flh OfDJQPmY+k/SOtNJDZNteD1N3nuG81Tg4QA0PMqNJuFEdPc5soZwc8iL/AoskSEw2HmLf4V PAe5sqGbtueFcDT4g8C7w== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 20:03:59 -0000 Am 13.05.2014 19:18, schrieb Anton Shterenlikht: > https://wiki.freebsd.org/ports/StageDir > says > > Make sure you tested make package as a normal user (not root). > > Does this refer specifically to the package target? build targets ("make all", "make stage", "make check-plist") and packaging ("make package"). > Or to all targets up to and including package? > > I'm asked for root passwd on make config, > and then I get an error on build: > > mkdir: /usr/ports/devel/robodoc/work: Permission denied > > which makes sense. Setting WRKDIRPREFIX to a directory you can write to can fix that, and PACKAGES specifies where the package should end up. PORT_DBDIR can be diverted to a directory so you can run even "make config" without root privileges. With that, and the distfiles already downloaded ("make checksum"), you should be able to build most ports without privileges. A few set NEED_ROOT, those won't do without...