[csw-maintainers] Determining the architecture of a binary

Maciej (Matchek) Blizinski maciej at opencsw.org
Mon Jan 18 10:10:45 CET 2010


On Sun, Jan 17, 2010 at 8:30 PM, Dagobert Michelsen <dam at opencsw.org> wrote:
> Hi Maciej,
>
> Am 13.01.2010 um 11:37 schrieb Maciej (Matchek) Blizinski:
>>
>> We don't have our own, up-to-date file (or gfile), do we?
>
> There doesn't seem to be a "GNU File" command, but I have packaged
> the latest one from
>  http://www.darwinsys.com/file/
> which seems pretty good in testing:
>
> file-5.03,REV=2010.01.17-SunOS5.8-sparc-CSW.pkg.gz
> file-5.03,REV=2010.01.17-SunOS5.8-i386-CSW.pkg.gz

Cool, that's the one.  Thanks!

I won't be relying on it for the architecture detection, though.  I've
found hachoir, a Python library which parses files and returns a data
structure with all the data, similar to elfdump, but I won't have to
parse the text output.



More information about the maintainers mailing list