All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Costabel <costabel@wanadoo.fr>
To: linuxppc-user@lists.linuxppc.org
Cc: "Charles E. Leiserson, Jr." <locutus@MIT.EDU>,
	linuxppc-dev@lists.linuxppc.org
Subject: Re: $OSTYPE
Date: Sun, 09 May 1999 17:37:53 +0200	[thread overview]
Message-ID: <3735ABD1.6CD838E@wanadoo.fr> (raw)


On Mon, 03 May 1999, "Charles E. Leiserson, Jr." <locutus@MIT.EDU>
wrote:

> 
> 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.   ]]

             reply	other threads:[~1999-05-09 15:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-09 15:37 Martin Costabel [this message]
1999-05-09 16:29 ` $OSTYPE Tom Rini
1999-05-09 18:02   ` $OSTYPE Erik Karlberg
1999-05-09 19:24     ` $OSTYPE Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
1999-05-09 19:27 $OSTYPE Andrew Weiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3735ABD1.6CD838E@wanadoo.fr \
    --to=costabel@wanadoo.fr \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=linuxppc-user@lists.linuxppc.org \
    --cc=locutus@MIT.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.