Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  8 Dec 2004 11:13:34 -0500 (EST)
From:      Eric van Gyzen <vangyzen@stat.duke.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/74853: installworld -- env: not found; touch: not found
Message-ID:  <20041208161334.987B8114B9@turing.vangyzen.net>
Resent-Message-ID: <200412081620.iB8GKMQQ069159@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         74853
>Category:       bin
>Synopsis:       installworld -- env: not found; touch: not found
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 16:20:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Eric van Gyzen
>Release:        FreeBSD 5.3-RELEASE-p2 i386
>Organization:
Duke University Statistics
>Environment:
System: FreeBSD 5.3-RELEASE-p2 i386

Upgrading from 5.2.1-RELEASE-pN via source.

# /etc/make.conf
CPUTYPE=athlon
WRKDIRPREFIX=/tmp
NO_BIND=true
KERNCONF=CUSTOM
SUP_UPDATE=1
SUPFLAGS+=-L 1

>Description:
When the installworld process copies some key utilities
from the running system into a temporary directory,
it omits "env" and "touch", which breaks the installworld [for me].

>How-To-Repeat:
# make update  #cvsup to 5.3-RELEASE-p2
# make buildworld buildkernel KERNCONF=CUSTOM
# make installkernel KERNCONF=CUSTOM
# reboot
# mergemaster -p
# make installworld
mkdir -p /tmp/install.ZGlUTa0t
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep find grep  ln make mkdir mtree mv pwd_mkdb rm sed sh sysctl  test true uname wc zic; do  cp `which $prog` /tmp/install.ZGlUTa0t;  done

[snip]

--------------------------------------------------------------
>Fix:
--- src/Makefile.inc1.orig  Wed Dec  8 11:07:37 2004
+++ src/Makefile.inc1       Wed Dec  8 11:07:56 2004
@@ -460,9 +460,9 @@
 distributeworld installworld: installcheck
        mkdir -p ${INSTALLTMP}
        for prog in [ awk cap_mkdb cat chflags chmod chown \
-           date echo egrep find grep \
+           date echo egrep env find grep \
            ln make mkdir mtree mv pwd_mkdb rm sed sh sysctl \
-           test true uname wc zic; do \
+           test touch true uname wc zic; do \
                cp `which $$prog` ${INSTALLTMP}; \
        done
        ${_+_}cd ${.CURDIR}; ${IMAKE} re${.TARGET:S/world$//}

>Release-Note:
>Audit-Trail:
>Unformatted:
 >>> Installing everything
 --------------------------------------------------------------
 cd /usr/src; /usr/obj/usr/src/make.i386/make -f Makefile.inc1 install
 env: not found
 "/usr/src/Makefile.inc1", line 94: warning: "env -i PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/ usr/games:/tmp/install.ZGlUTa0t MAKEFLAGS=" -m /usr/src/share/mk" /usr/obj/usr/src/make.i386/make  -f /dev/null -V MAKEOBJDIRPREFIX dummy" returned non-zero status
 ===> share/info
 ===> include
 creating osreldate.h from newvers.sh
 touch: not found
 *** Error code 127
  
 Stop in /usr/src/include.
 *** Error code 1
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041208161334.987B8114B9>