* Christoph Biedl <debian.a...@manchmal.in-ulm.de>, 2014-02-19, 23:08:
Julien Cristau wrote...

libmagic1 is marked as Multi-Arch: same, but contains files in
arch-independent paths with arch-specific contents:

[libmagic1 5.11-1]
usr/share/file/magic.mgc
  19079b95bd25cdccb7c75a195f9124e4 amd64 i386 ia64 kfreebsd-i386 mipsel 
kfreebsd-amd64
  58949305b7a3447c076cd3bb9b781da1 s390 s390x powerpc
  5caecd544c5de1c13245bf7a2213868c armel armhf
  908d08ada60ae7e83d9b325762a98e88 mips sparc

FWIW, this compiled magic file is indeed arch dependend for endianess and signedness, hence four different versions exist.

In the current version (1:5.24-2) it looks like this:

a615063309a7d66e8c74fe9b3deb13ee mips powerpc s390x
beff8416bef9f21cc62c797d141f41fc amd64 arm64 armel armhf i386 mipsel ppc64el

So the variation in signedness (which I think was a bug) is gone.

As I understand it, file is able to read magic.mgc of foreign endianness; perhaps it could be taught to also produce files in foreign endianness? Then we could just always build little-endian magic.mgc.

--
Jakub Wilk

Reply via email to