From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 18:39:48 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D25F9106566C for ; Thu, 21 Jul 2011 18:39:48 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 87D1F8FC0A for ; Thu, 21 Jul 2011 18:39:48 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id AEC43E6CBF; Thu, 21 Jul 2011 19:39:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=mail; bh=1CD760VfyPRl qq4pHp5JucZL6m8=; b=lZy0uFBmfv9HKiagBCoxBPl4LSOJYMCYfUJgbbSI8NYw +ADfNYfgrmY680Gf2fT1qtjYll4417fmd3TsF383SC+z1N86LcK5HL+W/2ffLhYy W3+v6sr/KBusp4Impp1wrJof3py+DoIviuC6oUlhA4SgUANwFAlpIcykuo4PZsw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mail; b=g62hcl Yl3TT92dLfqdHEn+AtwNNoXLJPPEctEuPYgM1W5Ske12zoT+A2cfh6QBSQStaHQc TfSBoKPkzx1cI8uGWKKPBroVDiVptbI/5eOxw+7rIoTPjmv0avQ+fi+PjqSGAcZk 1BHAYysAqYYUXbUpH+4gvPScVw0xb6fvUSKC0= Received: from [192.168.1.64] (188-222-18-231.zone13.bethere.co.uk [188.222.18.231]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 3D92CE6CBE; Thu, 21 Jul 2011 19:39:47 +0100 (BST) Message-ID: <4E287271.2050204@cran.org.uk> Date: Thu, 21 Jul 2011 19:39:45 +0100 From: Bruce Cran User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Daniel Staal References: <20110721100259.GA5326@external.screwed.box> <80674226c5ead62b213864dcd36b6a75.squirrel@www.magehandbook.com> <20110721153050.GA76083@external.screwed.box> <20110721175420.GF7553@external.screwed.box> <20110721182642.GG7553@external.screwed.box> <321f591217b15bbbb3b936fcfffd6c2f.squirrel@www.magehandbook.com> In-Reply-To: <321f591217b15bbbb3b936fcfffd6c2f.squirrel@www.magehandbook.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: build ports from not a root user? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 18:39:48 -0000 On 21/07/2011 19:31, Daniel Staal wrote: > On Thu, July 21, 2011 2:26 pm, Peter Vereshagin wrote: >> Oh Daniel want you buy me a mersedes benz? >> 2011/07/21 14:01:04 -0400 Daniel Staal => To >> freebsd-questions@freebsd.org : >> DS> Ok, then I've already answered your question several emails ago. The >> DS> ports system will do this automatically with a simple 'make', 'make >> DS> install', or 'make depends; make install'. And you said you knew >> about >> >> No it doesn't. >> >> 'all' target includes 'depends' target. >> 'depends' target includes performing 'make install' on the dependencies >> which >> I'd like to avoid. >> >> This can be avoided if a some tool like the portupgrade has did them >> already. >> It can do it that same way, too: build as a non-root user and then install >> as a >> root user. >> >> That way the 'make depends' can be done as a non-root user as it's a no-op >> additional check. > So you want to install software without installing it's dependencies > first? Or build software without installing it's build dependencies > first? The easiest way to build ports under a non-privileged user is probably to use portmaster (ports-mgmt/portmaster): it has a PM_SU_CMD which is normally set to /usr/local/bin/sudo which it uses whenever it needs to elevate to root. -- Bruce Cran