On Sat, 14 Jan 2006, Randy McMurchy wrote:

And I suppose what is most interesting to me, though I haven't (and
probably never will) researched it, is if this file truly belongs in
/usr/share.

Is the file not architecture dependent? Can this same file be used
by all machines, no matter the platform? This is what /usr/share is
for. Otherwise, if the file does have architecture dependent settings
in it, then it belongs in /usr/lib.

 The magic and magic.mime files are common to all architectures.

The corresponding .mgc files are binaries, and parts of these are stored as little-endian or big-endian depending on the arch (text strings, and nulls, are the same). e.g. (ac30 is x86 (le), bassman is ppc (be) - sorry about the wide/wrapped lines)

[EMAIL PROTECTED] ~ $hexdump -C -n 256 /usr/share/file/magic.mgc
00000000 1c 04 1e f1 02 00 00 00 00 00 00 00 00 00 00 00 |...............| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000080 00 00 00 00 3d 00 0b 00 00 00 00 00 00 00 00 00 |....=...........| 00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000000a0 c5 c6 cb c3 00 00 00 00 00 00 00 00 00 00 00 00 |............| 000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000000c0 52 49 53 43 20 4f 53 20 43 68 75 6e 6b 20 64 61 |RISC OS Chunk da| 000000d0 74 61 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |ta..............| 000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000100

[EMAIL PROTECTED] ~ $hexdump -C -n 256 /usr/share/file/magic.mgc
00000000 f1 1e 04 1c 00 00 00 02 00 00 00 00 00 00 00 00 |...............| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000080 00 00 00 00 3d 00 0b 00 00 00 00 00 00 00 00 00 |....=...........| 00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000000a0 c3 cb c6 c5 00 00 00 00 00 00 00 00 00 00 00 00 |............| 000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000000c0 52 49 53 43 20 4f 53 20 43 68 75 6e 6b 20 64 61 |RISC OS Chunk da| 000000d0 74 61 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |ta..............| 000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000100

If upstream want to put all of these into the same directory, that's fine by me.

Ken
--
 das eine Mal als Trag?die, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to