From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 1 09:40:01 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EA52106566C for ; Thu, 1 Apr 2010 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F2EC58FC13 for ; Thu, 1 Apr 2010 09:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o319e0ov016038 for ; Thu, 1 Apr 2010 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o319e0Hx016037; Thu, 1 Apr 2010 09:40:00 GMT (envelope-from gnats) Resent-Date: Thu, 1 Apr 2010 09:40:00 GMT Resent-Message-Id: <201004010940.o319e0Hx016037@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gergely Czuczy Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 699E0106564A for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/145261: 8.0-R source doesn't respect WITHOUT_TOOLCHAIN as src.conf(5) says X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2010 09:40:01 -0000 >Number: 145261 >Category: conf >Synopsis: 8.0-R source doesn't respect WITHOUT_TOOLCHAIN as src.conf(5) says >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 01 09:40:00 UTC 2010 >Closed-Date: >Last-Modified: >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: >Unformatted: