Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 2010 09:30:01 GMT
From:      Gergely Czuczy <gergely.czuczy@harmless.hu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/145261: 8.0-R source doesn't respect WITHOUT_TOOLCHAIN as src.conf(5) says
Message-ID:  <201004010930.o319U169044568@www.freebsd.org>
Resent-Message-ID: <201004010940.o319e0Hx016037@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004010930.o319U169044568>