From owner-freebsd-stable@FreeBSD.ORG Sat Jan 9 13:23:03 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 300601065672 for ; Sat, 9 Jan 2010 13:23:03 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id A1C3D8FC13 for ; Sat, 9 Jan 2010 13:23:02 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o09DMjLk041661; Sat, 9 Jan 2010 14:23:01 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o09DMjgZ041660; Sat, 9 Jan 2010 14:22:45 +0100 (CET) (envelope-from olli) Date: Sat, 9 Jan 2010 14:22:45 +0100 (CET) Message-Id: <201001091322.o09DMjgZ041660@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, lists@rhavenn.net, rsmith@xs4all.nl In-Reply-To: <20100109124608.GA28238@slackbox.xs4all.nl> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Sat, 09 Jan 2010 14:23:01 +0100 (CET) Cc: Subject: Re: ntpd not removed; WITHOUT_NTP enabled in src.conf X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, lists@rhavenn.net, rsmith@xs4all.nl List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2010 13:23:03 -0000 Roland Smith wrote: > Oliver Fromme wrote: > > When you disable something in src.conf(5), its files *will* > > be removed when you do "make delete-old". > > > > See the file src/tools/build/mk/OptionalObsoleteFiles.inc > > for all the details. It's included by src/ObsoleteFiles.inc > > which in turn is included by src/Makefile.inc1 (after > > /etc/src.conf was parsed by share/mk/bsd.own.mk). > > Hmm, interesting. Thanks for the heads-up :-) > > > If that doesn't work for WITHOUT_NTP, then that's a bug. > > Probably some entries missing in OptionalObsoleteFiles.inc. > > There are a actually quite a lot missing, if you compare src.conf(5) with > /usr/src/tools/build/mk/OptionalObsoleteFiles.inc That's true. I guess some people simply forget it (or don't know about it) when adding a knob for src.conf. There's another pitfall: When you install, say, BIND from the ports collection with the option WITH_REPLACE_BASE=true and add WITHOUT_BIND=yes to src.conf. When you update your world it will wipe out your BIND files that were installed from ports, so you have to re-install the port. I haven't tried this myself, though ... Maybe there's a safety-belt somewhere. Anyway -- Only very few ports have a good reason to have an option to install them in base. The ntp port isn't one of them, so clearly there's no harm to add its files to the OptionalObsoleteFiles.inc file. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd (On the statement print "42 monkeys" + "1 snake":) By the way, both perl and Python get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when the answer is clearly "41 monkeys and 1 fat snake". -- Jim Fulton