Subject: pkg/10510: tcl uses machine name not processor
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 07/05/2000 09:29:13
>Number: 10510
>Category: pkg
>Synopsis: tcl uses machine name not processor
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 05 09:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: