Source-Changes-HG archive

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

[src/trunk]: src Set LC_ALL=C before we try to parse the output from any comm...



details:   https://anonhg.NetBSD.org/src/rev/7ff8e81e3dc8
branches:  trunk
changeset: 749103:7ff8e81e3dc8
user:      apb <apb%NetBSD.org@localhost>
date:      Tue Nov 17 20:49:34 2009 +0000

description:
Set LC_ALL=C before we try to parse the output from any command.
This will ensure that awk is not invoked in a way that tickles
the bug described in PR 42320.

diffstat:

 build.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 0a060849fc00 -r 7ff8e81e3dc8 build.sh
--- a/build.sh  Tue Nov 17 20:47:59 2009 +0000
+++ b/build.sh  Tue Nov 17 20:49:34 2009 +0000
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#      $NetBSD: build.sh,v 1.217 2009/11/04 12:58:01 apb Exp $
+#      $NetBSD: build.sh,v 1.218 2009/11/17 20:49:34 apb Exp $
 #
 # Copyright (c) 2001-2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -163,6 +163,9 @@
        [ -f share/mk/bsd.own.mk ] ||
            bomb "src/share/mk is missing; please re-fetch the source tree"
 
+       # Set LC_ALL=C before we try to parse the output from any command
+       setmakeenv LC_ALL C
+
        # Find information about the build platform.  This should be
        # kept in sync with _HOST_OSNAME, _HOST_OSREL, and _HOST_ARCH
        # variables in share/mk/bsd.sys.mk.
@@ -272,7 +275,6 @@
        #
        unsetmakeenv INFODIR
        unsetmakeenv LESSCHARSET
-       setmakeenv LC_ALL C
 }
 
 getarch()
@@ -1315,7 +1317,7 @@
        eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.217 2009/11/04 12:58:01 apb Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.218 2009/11/17 20:49:34 apb Exp $
 # with these arguments: ${_args}
 #
 



Home | Main Index | Thread Index | Old Index