Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src Apply patch (requested by jmc in ticket #10194):



details:   https://anonhg.NetBSD.org/src/rev/db4642731244
branches:  netbsd-2-0
changeset: 564920:db4642731244
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Dec 12 11:24:44 2005 +0000

description:
Apply patch (requested by jmc in ticket #10194):
Clean up environment to avoid side effects on builds.

diffstat:

 build.sh |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r a9e6403fd2ed -r db4642731244 build.sh
--- a/build.sh  Wed Dec 07 10:06:26 2005 +0000
+++ b/build.sh  Mon Dec 12 11:24:44 2005 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.127.2.1 2004/08/22 13:35:06 tron Exp $
+#      $NetBSD: build.sh,v 1.127.2.2 2005/12/12 11:24:44 tron Exp $
 #
 # Copyright (c) 2001-2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -643,8 +643,11 @@
        [ -n "${MACHINE_ARCH}" ] || getarch
        validatearch
 
-       # Set up default make(1) environment.
+       # Set various environment variables to known defaults,
+        # to minimize (cross-)build problems observed "in the field".
        #
+       unsetmakeenv INFODIR
+       unsetmakeenv LESSCHARSET
        setmakeenv LC_ALL C
        makeenv="${makeenv} TOOLDIR MACHINE MACHINE_ARCH MAKEFLAGS"
        [ -z "${BUILDID}" ] || makeenv="${makeenv} BUILDID"
@@ -847,7 +850,7 @@
        eval cat <<EOF ${makewrapout}
 #! /bin/sh
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.127.2.1 2004/08/22 13:35:06 tron Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.127.2.2 2005/12/12 11:24:44 tron Exp $
 #
 
 EOF



Home | Main Index | Thread Index | Old Index