zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Zefram <zefram@fysh.org>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: 3.1.6-dev-20: runtime determination of MACHTYPE
Date: Sun, 26 Mar 2000 13:58:44 -0500	[thread overview]
Message-ID: <20000326135844.A15544@scowler.net> (raw)
In-Reply-To: <E12ZCqn-0002of-00@crucigera.fysh.org>; from zefram@fysh.org on Sun, Mar 26, 2000 at 02:13:05PM +0100

> It's not that easy.  Look at config.guess: $MACHTYPE is not always
> the same as `uname -m`.  Leave $MACHTYPE being compiled in as it was.
> If you want access to the runtime uname strings without forking off a
> uname process, invent a new special parameter.

The behavior of config.guess is a bit inconsistent, and this description
is a little vague.

       MACHTYPE
              The machine type (microprocessor class  or  machine
              model), as determined at compile time.


What was the original purpose of the parameter?  Seems to me that
`uname -m`, `uname -p`, and the output of arch(1) are often a stretch
from what one might infer from their descriptions, anyway, not to
mention inconsistent, but if MACHTYPE is set to sparc without regard
for whether I'm on a SuperSPARC or an UltraSPARC, whether I'm running
Solaris or Linux, then why differentiate between types of Alpha or x86?
Especially if the same chip will be i686 under Linux and i386 under FreeBSD?

The problem's scope is really beyond zsh, but if a parameter is compiled
in, it should be a generic "CPU architecture" type (e.g. sparc, ix86/i386,
alpha, m68k, &c.), and if it's defined at runtime, it should be more specific.

So I'm fine with adding a new parameter and keeping MACHTYPE static,
but in that case I think that MACHTYPE should become more generic.
Anyone disagree?


  reply	other threads:[~2000-03-26 18:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-25 15:40 Clint Adams
2000-03-25 17:15 ` Bart Schaefer
2000-03-25 17:55   ` Thomas Köhler
2000-03-26 13:13 ` Zefram
2000-03-26 18:58   ` Clint Adams [this message]
2000-03-26 20:11     ` Zefram

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=20000326135844.A15544@scowler.net \
    --to=schizo@debian.org \
    --cc=zefram@fysh.org \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).