Date: Tue, 14 Feb 2006 13:11:55 +0100 From: Alexander Leidinger <Alexander@Leidinger.net> To: Robert Backhaus <robbak@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Port installation without root access Message-ID: <20060214131155.mfzp0qv284g0k8w8@netchild.homeip.net> In-Reply-To: <d4499580602131944p4a8ee253l322e8fa0f8a06ce@mail.gmail.com> References: <43F103B4.6080601@vonostingroup.com> <1386.201.155.124.120.1139882008.squirrel@webmail.i13i.com> <43F1498F.3040107@vonostingroup.com> <d4499580602131944p4a8ee253l322e8fa0f8a06ce@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Robert Backhaus <robbak@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060214131155.mfzp0qv284g0k8w8>