From owner-freebsd-stable Sun Nov 3 15: 6:31 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E331637B401 for ; Sun, 3 Nov 2002 15:06:29 -0800 (PST) Received: from c18609.belrs1.nsw.optusnet.com.au (c18609.belrs1.nsw.optusnet.com.au [210.49.80.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9AAD43E88 for ; Sun, 3 Nov 2002 15:06:28 -0800 (PST) (envelope-from peterjeremy@optushome.com.au) Received: from server.c18609.belrs1.nsw.optusnet.com.au (localhost.c18609.belrs1.nsw.optusnet.com.au [127.0.0.1]) by server.c18609.belrs1.nsw.optusnet.com.au (8.12.6/8.12.6) with ESMTP id gA3N6QZB001253; Mon, 4 Nov 2002 10:06:27 +1100 (EST) (envelope-from peter@server.c18609.belrs1.nsw.optusnet.com.au) Received: (from peter@localhost) by server.c18609.belrs1.nsw.optusnet.com.au (8.12.6/8.12.6/Submit) id gA3N6QTj001252; Mon, 4 Nov 2002 10:06:26 +1100 (EST) Date: Mon, 4 Nov 2002 10:06:26 +1100 From: Peter Jeremy To: Jake Burkholder Cc: freebsd-stable@FreeBSD.ORG Subject: Re: installworld from a cross-buildworld Message-ID: <20021103230626.GA1093@server.c18609.belrs1.nsw.optusnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021103171945.M22677@locore.ca> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 03, 2002 at 05:19:46PM -0500, Jake Burkholder wrote: >Apparently, On Mon, Nov 04, 2002 at 08:28:10AM +1100, > Peter Jeremy said words to the effect of; > >> I have a fast x86 machine and a slow Alpha so I'd like to be able to >> do the Alpha buildworlds on the x86 and then install via NFS. ... >The only way I've found to do this is to nfs mount the filesystems of >the target machine on the build machine and do the installworld with >DESTDIR=/path/to/nfs/mount. ie: > > make buildworld TARGET_ARCH=sparc64 > mount sparc64:/ /mnt (etc) > make installworld TARGET_ARCH=sparc64 DESTDIR=/mnt I just tried this. It fails because NFS doesn't support flags: asv400# ls -lo /usr/lib/libcrypt.so.2 -r--r--r-- 1 root wheel schg 47202 Nov 4 09:29 /usr/lib/libcrypt.so.2 asv400# server# ls -lo /mnt/usr/lib/libcrypt.so.2 -r--r--r-- 1 root wheel - 47202 Nov 4 09:29 /mnt/usr/lib/libcrypt.so.2 server# install -s -o root -g wheel -m 444 -fschg /usr/obj/alpha/home/src4/lib/libcrypt/libcrypt.so.2 /mnt/usr/lib install: /mnt/usr/lib/libcrypt.so.2: Permission denied server# Even if I remove the schg flag on the Alpha, I can't set it from the x86 box: server# install -o root -g wheel -m 444 -fschg /usr/obj/alpha/home/src4/lib/libcrypt/libcrypt.so.2 /mnt/usr/lib install: /mnt/usr/lib/libcrypt.so.2: chflags: Operation not supported server# I can't see anything obvious in mount_nfs(8) and I've tried both NFSv2 and NFSv3 on the off-chance that one would work. I've even tried studying the source - which includes the following in both -stable and -current: nfs_setattr(struct vop_setattr_args *ap) { ... /* * Setting of flags is not supported. */ if (vap->va_flags != VNOVAL) return (EOPNOTSUPP); ... What's your trick to bypass this? >You really don't want to forget to set DESTDIR when doing this. That would definitely cause problems :-(. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message