From owner-freebsd-current Mon Aug 13 23:54:16 2001 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id BE1B537B414; Mon, 13 Aug 2001 23:54:09 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f7E6s4Z71770; Tue, 14 Aug 2001 09:54:04 +0300 (EEST) (envelope-from ru) Date: Tue, 14 Aug 2001 09:54:04 +0300 From: Ruslan Ermilov To: "David O'Brien" Cc: Mark Peek , Bruce Evans , Warner Losh , current@FreeBSD.ORG Subject: Re: Cross builds and upgrade path from 4.x are broken in usr.bin/file Message-ID: <20010814095404.A71466@sunbay.com> Mail-Followup-To: David O'Brien , Mark Peek , Bruce Evans , Warner Losh , current@FreeBSD.ORG References: <20010810110151.B7988@sunbay.com> <20010810235643.Y23367-100000@besplex.bde.org> <20010810173751.B60193@sunbay.com> <20010810191407.A73485@sunbay.com> <20010810202300.A80439@sunbay.com> <20010813133015.A12153@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010813133015.A12153@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Mon, Aug 13, 2001 at 01:30:15PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Aug 13, 2001 at 01:30:15PM -0700, David O'Brien wrote: > On Fri, Aug 10, 2001 at 08:23:00PM +0300, Ruslan Ermilov wrote: > > > Your solution does not work. You're creating binary files in HOST > > > format during the build phase and expecting things such as alignment > > > and endianness to be the same as the TARGET format. Unless the tools > > > are built to output for either the appropriate architecture or in a > > > portable, binary format, you will have problems reading the file on > > > the TARGET platform. It probably works for you since you're doing a > > > 4.X->5.0 upgrade on the same platform. > > > > > What? ``file -C'' produces different output on Alpha and on i386? > > Are you sure? (Haven't checked myself.) > > They produce the same output, but in the general case they do not need > to. > What I hear? Hell, then my solution (or something similar) should be committed, as it at least unbreaks the 4.x -> 5.0 upgrade path, which I am mostly concerned about (on the same arch). (Currently, it is broken because ./file depends on libc.so.5 while in -STABLE it is still libc.so.4.) Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message