From nobody@FreeBSD.org  Sun Dec  2 12:12:22 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9FDFF658
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  2 Dec 2012 12:12:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 83CD08FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  2 Dec 2012 12:12:22 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB2CCMQE030433
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 2 Dec 2012 12:12:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qB2CCMlf030432;
	Sun, 2 Dec 2012 12:12:22 GMT
	(envelope-from nobody)
Message-Id: <201212021212.qB2CCMlf030432@red.freebsd.org>
Date: Sun, 2 Dec 2012 12:12:22 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Make tcsh compilation optional at top-level make
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174051
>Category:       conf
>Synopsis:       [build] [patch] Make tcsh compilation optional at top-level make
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 02 12:20:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:31:40 UTC 2013
>Originator:     Garrett Cooper
>Release:        9-STABLE
>Organization:
EMC Isilon
>Environment:
n/a
>Description:
The attached patch makes tcsh compilation rightfully optional in Makefile.inc1 because it currently is always built regardless of the MK_TCSH setting.
>How-To-Repeat:
cd /usr/src; make -DWITHOUT_TCSH buildworld
>Fix:


Patch attached with submission follows:

Index: Makefile.inc1
===================================================================
--- Makefile.inc1	(revision 243747)
+++ Makefile.inc1	(working copy)
@@ -1148,9 +1148,13 @@
 _rescue= rescue/rescue
 .endif
 
+.if ${MK_TCSH} != "no"
+_tcsh=		bin/csh
+.endif
+
 build-tools:
 .for _tool in \
-    bin/csh \
+    ${_tcsh} \
     bin/sh \
     ${_rescue} \
     ${LOCAL_TOOL_DIRS} \


>Release-Note:
>Audit-Trail:
>Unformatted:
