file not recognizing MP3 files?

Rainer Müller raimue at macports.org
Tue Mar 1 02:05:18 PST 2011


On 2011-03-01 03:47 , Arno Hautala wrote:
> and annoyingly:
>> $ /opt/local/bin/file /usr/bin/file /opt/local/bin/file
>> /usr/bin/file:       Mach-O fat file with 2 architectures
>> /opt/local/bin/file: Mach-O fat file with 2 architectures

Interesting, I get different results:

$ port -q installed file
  file @5.05_0 (active)
$ /opt/local/bin/file --version
file-5.05
magic file from /opt/local/share/misc/magic

$ /usr/bin/file /usr/bin/file /opt/local/bin/file
/usr/bin/file:       Mach-O universal binary with 2 architectures
/usr/bin/file (for architecture x86_64):        Mach-O 64-bit executable
x86_64
/usr/bin/file (for architecture i386):  Mach-O executable i386
/opt/local/bin/file: Mach-O 64-bit executable x86_64
$ /opt/local/bin/file /usr/bin/file /opt/local/bin/file
/usr/bin/file:       Mach-O fat file with 2 architectures
/opt/local/bin/file: data


The sources for the Apple provided file command is here:
http://opensource.apple.com/source/file/file-39/

Would someone care to compare the sources and magic file?

Rainer


More information about the macports-users mailing list