Building/installing world/kernel on leaf [was Re: HEAD broken at

看板DFBSD_kernel作者時間21年前 (2005/04/12 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #12MkMM00 (DFBSD_kernel)