Date: Mon, 29 May 2006 13:21:26 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: John-Mark Gurney <jmg@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/file magic.5 Message-ID: <20060529102126.GD44223@ip.net.ua> In-Reply-To: <200605280715.k4S7Fa1E083206@repoman.freebsd.org> References: <200605280715.k4S7Fa1E083206@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--zCKi3GIZzVBPywwA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi John-Mark, On Sun, May 28, 2006 at 07:15:36AM +0000, John-Mark Gurney wrote: > jmg 2006-05-28 07:15:36 UTC >=20 > FreeBSD src repository >=20 > Modified files: > usr.bin/file magic.5=20 > Log: [...] > compiling mgc on a big endian system (specificly tested sparc64) breaks, > using one from a little endian system works > =20 > Revision Changes Path > 1.24 +18 -0 src/usr.bin/file/magic.5 >=20 I have another experience from cross-build research. Namely, only a native endianness format of *.mgc file works. Just confirmed this on a freshly installed 6.1-RELEASE: : Script started on Mon May 29 13:01:57 2006 : sun# uname -sm : FreeBSD sparc64 : sun# file magic.mgc* : magic.mgc: magic binary file for file(1) cmd (version 2) (big endian) : magic.mgc_: magic binary file for file(1) cmd (version 2) (little endian) : sun# file /bin/sh : /bin/sh: ELF 64-bit MSB executable, SPARC V9, version 1 (FreeBSD), dynami= cally linked (uses shared libs), stripped : sun# mv magic.mgc magic.mgc~ : sun# mv magic.mgc_ magic.mgc : sun# file /bin/sh : /bin/sh: data, dynamically linked (uses shared libs), stripped : sun# file magic.mgc* : magic.mgc: magic binary file for file(1) cmd (version 33554432) (big end= ian) : magic.mgc~: JPEG 2000 image : sun# exit : exit :=20 : Script done on Mon May 29 13:02:49 2006 I.e., using a LE magic.mgc gives bullshit on a BE system. Can you please re-check? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --zCKi3GIZzVBPywwA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEessmqRfpzJluFF4RAtFyAKCGW9OjBsnkF0zoDbdgAMMmthiCzgCffRJS s5Gtnryzyta6G+Eb1+jX8Ng= =FFAs -----END PGP SIGNATURE----- --zCKi3GIZzVBPywwA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060529102126.GD44223>