From owner-freebsd-current@FreeBSD.ORG Mon Nov 1 10:32:06 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF75A1065673 for ; Mon, 1 Nov 2010 10:32:06 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3C6D68FC1A for ; Mon, 1 Nov 2010 10:32:05 +0000 (UTC) Received: by bwz3 with SMTP id 3so4382763bwz.13 for ; Mon, 01 Nov 2010 03:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=vZEKy/H95sXfIGKwMSCkq+oD//sMHNWNBuMsurddPqQ=; b=ZrHf3BhODe7F3YA+RoLmZ39VO4+wQLqlS1ad4M4XthCL1edJChoMk3Wq5jwWO3XaIj IqMc6MFpRWNYr3p7gs1FdBpDeaON5tsMKoiawwnWvU4W+qtTbeMFi4l39kstFqtNp1Kw wgco6hZ5kHFhDklgHxzUw5jqZTGZrg3i+MJIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=OJ06J+sZyOV3eVYynEPqAWMNZ3b86tJnF+X+pVusJdNwwnWtrahsVyt50RSJqBaN/B 34gLIkYmTy7YYkqOOuzGZastk/5q7AKWDAkxA1EC2QRWwUGGUyOQ7By3im/9rZt7w8WD GOoSDmCdH23lj9NYe+I1Kq1Zr1GxESZXSXYvc= Received: by 10.204.52.7 with SMTP id f7mr4786732bkg.190.1288605993714; Mon, 01 Nov 2010 03:06:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.18.16 with HTTP; Mon, 1 Nov 2010 03:06:13 -0700 (PDT) In-Reply-To: <20101031201551.GB1302@tiny.Sisis.de> References: <20101031201551.GB1302@tiny.Sisis.de> From: Eir Nym Date: Mon, 1 Nov 2010 13:06:13 +0300 Message-ID: To: Matthias Apitz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: having 'src' and 'obj' in some other place X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 10:32:06 -0000 On 31 October 2010 23:15, Matthias Apitz 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 - 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))?