NetBSD Problem Report #10510
Received: (qmail 23047 invoked from network); 5 Jul 2000 16:29:48 -0000
Message-Id: <200007051629.MAA01325@cowboy-burt.mcmahill.net>
Date: Wed, 5 Jul 2000 12:29:47 -0400 (EDT)
From: dmcmahill@netbsd.org
Reply-To: dmcmahill@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: tcl uses machine name not processor
X-Send-Pr-Version: 3.95
>Number: 10510
>Category: pkg
>Synopsis: tcl uses machine name not processor
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 05 16:30:00 +0000 2000
>Closed-Date: Mon Jul 10 16:53:04 +0000 2000
>Last-Modified: Mon Jul 10 16:53:04 +0000 2000
>Originator: Dan McMahill
>Release: 1.4.2<NetBSD-current source date>
>Organization:
NetBSD
>Environment:
System: NetBSD cowboy-burt 1.4.1 NetBSD 1.4.1 (COWBOY-BURT) #1: Sat Oct 2 21:08:08 EDT 1999 dan@cowboy-burt:/amd/dinah-moe/export/src/sys/arch/sparc/compile/COWBOY-BURT sparc
>Description:
the "tcl_platform" array in Tcl sets the "machine" entry to 'uname -m'. For example
on a pmax:
mcmahill@ampere 166 % wish8.0
% array get tcl_platform
byteOrder littleEndian osVersion 1.4.2 machine pmax platform unix os NetBSD
The problem is we want to share binaries among all the mipsel platforms. This is
or will be an issue with others as well, for example powerpc which is used on macppc
and amigappc.
Some packages (like net/scotty) use this setting for path names. In the case of scotty
/usr/pkg/lib/tnm2.1.8/pmax-NetBSD-1.4.2 is generated from machine-os-osVersion. This
means a scotty package compiled under a pmax won't work on cobalt for example.
>How-To-Repeat:
wish8.0
% array get tcl_platform
byteOrder littleEndian osVersion 1.4.2 machine pmax platform unix os NetBSD
note that the machine is 'uname -m' not 'uname -p'. For a more dramatic example,
cd /usr/pkgsrc/net/scotty
make package
watch failures in the PLIST. And if you hack the PLIST to avoid these failures, then
try to run the resulting binary pkg on a different mipsel machine.
>Fix:
change Tcl. Don't know if we need to add a nb01 or something to the pkg name to
force an upgrade or not.
>Release-Note:
>Audit-Trail:
From: mcmahill@mtl.mit.edu
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/10510: tcl uses machine name not processor
Date: Wed, 5 Jul 2000 13:12:07 -0400 (EDT)
as a note, this variable gets set in tcl8.0.5/unix/tclUnixInit.c by
calling uname(3). Note that uname(3) only gives 'uname -m' type output,
not 'uname -p'. To get that, you need to use sysctl(3) and look at the
HW_MACHINE_ARCH field in the CTL_HW section.
I'd make the change myself, but I'm not a tcl user and don't know what all
I may break.
-Dan
State-Changed-From-To: open->closed
State-Changed-By: dmcmahill
State-Changed-When: Mon Jul 10 09:51:14 PDT 2000
State-Changed-Why:
fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.