Date: Mon, 1 Nov 2010 13:06:13 +0300 From: Eir Nym <eirnym@gmail.com> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-current@freebsd.org Subject: Re: having 'src' and 'obj' in some other place Message-ID: <AANLkTimSdVZwvTr1Fmgb6vxKL4u4WCkZqGwDXvhfE2Pi@mail.gmail.com> In-Reply-To: <20101031201551.GB1302@tiny.Sisis.de> References: <20101031201551.GB1302@tiny.Sisis.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 31 October 2010 23:15, Matthias Apitz <guru@unixarea.de> wrote: > > Hello, > > I compiled a 9-CURRENT from SVN but having it in a non default place, > in /home/guru/9-CURRENT/src. To compile kernel and world I set > MAKEOBJDIRPREFIX to /home/guru/9-CURRENT/obj and all went fine. Then I > installed kernel und world to the USB key using DESTDIR set to /mnt. > > Because the idea is to use the USB key for further installation a copied > the 'src' and 'obj' to it as well with: > > # cp -Rp /home/guru/9-CURRENT/src /mnt/usr > # cp -Rp /home/guru/9-CURRENT/obj /mnt/usr > > The USB key boots fine. From this USB key I now wanted to install the > system to a partitioned hard disk, again with something like: > > # cd /usr/src > # make installworld DESTDIR=3D/mnt > > where below /mnt now the file system of the disk was mounted. This failed > with messages about 'install: ... not found' and the way around was to > move /usr/src again on the USB key to a faked location of > /home/guru/9-CURRENT/src, and as well 'obj'. After this all went fine. > You can experiment with moving /usr/obj//home/guru/9-CURRENT/src to /usr/obj/usr/src > Question: Why is this so hardwired bound to the original location of > 'src' and 'obj'? > you can see /usr/share/mk/bsd.obj.mk for details. make(1) creates directory ${MAKEOBJDIRPREFIX}/${.CURDIR} . It is useful when you make world for yourself, do some development stuff with another things, etc. > Thanks > > =C2=A0 =C2=A0 =C2=A0 =C2=A0matthias > -- > Matthias Apitz > t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 > e <guru@unixarea.de> - w http://www.unixarea.de/ > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > I do installation with another method: On build server I make world, install it into some directory, and make cpio(1) archive to save file rights. Then I copy archive to usb and unpack it into new system. One more question for community: does cpio(1) archive format save file flags (see chflags(1))?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimSdVZwvTr1Fmgb6vxKL4u4WCkZqGwDXvhfE2Pi>