$OSTYPE
Quoted 5 lines · Jr.
Probably a stupid question but...
Why does 'echo $OSTYPE' give me 'mklinux' when I'm runnin LinuxPPC R4.1?
I think this is a problem of tcsh. It is not present in bash. It comes from the fact is that RedHat thinks the only linux on ppc is mklinux. You get VENDOR=apple, too.
Below is a patch for tcsh-6.08.00-5. I hope the linuxppc developers put something like this in R5. (Of course, the "vendor" could be left empty, giving "unknown", or be replaced by "BlueCat" or something similar).
--
Martin
--- /usr/src/redhat/BUILD/tcsh-6.08.00/host.defs.ori Sun May 9
17:03:05 1999
+++ /usr/src/redhat/BUILD/tcsh-6.08.00/host.defs Sun May 9
17:06:54 1999
@@ -438,13 +438,12 @@
hosttype: defined(M_i586) : "i586-linux" hosttype: defined(M_i486) : "i486-linux" hosttype: defined(M_i386) : "i386-linux" -ostype : !defined(PPC) : "linux" -ostype : defined(PPC) : "mklinux" +ostype : : "linux" machtype: defined(M_i586) : "i586" machtype: defined(M_i486) : "i486" machtype: defined(M_i386) : "i386" vendor : defined(__alpha) : "dec" -vendor : defined(PPC) : "apple" +vendor : defined(PPC) : "linuxppc" hosttype: defined(__alpha) : "alpha" hosttype: defined(PPC) : "powerpc" machtype: defined(__alpha) : "alpha"
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 3 lines · Martin Costabel
I think this is a problem of tcsh. It is not present in bash. It comes from the fact is that RedHat thinks the only linux on ppc is mklinux. You get VENDOR=apple, too.
Mostly applied :) (AMD and cyrix get labeled intel it looks like, so the non-apple pmacs and other ppcs can be called apple, unless someone has a better idea)
---
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 3 lines · Tom Rini
Mostly applied :) (AMD and cyrix get labeled intel it looks like, so the non-apple pmacs and other ppcs can be called apple, unless someone has a better idea)
I guess the intel-label of the AMD and Cyrix processors kind of resembles intel-compatibility or somthing like that...
So labeling all ppc-machines apple might not be such
a great idea, since it is not Apple alone who's behind the ppc..
How about labeling it aim? (Apple IBM Motorola)
However, that might be a bit confusing for those who doesn't know what it mean...
Just my suggestion though.
Regards,
Erik
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 10 lines · Erik Karlberg
Quoted 3 lines · Tom Rini
Mostly applied :) (AMD and cyrix get labeled intel it looks like, so the non-apple pmacs and other ppcs can be called apple, unless someone has a better idea)
I guess the intel-label of the AMD and Cyrix processors kind of resembles intel-compatibility or somthing like that...
So labeling all ppc-machines apple might not be such
a great idea, since it is not Apple alone who's behind the ppc..
Apple is the biggest "vendor" tho (of 6xx/7xx ppcs). It doesn't really matter as most config scripts are *-linux-gnu-* or so, so having OSTYPE mklinux would be bad (if a script should check that way).
Quoted 3 lines
How about labeling it aim? (Apple IBM Motorola)
However, that might be a bit confusing for those who doesn't know what it mean...
Exactly..
---
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]