Opened 8 years ago

Closed 7 years ago

#109 closed defect (fixed)

Architecture is reported incorrectly in log

Reported by: Iritscen Owned by: Alloc
Priority: minor Component: AEI2
Keywords: Cc:

Description (last modified by Iritscen)

On a PPC Mac (G5), this is the beginning of aei_output.log:

AE Installer 2.25
Time: 2016-03-15 19:40:56
Java: "OpenJDK Runtime Environment" v. 1.7.0-internal by "Oracle Corporation" (spec. 1.7)
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.7.0/Home/jre
Command: /Applications/Oni/AE/AEInstaller/bin/AEInstaller2.jar
[...]
Platform: Darwin detected as MACOS
Architect: X86

This is the same output on my Intel iMac:

AE Installer 2.25
Time: 2016-03-16 10:48:57
Java: "Java(TM) SE Runtime Environment" v. 1.8.0_74 by "Oracle Corporation" (spec. 1.8)
Java home: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
Command: /Games/Oni/AE/AEInstaller/bin/AEInstaller2.jar
[...]
Platform: Mac OS X detected as MACOS
Architect: AMD64

I think you see the issues ;-)

Change History (4)

comment:1 Changed 8 years ago by Iritscen

  • Description modified (diff)

comment:2 Changed 8 years ago by Alloc

OSX crap ... shouldn't matter anyway, it's not really used on OSX. If you want it to be fixed get me a PPC Mac :P

comment:3 Changed 8 years ago by Iritscen

Now that I look at the code, it looks like you're just calling 32-bit machines "X86" and 64-bit "AMD64". I thought it would be useful to get some accurate recognition of Mac processors, including the ability to tell PPC from Intel.

Running "getconf LONG_BIT", as you do now, will return simply "32" or "64" on Macs, so if you want to actually know what kind of Mac we're on, here's some options.

"uname -m" will return:
Intel: "x86_64"
PPC: "Power Macintosh"

"arch" will return:
Intel: "i386"
PPC: "ppc"

"machine" will return more specific processor info:
2011 iMac: "i486"
G5: "ppc970"

(Source: My Intel iMac and my G5.)

Seems like "uname -m" is the best option for the command to run on the Mac side.

comment:4 Changed 7 years ago by alloc

  • Resolution set to fixed
  • Status changed from new to closed

In 1077:

Error: Processor CommitTicketReference failed
Unsupported version control system "svn": No module named svn
Note: See TracTickets for help on using tickets.