From owner-freebsd-questions@freebsd.org Fri Aug 10 17:11:04 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 6CEDF10705D4 for ; Fri, 10 Aug 2018 17:11:04 +0000 (UTC) (envelope-from norman@astro.gla.ac.uk) Received: from smtp124.ord1d.emailsrvr.com (smtp124.ord1d.emailsrvr.com [184.106.54.124]) (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 167FC734AD for ; Fri, 10 Aug 2018 17:11:03 +0000 (UTC) (envelope-from norman@astro.gla.ac.uk) Received: from smtp16.relay.ord1d.emailsrvr.com (localhost [127.0.0.1]) by smtp16.relay.ord1d.emailsrvr.com (SMTP Server) with ESMTP id A5B874037D; Fri, 10 Aug 2018 13:10:57 -0400 (EDT) X-Auth-ID: astro@nxg.name Received: by smtp16.relay.ord1d.emailsrvr.com (Authenticated sender: astro-AT-nxg.name) with ESMTPSA id 42D374032B; Fri, 10 Aug 2018 13:10:57 -0400 (EDT) X-Sender-Id: astro@nxg.name Received: from [130.209.45.140] (ptolemy.astro.gla.ac.uk [130.209.45.140]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256) by 0.0.0.0:25 (trex/5.7.12); Fri, 10 Aug 2018 13:10:58 -0400 From: "Norman Gray" To: freebsd-questions@freebsd.org Subject: Resolving package conflicts (pkg set -o?) Date: Fri, 10 Aug 2018 18:10:55 +0100 X-Mailer: MailMate (1.11.3r5509) Message-ID: <03EF2AAC-B928-4B82-BB14-3AF4C009E5E5@astro.gla.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; format=flowed 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: Fri, 10 Aug 2018 17:11:04 -0000 Greetings. 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 happens because I've installed the openldap-sasl-client package in preference to openldap-client (or rather, the nss-pam-ldapd-sasl package installs the former rather than the latter). I take it that the two packages would be broadly equivalent in function from the point of view of dependencies. However I'm not sure what the real difference is between these two alternatives. One way of resolving this appears to be to use pkg set -o net/openldap24-client:net/openldap24-sasl-client, as mentioned in a UPDATING entry of 20121212 (I haven't tried this yet). However the pkg-set(8) manpage suggests this is deprecated, I can't find any way to reverse this if I mess up, and the discussion at suggests this is a rather desperate measure, in the sense that (I quote) 'there's no going back', and there seems to be no way to discover later what fixes have been applied. That is, this sounds highly breakable, and pretty clearly not TRTTD. Section 4 of the handbook doesn't seem to cover this situation. I can't think of where else to look. I (vaguely) imagine I could get round this by installing ceph's dependencies via pkg by hand, and then building net/ceph using portmaster. Though I see that that has an 'R-dep' on openldap-client, so that might just be a longer route to the same problem. I don't really want to build ceph from source. I doubt that'd be hard to do, but it'd be annoying to maintain (and hence errorprone). I can't be the first to have this type of problem, so I expect I'm missing something pretty obvious. Best wishes, Norman -- Norman Gray : https://nxg.me.uk SUPA School of Physics and Astronomy, University of Glasgow, UK