From nobody@FreeBSD.org  Thu May 31 20:12:47 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 159F9106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 31 May 2012 20:12:47 +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 006788FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 31 May 2012 20:12:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4VKCkpn012008
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 31 May 2012 20:12:46 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q4VKCkwZ012007;
	Thu, 31 May 2012 20:12:46 GMT
	(envelope-from nobody)
Message-Id: <201205312012.q4VKCkwZ012007@red.freebsd.org>
Date: Thu, 31 May 2012 20:12:46 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] turn off clang extras if WITHOUT_TOOLCHAIN is set
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168508
>Category:       misc
>Synopsis:       [build] [patch] turn off clang extras if WITHOUT_TOOLCHAIN is set
>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:   Thu May 31 20:20:05 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:30:34 UTC 2013
>Originator:     Garrett Cooper
>Release:        9-STABLE
>Organization:
EMC Isilon
>Environment:
FreeBSD forza.west.isilon.com 9.0-STABLE FreeBSD 9.0-STABLE #4 r235133: Mon May  7 10:31:22 PDT 2012     root@forza.isilon.com:/usr/obj/usr/src/sys/FORZA  amd64
>Description:
If MK_TOOLCHAIN is specified, the knob will explicitly turn off CLANG. It doesn't turn off the "clang extra bits" though, like llvm-as, etc, so they'll get installed with make installworld.
>How-To-Repeat:
make buildworld
make installworld WITHOUT_CLANG=y WITHOUT_CLANG_EXTRAS=y
>Fix:


Patch attached with submission follows:

Index: share/mk/bsd.own.mk
===================================================================
--- share/mk/bsd.own.mk	(revision 235484)
+++ share/mk/bsd.own.mk	(working copy)
@@ -519,10 +519,6 @@
 MK_ZFS:=	no
 .endif
 
-.if ${MK_CLANG} == "no"
-MK_CLANG_EXTRAS:= no
-.endif
-
 .if ${MK_CRYPT} == "no"
 MK_OPENSSL:=	no
 MK_OPENSSH:=	no
@@ -569,6 +565,7 @@
 .endif
 
 .if ${MK_CLANG} == "no"
+MK_CLANG_EXTRAS:= no
 MK_CLANG_IS_CC:= no
 .endif
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Jul 9 00:23:30 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168508 
Responsible-Changed-From-To: eadler->freebsd-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun Sep 2 17:06:34 UTC 2012 
Responsible-Changed-Why:  
I won't be looking at this PR for a while and I need to clear some out 
of my queue 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168508 
>Unformatted:
