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