Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2018 16:55:49 +0100
From:      Norman Gray <norman.gray@glasgow.ac.uk>
To:        Matthew Seaman <matthew@FreeBSD.org>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: Resolving package conflicts (pkg set -o?)
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>

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5FA99DFC-04DA-4CDA-95BB-678BB78BAFD7>