From nobody@FreeBSD.org  Thu Apr  1 09:30:02 2010
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 699E0106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Apr 2010 09:30:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 53F1F8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Apr 2010 09:30:02 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o319U14h044569
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 Apr 2010 09:30:01 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o319U169044568;
	Thu, 1 Apr 2010 09:30:01 GMT
	(envelope-from nobody)
Message-Id: <201004010930.o319U169044568@www.freebsd.org>
Date: Thu, 1 Apr 2010 09:30:01 GMT
From: Gergely Czuczy <gergely.czuczy@harmless.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 8.0-R source doesn't respect WITHOUT_TOOLCHAIN as src.conf(5) says
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145261
>Category:       misc
>Synopsis:       [build] 8.0-R source doesn't respect WITHOUT_TOOLCHAIN as src.conf(5) says
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 01 09:40:00 UTC 2010
>Closed-Date:    Wed Oct 12 14:51:41 UTC 2011
>Last-Modified:  Wed Oct 12 14:51:41 UTC 2011
>Originator:     Gergely Czuczy
>Release:        8.0-RELEASE-p2
>Organization:
Harmless Digital Bt
>Environment:
FreeBSD zfsbackup.mediatech.local 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Thu Mar 18 17:19:59 UTC 2010     toor@zfsbackup.mediatech.local:/usr/obj/usr/src/sys/ZFSBACKUP  i386

>Description:
setting WITHOUT_TOOLCHAIN in src.conf doesn't have the documented effect
that sr.conf(5) says.

Basically only gdb gets ripped, and everything else, along with the
compilers, headers and such things gets installed.

This knob should remove the toolchain from the installed world, and
it's kind of important for securing jails and systems on a corporate
platform.

This used to work back when I was doing this with 6, but i experienced
it not working on 8. Can't test right now with 7.

>How-To-Repeat:
echo WITHOUT_TOOLCHAIN= >> /etc/src.conf

mkdir /tgt
make -C /usr/src installworld DESTDIR=/tgt/

gcc and the whole toolchain will be available, except gdb.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Wed Nov 24 00:35:16 UTC 2010 
State-Changed-Why:  
Which tools are included exactly which you think shouldn't be? 

usr.bin/Makefile defines the following: 

.if ${MK_TOOLCHAIN} != "no" 
SUBDIR+=        ar 
SUBDIR+=        c89 
SUBDIR+=        c99 
SUBDIR+=        compile_et 
SUBDIR+=        ctags 
SUBDIR+=        file2c 
SUBDIR+=        gprof 
SUBDIR+=        indent 
SUBDIR+=        lex 
SUBDIR+=        mkstr 
SUBDIR+=        rpcgen 
SUBDIR+=        unifdef 
SUBDIR+=        xlint 
SUBDIR+=        xstr 
# XXX maybe under textproc? 
SUBDIR+=        vgrind 
SUBDIR+=        yacc 
.endif 

...so these shouldn't be included. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145261 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Wed Oct 12 14:51:40 UTC 2011 
State-Changed-Why:  
IT seems there was no more feedback, close the PR 

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