From owner-freebsd-questions@freebsd.org Tue Aug 21 15:55:58 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 942591076E1D for ; Tue, 21 Aug 2018 15:55:58 +0000 (UTC) (envelope-from Norman.Gray@glasgow.ac.uk) Received: from hillend.cent.gla.ac.uk (hillend.cent.gla.ac.uk [130.209.16.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 298E489D06; Tue, 21 Aug 2018 15:55:57 +0000 (UTC) (envelope-from Norman.Gray@glasgow.ac.uk) Received: from cas07.campus.gla.ac.uk ([130.209.14.164]) by hillend.cent.gla.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1fs90Y-0000FI-2H; Tue, 21 Aug 2018 16:55:50 +0100 Received: from [10.130.248.80] (130.209.203.66) by cas07.campus.gla.ac.uk (130.209.14.164) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 21 Aug 2018 16:55:49 +0100 From: Norman Gray To: Matthew Seaman CC: Subject: Re: Resolving package conflicts (pkg set -o?) Date: Tue, 21 Aug 2018 16:55:49 +0100 X-Mailer: MailMate (1.11.3r5509) Message-ID: <5FA99DFC-04DA-4CDA-95BB-678BB78BAFD7@glasgow.ac.uk> In-Reply-To: <5ecba90f-c3fd-e244-bdaa-b749ca8c4905@FreeBSD.org> References: <03EF2AAC-B928-4B82-BB14-3AF4C009E5E5@astro.gla.ac.uk> <5ecba90f-c3fd-e244-bdaa-b749ca8c4905@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [130.209.203.66] X-ClientProxiedBy: CAS08.campus.gla.ac.uk (130.209.14.165) To cas07.campus.gla.ac.uk (130.209.14.164) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2018 15:55:58 -0000 Matthew, hello. On 15 Aug 2018, at 17:33, Matthew Seaman wrote: > On 10/08/2018 18:10, Norman Gray wrote: >> When installing the 'ceph' package, I get an error: >> >> pkg: openldap-client-2.4.46 conflicts with >> openldap-sasl-client-2.4.46 >> (installs files into the same place).  Problematic file: >> /usr/local/bin/ldapadd >> >> I'm not sure how best to resolve this.  Can anyone offer advice? > > This is a pretty well-known and longstanding problem with pkg(8) and > using the standard project compiled packages. What happens is that > pkg > records dependencies very strictly -- on the specific version of a > package. This means you cannot just substitute one package with a > similar equivalent -- ldap-client for ldap-sasl-client. > > So if you install package A that depends on ldap-client and then want > to > install package B that depends on ldap-sasl-client you are going to be > a > very unhappy bunny. Thanks for this explanation. It reassures me that there's nothing I've broken here! In this particular case, it appears that the conflicting dependencies -- on openldap-client and openldap-sasl-client -- have arisen as something of a side-effect of the package installation process, since net/ceph (which is what I'm trying to install) doesn't declare a dependency on either of them, and building net/ceph the old-fashioned way, within /usr/ports, works fine. I'm not quite sure what this is telling me. However at this point I'm not _completely_ sure of the sequence of operations which have taken me where I am now, so I'm not positive I'd be able to reproduce things. So I'm going to step quietly away from the machine (unless anyone thinks this is interestingly anomalous). Best wishes, Norman -- Norman Gray : http://www.astro.gla.ac.uk/users/norman/it/ SUPA School of Physics and Astronomy, University of Glasgow, UK Charity number SC004401