看板 DFBSD_kernel 關於我們 聯絡資訊
On Sat, 9 Apr 2005 20:24:08 +0900 YONETANI Tomokazu <qhwt+dfly@les.ath.cx> wrote: > On Fri, Apr 08, 2005 at 08:29:24PM -0700, Chris Pressey wrote: > > This worked for me: > > > > env MAKEOBJDIRPREFIX=/home/cpressey/root/usr/obj make buildworld > > > > Haven't figured out how to make a fake, as-non-root-user installworld > > happen yet, though. This mess: > > > > env MAKEOBJDIRPREFIX=/home/cpressey/root/usr/obj make \ > > SHAREOWN=cpressey SHAREGRP=2011 \ > > INSTALL="sh `pwd`/tools/install.sh" \ > > DESTDIR=/home/cpressey/root installworld > > > > gets me as far as I have gotten so far, but it chokes on trying to use > > "install-info" from within lib/libcom_err/doc, which (presumably) fails > > while trying to chgrp and chown what it's installing, as a normal user > > (me.) > > Ok, update src/tools/install.sh to 1.4 and try the following: > $ me=`id -nu`; us=`id -gn`; root=$HOME/root > $ env - \ > __MAKE_CONF=/dev/null \ > MAKEOBJDIRPREFIX=$root/usr/obj \ > KERNCONFDIR=/where/you/keep/config/files \ > KERNCONF=YOURCONFIG \ > make buildworld buildkernel > > $ env - \ > __MAKE_CONF=/dev/null \ > DESTDIR=$root \ > MAKEOBJDIRPREFIX=$root/usr/obj \ > KERNCONFDIR=/where/you/keep/config/files \ > KERNCONF=YOURCONFIG \ > INSTALL="sh `pwd`/tools/install.sh" \ > BINOWN=$me BINGRP=$us SHAREOWN=$me SHAREGRP=$us \ > make installworld installkernel Works like a charm, thanks! I'll note this on the wiki shortly. -Chris