From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 29 19:27:09 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1B21EDC3 for ; Fri, 29 Nov 2013 19:27:09 +0000 (UTC) Received: from yoshi.bluerosetech.com (yoshi.bluerosetech.com [IPv6:2607:f2f8:a450::66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 00F6D1AC2 for ; Fri, 29 Nov 2013 19:27:09 +0000 (UTC) Received: from chombo.houseloki.net (unknown [IPv6:2601:7:1680:365:21c:c0ff:fe7f:96ee]) by yoshi.bluerosetech.com (Postfix) with ESMTPSA id 4653BE6070; Fri, 29 Nov 2013 11:27:08 -0800 (PST) Received: from [IPv6:2601:7:1680:365:6c84:41a:bb99:ad5e] (unknown [IPv6:2601:7:1680:365:6c84:41a:bb99:ad5e]) by chombo.houseloki.net (Postfix) with ESMTPSA id EC7D38A2; Fri, 29 Nov 2013 11:27:06 -0800 (PST) Message-ID: <5298EA83.30705@bluerosetech.com> Date: Fri, 29 Nov 2013 11:26:59 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Ilya Bakulin , freebsd-hackers@freebsd.org Subject: Re: unbound-control in FreeBSD-CURRENT and stable/10 References: <20131129142143.GA29437@olymp.kibab.com> <20131129142729.GA29580@olymp.kibab.com> In-Reply-To: <20131129142729.GA29580@olymp.kibab.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Nov 2013 19:27:09 -0000 On 11/29/2013 6:27 AM, Ilya Bakulin wrote: > Hi list, > about two months ago DES has imported unbound(1) and a couple of related > utilities in FreeBSD-HEAD. This is good, but now unbound-control is being > installed in /usr/bin. That means, if the user wants to install Unbound from > ports, typing unbound-control will still use FreeBSD-shipped Unbound, not the > one from Ports. This will work as long as the unbound-control API is stable > and no new commands are added. But at some point this may cause problems. > > I have tried to contact DES about this several times, but I cannot reach him. > Can someone please fix this bug before 10-RELEASE is out? There's really no bug to fix. The base has unbound in it, unbound-control is part of unbound. If you install unbound from ports, you should delete unbound from base. I haven't tried out 10.x yet, but you usually just set a knob like WITHOUT_UNBOUND in /etc/src.conf, then do: # make -C /usr/src delete-old delete-old-libs You can use the check-old target first to list what delete-old and delete-old-libs will remove. If you want to keep a stock, intact base so you can use freebsd-update, you can make your shell run unbound-control from ports by default: Change your PATH to have /usr/local/bin and /usr/local/sbin first. The shell will find /usr/local/bin/unbound-control first and run that. I recommend this in general, since you pretty much always want a name collision to prefer the from-ports program. Alternately, you can alias unbound-control to /usr/local/bin/unbound-control, which will bypass the path search entirely.