From owner-freebsd-ports@freebsd.org Thu Oct 6 00:23:08 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 069CCAF476D for ; Thu, 6 Oct 2016 00:23:08 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE7C8F2F for ; Thu, 6 Oct 2016 00:23:07 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 62530284A2; Thu, 6 Oct 2016 02:23:03 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 75E0A2847B; Thu, 6 Oct 2016 02:23:02 +0200 (CEST) Subject: Re: dependency explosions To: Graham Menhennitt , freebsd-ports@freebsd.org References: <43d4823b-ef7f-19b6-a065-45ad760ddd41@menhennitt.com.au> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <57F59965.6090400@quip.cz> Date: Thu, 6 Oct 2016 02:23:01 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2016 00:23:08 -0000 Graham Menhennitt wrote on 2016/10/06 01:49: > Sorry, I just read that UPDATING entry again. Cyrus is only provided to > Dovecot if Postfix is present. I do not have Postfix present. So, I > think that I do need to install Cyrus explicitly. > > So, back to my original question, why does "pkg autoremove" want to > uninstall Cyrus when I explicitly installed it from the port? pkg autoremove is working with pkg internal database. If you install some ports directly with command "pkg install SomePort", then this ports is nor marked as autoamtic. If some port is installed as depedency, then it is marked as automatic and if parent port is removed, then this automatic port can be deleted by "pkg autoremove" You can use "pkg query" to check what is marked as automatic pkg query '%a %n' | sort You can change this settings by "pkg set" (see man pkg-query example) EXAMPLES Change a package from automatic to non-automatic, which will prevent autoremove from removing it: % pkg set -A 0 perl-5.14 Why you need cyrus-sasl? Do you use some tools from this package or just some libs? The Dovecot / Postfix case is that Dovecot have it's own internal SASL libs and Postfix from some version have internal support for Dovecots SASL and do not need to be build with Cyrus-SASL. But it is not related to you if you are not using Postfix. Miroslav Lachman