<div dir="ltr">Hi Subbu,<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 12, 2018 at 10:43 AM, K K Subbu <span dir="ltr"><<a href="mailto:kksubbu.ml@gmail.com" target="_blank">kksubbu.ml@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On Thursday 12 April 2018 08:21 PM, Eliot Miranda wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While we can't rely on a system having its file database up-to-date<br>
we can rely on our district containing a runnable version of<br>
ckformat.c.  So while what you say is v nice in an ideal world, I<br>
think we do need something like ckformat.c now we're on the cusp of a<br>
cleaving between the 32/64 compatibility world ushered in by x86_64.<br>
</blockquote>
<br></span>
Eliot,<br>
<br>
file(1) has been around since 1973 and many tools and package managers depend on it. Others VMs like Python etc. also use it. Squeak already has code to emit the magic file. Package managers could use it in their post-install script. The existing Debian package uses an outdated one so we may as well generate a supported version.<br>
<br>
file can also take the filename as an argument:<br>
<br>
 file -m /usr/local/lib/squeak/magic --mime blah.image<br>
<br>
Also customizing a magic file doesn't require a recompilation, so it definitely helps us in the 32/64 transition.<br></blockquote><div><br></div><div>OK, but we also have to deal with Mac OS X and Windows, and we have to work reliably no matter what the user's permissions are.  So if you pursue a file(1) based strategy please check on these other platforms.  For example, if it turns out that file(1) is not a viable option on Windows (which I think is the truth) then it might be less costly overall to use ckformat because it can be a cross-platform solution.</div><div><br></div><div>BTW I was altering the file database for BrouHaHa images back in the 80's.  I'm aware of file, use it often, and like it.  But that doesn't mean I think it is always appropriate.</div><div></div></div><div class="gmail_extra"><br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>