Date: Wed, 15 Aug 2018 17:33:23 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: Resolving package conflicts (pkg set -o?) Message-ID: <5ecba90f-c3fd-e244-bdaa-b749ca8c4905@FreeBSD.org> In-Reply-To: <03EF2AAC-B928-4B82-BB14-3AF4C009E5E5@astro.gla.ac.uk> References: <03EF2AAC-B928-4B82-BB14-3AF4C009E5E5@astro.gla.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9MyWRSNEWc32MCGnQ5SOMKtkIdSQ3Hssr Content-Type: multipart/mixed; boundary="m1LVnrP6MHiYP3oiAssuSeRvJbndficKx"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Message-ID: <5ecba90f-c3fd-e244-bdaa-b749ca8c4905@FreeBSD.org> Subject: Re: Resolving package conflicts (pkg set -o?) References: <03EF2AAC-B928-4B82-BB14-3AF4C009E5E5@astro.gla.ac.uk> In-Reply-To: <03EF2AAC-B928-4B82-BB14-3AF4C009E5E5@astro.gla.ac.uk> --m1LVnrP6MHiYP3oiAssuSeRvJbndficKx Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 10/08/2018 18:10, Norman Gray wrote: > When installing the 'ceph' package, I get an error: >=20 > pkg: openldap-client-2.4.46 conflicts with openldap-sasl-client-2.4.46 > (installs files into the same place).=C2=A0 Problematic file: > /usr/local/bin/ldapadd >=20 > I'm not sure how best to resolve this.=C2=A0 Can anyone offer advice? >=20 > This happens because I've installed the openldap-sasl-client package in= > preference to openldap-client (or rather, the nss-pam-ldapd-sasl packag= e > installs the former rather than the latter).=C2=A0 I take it that the t= wo > packages would be broadly equivalent in function from the point of view= > of dependencies.=C2=A0 However I'm not sure what the real difference is= > between these two alternatives. >=20 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. Now, there are two possible solutions to this. The first is to build your own packages. That way you can make sure everything depends on your choice of whatever dependency you prefer and pkg(8) won't be nagging you about CONFLICTS. Which is not really a satisfactory response when all you want to do is quickly install something and have it working P.D.Q. The second is the new 'flavours' mechanism. This exists for eg. python or php or various other possibilities. The result is that eg. any python application will be available from the pkg repository for either python-2.7 or python-3.6 and as an end user you can switch between the two fairly easily. The problem here is that no-one has yet implemented an LDAP flavour. Sorry. Cheers, Matthew --m1LVnrP6MHiYP3oiAssuSeRvJbndficKx-- --9MyWRSNEWc32MCGnQ5SOMKtkIdSQ3Hssr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlt0VdRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp 5OfdORAAgSQKzNK57yfp0SPTL7jupvpKQIOxxq1YT/+jBJ/mD6t4uZNM7akK6ksf 114D3hGzYrwJUFt8jCUU2HGjiYVjv9MP5iBE2/0F+PIDO0Q7ac6Z3dAbUw0Mjgv4 L27ns8mRThGg0d+BWnfqFsrXQfNjfQMrKKsor+s6B0xk/kBRYCokpL2F7VJqSssJ VP0izgyHm8QoWeRQaqiYdNNDWUjIEFvDInuCbsKRY0XKEdjPOLCc8bie2Zi4AsRF aBmuNnd0pLvH7u622w2DrpK7NI5ldVG71eyKiGBTHmhVipMpzjR0owzMevDULSv0 oQO3+LjMFwjkYgN7mEnhbQJgVK101r1DPxsCkILJg7eAl9CXhPOst06hdbXQ8jhJ Wfjx/oZR6dDSL4tKFxNcmLk64t6CyyFXOvVWZQ4nGo7mJrnLoYTlQSQD+RyO/Om2 uvW+i0bhQlTGW4vwiMJhdWQmpmlkw2rub3f8M8+PUA1KMSR7n2Gmn46bvWhbMt0Q 6UWxawO0aSIJmeM7IT8zGSebtkgzhqMDjyjaYoY7uhc6iHrgk0nW8WJ5ijrWdCEX lFgXfidyW9XYOZ3akSBhUlJU9r69cKOxA8S0yM6r9hr1sTxlDUgnU1b//GRcxr9B NqvLgFa0XwwDsKeYRI0sRQdiEc2VJBCxRwUGOopCFilJLQIFnao= =H/0X -----END PGP SIGNATURE----- --9MyWRSNEWc32MCGnQ5SOMKtkIdSQ3Hssr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5ecba90f-c3fd-e244-bdaa-b749ca8c4905>