From owner-freebsd-ports@FreeBSD.ORG Thu May 19 21:45:36 2005 Return-Path: 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 B9C2116A4CF for ; Thu, 19 May 2005 21:45:36 +0000 (GMT) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [83.136.81.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B8B43DC5 for ; Thu, 19 May 2005 21:45:35 +0000 (GMT) (envelope-from lehmann@ans-netz.de) Received: (qmail 59735 invoked by uid 89); 19 May 2005 21:44:57 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (83.136.81.185) by avocado.salatschuessel.net with SMTP; 19 May 2005 21:44:57 -0000 Date: Thu, 19 May 2005 23:45:32 +0200 From: Oliver Lehmann To: Alfred Perlstein Message-Id: <20050519234532.76fbede0.lehmann@ans-netz.de> In-Reply-To: <20050519213551.GB46880@elvis.mu.org> References: <20050519213551.GB46880@elvis.mu.org> X-Mailer: Sylpheed version 1.9.11 (GTK+ 2.6.7; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: building/testing ports as non-root X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 21:45:36 -0000 Alfred Perlstein wrote: > How do people here usually test/build ports when they do not > have root on a box? > > I have this... > > any suggestions to make it better? > I'm using a mix of dirty hacks: oliver@freefall oliver> cat build_env #!/bin/csh setenv PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/home/oliver/root/ usr/X11R6/bin:/home/oliver/root/usr/local/bin setenv MAKEFLAGS "-m/home/oliver/root/usr/share/mk/`uname -r | cut -d'.' - f1` -DINSTALL_AS_USER" setenv MAKECONF /home/oliver/root/etc/make.conf setenv PKG_DBDIR /home/oliver/root/var/db/pkg ldconfig -if /home/oliver/root/ld-elf.so.hints /usr/lib /home/oliver/root/ usr/X11R6/lib /home/oliver/root/usr/local/lib oliver@freefall oliver> tail root/usr/share/mk/6/sys.mk LOCALBASE= ${HOME}/root/usr/local X11BASE= ${HOME}/root/usr/X11R6 #PREFIX?= ${LOCALBASE} DISTDIR= ${HOME}/root/usr/distfiles PORT_DBDIR= ${HOME}/root/var/db/ports PKG_DBDIR= ${HOME}/root/var/db/pkg WRKDIRPREFIX= ${HOME}/obj/${MACHINE}-${OSREL} INSTALL_AS_USER=yo LDCONFIG="${HOME}/root/ldconfig" oliver@freefall oliver> cat root/ldconfig /sbin/ldconfig -i -f /home/oliver/root/ld-elf.so.hints $* oliver@freefall oliver> grep 'OWN.*oliver' root/usr/share/mk/6/bsd.* root/usr/share/mk/6/bsd.own.mk:BINOWN?= oliver root/usr/share/mk/6/bsd.own.mk:SHAREOWN?= oliver then "source build_env" and start using the ports... some things truly can be sorted out from sys.mk into make.conf and so on but I just didn't wanted to spend more time in cleaning it up. -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/