From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54532 Path: news.gmane.org!not-for-mail From: Arthur Reutenauer Newsgroups: gmane.comp.tex.context Subject: Re: osx-64-binaries/minimals Date: Thu, 19 Nov 2009 09:53:22 +0100 Message-ID: <20091119085322.GK24920@phare.normalesup.org> References: <4B007D89.5030409@gmail.com> <6faad9f00911180449u2e0a8d67q9c2df00b0072afb3@mail.gmail.com> <6faad9f00911181718u49aa2046s76ff644149a4a84a@mail.gmail.com> <4B04ECE9.3060201@elvenkind.com> <6faad9f00911190043k6a3c047dh2bfddba61b1ddaef@mail.gmail.com> Reply-To: Mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258620824 32041 80.91.229.12 (19 Nov 2009 08:53:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 08:53:44 +0000 (UTC) To: Mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 19 09:53:37 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NB2le-0001Di-W1 for gctc-ntg-context-518@m.gmane.org; Thu, 19 Nov 2009 09:53:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 527A3C9AB7; Thu, 19 Nov 2009 09:51:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pAZ38-SnPTBq; Thu, 19 Nov 2009 09:51:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90623C9AC1; Thu, 19 Nov 2009 09:50:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5FF29C9AC1 for ; Thu, 19 Nov 2009 09:50:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o4cGi9cvZ-C6 for ; Thu, 19 Nov 2009 09:50:56 +0100 (CET) Original-Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by balder.ntg.nl (Postfix) with ESMTP id 1A9E4C9A9C for ; Thu, 19 Nov 2009 09:50:55 +0100 (CET) Original-Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id nAJ8rM7i069691 for ; Thu, 19 Nov 2009 09:53:22 +0100 (CET) X-Envelope-To: Original-Received: by phare.normalesup.org (Postfix, from userid 1008) id 15A02BC0A1; Thu, 19 Nov 2009 09:53:22 +0100 (CET) Content-Disposition: inline In-Reply-To: <6faad9f00911190043k6a3c047dh2bfddba61b1ddaef@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Thu, 19 Nov 2009 09:53:22 +0100 (CET) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54532 Archived-At: > But I have no idea if there is some simple way to hardcode the target > architecture into LuaTeX itself. You could check the first few bytes of the LuaTeX binary itself, it has to tell you something about the architecture it was compiled for. That's what file uses in most cases anyway (the "magic numbers"). By compiling a stupid C program on both 10.5 and 10.6, I see that the first 16 bytes of the executable are, respectively: 10.5: cefa edfe 0700 0000 0300 0000 0200 0000 10.6: cffa edfe 0700 0001 0300 0080 0200 0000 Arthur ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________