From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54493 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: osx-64-binaries/minimals Date: Wed, 18 Nov 2009 07:31:52 +0100 Message-ID: <4B0394D8.8010005@elvenkind.com> References: <4B007D89.5030409@gmail.com> <6faad9f00911170705u1065281fme0c358483e24aba7@mail.gmail.com> <4B02C4EB.3050800@wxs.nl> <4B02CC4B.7050809@elvenkind.com> <6faad9f00911170833ge8e6452hed23722d2c982fe3@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258525940 14640 80.91.229.12 (18 Nov 2009 06:32:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Nov 2009 06:32:20 +0000 (UTC) Cc: Yue Wang To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 18 07:32:13 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 1NAe5L-0003wY-O6 for gctc-ntg-context-518@m.gmane.org; Wed, 18 Nov 2009 07:32:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0CD87C9AC7; Wed, 18 Nov 2009 07:29:44 +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 YdBRv+ctJTgx; Wed, 18 Nov 2009 07:29:39 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71C33C9AAA; Wed, 18 Nov 2009 07:29:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4358CC9A9C for ; Wed, 18 Nov 2009 07:29:35 +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 jy9DT-wlbQrd for ; Wed, 18 Nov 2009 07:29:31 +0100 (CET) Original-Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by balder.ntg.nl (Postfix) with ESMTP id 37823C9A8A for ; Wed, 18 Nov 2009 07:29:31 +0100 (CET) Original-Received: from [192.168.178.26] (boo.demon.nl [82.161.175.147]) (authenticated bits=0) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id nAI6VqDG025172; Wed, 18 Nov 2009 07:31:53 +0100 (CET) (envelope-from taco@elvenkind.com) User-Agent: Thunderbird 2.0.0.21 (X11/20090330) In-Reply-To: <6faad9f00911170833ge8e6452hed23722d2c982fe3@mail.gmail.com> X-Virus-Scanned: by XS4ALL Virus Scanner 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:54493 Archived-At: Mojca Miklavec wrote: >>>>> The software test: >>>>> Yue:context yue$ if test `uname -r|cut -f1 -d"."` -ge 10 ; then >>>>> echo yes; else echo no; fi >>>>> yes >>> hm, we need to use the methods built in luatex >> Someone should check what is returned in the os.uname() return table. > > Mine returns > > t={ > ["machine"]="x86_64", > ["nodename"]="...[my ip]...", > ["release"]="10.0.0", > ["sysname"]="Darwin", > ["version"]="Darwin Kernel Version 10.0.0: Fri Jul 31 22:46:25 PDT > 2009; root:xnu-1456.1.25~1/RELEASE_X86_64", > } > > but I'm booting in 64-bit mode (I need to reboot first to check for > return value in 32-bit mode). > > On one hand uname doesn't return anything usable when booting with > 32-bit kernel, but on the other hand one probably already runs the > 64-bit luatex at the time when mtxrun needs to determine the > architecture. Well, I doubt you can discover whether you have a totally 32bit software environment with a 64bit kernel without lots of trickery (but I could be wrong about that). In any case, os.uname() will give the same results as the shell command uname. 64bit osx runs 32bit executables (I assume) so you could make the initial luatex (the one used during install) be a 32bit one, then make that one decide on which one to use for normal typesetting? Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________