Subject: Re: etcupdate environment change?
To: William Allen Simpson <wsimpson@greendragon.com>
From: George Michaelson <ggm@apnic.net>
List: current-users
Date: 11/06/2003 16:47:53
On Thu, 06 Nov 2003 01:44:22 -0500 William Allen Simpson
<wsimpson@greendragon.com> wrote:

> In updating from circa Oct 18 1.6ZD to yesterday's 1.6ZE, etcupdate 
> didn't work as it had previously:
> 
> dreamer: {3} su
> Password:
> dreamer: {1} /home/current/src/etc/postinstall -s /home/current/src -d // fix
> postinstall defaults mtree rc makedev obsolete[...]
> 
> dreamer: {2} etcupdate -s /home/current/src/etc
> *** Creating /tmp/temproot
> *** Populating /tmp/temproot from /home/current/src/etc
> ERROR: 'MACHINE' and 'MACHINE_ARCH' must be set in environment
> 
> Tried rebooting to ensure the kernel and userland matched, same result.
> This sequence had worked for some months now, so it's a definite change 
> that is not reflected in the man page....

True. but setting the values in your shell work fine, I found, on hitting this:

# cat /etc/profile 
#       $NetBSD: profile,v 1.1 1997/06/21 06:07:39 mikel Exp $
#
# System-wide .profile file for sh(1).
CLASSPATH=/usr/pkg/java/sun-1.4/src.zip:.
export CLASSPATH
JAVA_HOME=/usr/pkg/java/sun-1.4
export JAVA_HOME
PATH=$PATH:/usr/pkg/java/sun-1.4/bin
export PATH
#
HISTCONTROL=ignoreboth; export HISTCONTROL
MACHINE=`uname -m`; export MACHINE
MACHINE_ARCH=`uname -p`; export MACHINE_ARCH
#

worked for me. appears to apply single-user too.

-george

> 
> NetBSD dreamer.citi.umich.edu 1.6ZE NetBSD 1.6ZE (GENERIC) #2: Wed Nov  5
> 18:52:14 EST 2003 
> current@dreamer.citi.umich.edu:/usr/obj/sys/arch/i386/compile/GENERIC i386-- 
> William Allen Simpson
>     Key fingerprint =  17 40 5E 67 15 6F 31 26  DD 0D B9 9B 6A 15 2C 32


-- 
George Michaelson       |  APNIC
Email: ggm@apnic.net    |  PO Box 2131 Milton QLD 4064
Phone: +61 7 3367 0490  |  Australia
  Fax: +61 7 3367 0482  |  http://www.apnic.net