From owner-freebsd-ports@FreeBSD.ORG Tue Feb 14 12:11:59 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B006716A420 for ; Tue, 14 Feb 2006 12:11:59 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id E047043D48 for ; Tue, 14 Feb 2006 12:11:58 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D4F5.dip.t-dialin.net [84.165.212.245]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id k1EBxom2036519; Tue, 14 Feb 2006 12:59:51 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id k1ECBuXq067745; Tue, 14 Feb 2006 13:11:56 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 14 Feb 2006 13:11:55 +0100 Message-ID: <20060214131155.mfzp0qv284g0k8w8@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 14 Feb 2006 13:11:55 +0100 From: Alexander Leidinger To: Robert Backhaus References: <43F103B4.6080601@vonostingroup.com> <1386.201.155.124.120.1139882008.squirrel@webmail.i13i.com> <43F1498F.3040107@vonostingroup.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-ports@freebsd.org Subject: Re: Port installation without root access X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 12:11:59 -0000 Robert Backhaus wrote: > It does make sense to install ports into, say, ~/local . I can see > three things that you need: Wrtie access to the distfiles directory, DISTDIR=/a/dir/with/write/access/for/downloads > (if you need to fetch), PREFIX set, and MAKEOBJDIR set to somewhere You need to set WKRDIRPREFIX, not MAKEOBJDIR. > spacious and writeable. You also need to change PKG_DBDIR, and in case you install perl modules you need to set PERL5LIB too. Additionally INSTALL_AS_USER needs to be defined in make.conf or on the command line. > My limited experience is that this works, at least for the trivial > ports for which user installation makes sense. Unless - Do ports > recognise libraries/dependencies installed to /usr/local if PREFIX is > altered? Yes, they do. But you will get into trouble when you try to install autoconf as an user. It hardcodes the path to gm4 to /usr/local/bin, so this will not work out of the box ATM. Another problem is that any dependency to autoconf259 will be absolute to LOCALBASE. So if it is installed in a different prefix, it will always try to build it. The next problem are LIB_DEPENDS. You need a hacked ldconfig, the base system one doesn't like non-root owned directories (there's another problem with ldconfig, it tries to write to a place where an ordinary user has no write access). Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Why doesn't everybody leave everybody else the hell alone? -- Jimmy Durante