#1504: config/auto/arch.pm: Uninitialized value warning on Darwin due to change
in order of configuration steps
-----------------------+----------------------------------------------------
Reporter: jkeenan | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: configure | Version: 2.1.0
Severity: medium | Keywords: configure byteorder arch
Lang: | Patch:
Platform: darwin |
-----------------------+----------------------------------------------------
Comment(by jkeenan):
Replying to [comment:4 doughera]:
> The simplest fix is probably to see if there is some other way to get
the
> cpu type under darwin. It may be that "uname -p" or "uname -m" works
> well. I don't think the intended use of $cpuarch is actually defined
> carefully anywhere, so it's hard to say what's a "right" or "wrong"
answer
> anyway.
Currently, on Darwin/PPC, the value that gets assigned to `cpuname` by the
time ''lib/Parrot/Config/Generated.pm'' is written is: `ppc`.
Here's what I get for relevant variations on `uname`:
{{{
[jimk] 501 $ uname -m
Power Macintosh
[jimk] 502 $ uname -p
powerpc
}}}
So we'd have to provide some mapping to get back to `ppc`. That wouldn't
be very difficult.
dukeleto: What do you get on Darwin/i386 for this?
And what does anybody on a 64-bit Mac get?
Thanks.
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1504#comment:6>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets