Date: Fri, 05 Dec 2014 07:22:17 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: switching from ports to pkg -- mailman group mismatch Message-ID: <54815D29.9060602@FreeBSD.org> In-Reply-To: <alpine.OSX.2.11.1412050151310.86503@ary.lan> References: <20141204214125.33860.qmail@ary.lan> <5480EC4B.5010803@bluerosetech.com> <alpine.OSX.2.11.1412042255130.85870@ary.lan> <5481543E.7040208@bluerosetech.com> <alpine.OSX.2.11.1412050151310.86503@ary.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xH3c3b76O1ntHl2JVHc9rwShw4wi0MDLr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05/12/2014 06:55, John R. Levine wrote: >>> wants to install mysql55-client, which would break percona. The >>> dependencies in the ports work, so I don't know why pkg gets it wrong= =2E >> >> Which port is this? >=20 > I think it's p5-DBD-mysql. The port builds fine with percona, it's onl= y > a problemw pkg upgrade. >=20 >> It's also possible the depending port is specifically asking for mysql= >> 5.5. >=20 > Not in this case. You're using p5-DBD-mysql from the default pkg repos? That's going to have the dependency on mysql55-client baked into it -- if you want to use percona, then in that case you'll need to compile your own. Apart from the usual specificity of dependencies in ports, and consequently pkg, p5-DBD-mysql links against libmysqlclient.so.X which is an additional constraint: even if we implemented some form of alternate dependency mechanism, we'd still need a series of p5-DBD-mysql binary packages to match up to the different ABI versions of libmysqlclient.so that come with the different versions of mysql and related databases. We do have plans for improving the pkg experience with precompiled packages in this regard. There are two measures in particular: - Sub packages: this essentially creates several different pkgs from one compiled source tree of a piece of software. There are a large number of options in the ports that do nothing except add some extra files to a package. In future, those files would be placed in a sub-package, which could be installed in addition to the main pkg as need= ed. - Provides / Requires / Conflicts -- instead of the way a compiled port nowadays has a hardwired dependency on exactly the software it was compiled with, this will provide a generic mechanism for substituting alternative dependencies at pkg install time. So, for instance a package will be able to require a 'WEB_SERVER' which any of apache{22,24}, nginx{,-devel} or lighttpd or others would be able to fulfil. In the MySQL case you might be able to say requires 'MYSQL_DATABASE_FAMILY' or 'MYSQL_55_DATABASE_FAMILY' to allow any of mysql, percona, mariadb possibly also requiring a compatible ABI version as well. Support for these mechanisms is under development in pkg itself, but introducing them is going to involve a lot of churn in the ports tree over and above what we've already seen in the last few years. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --xH3c3b76O1ntHl2JVHc9rwShw4wi0MDLr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJUgV00XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT9NwP+QEK0Q9/ZMHME4SpC1ZSYDSy XtcR0WQG1GRtZ51F0oE2xqwPcNmUvNpofCtTkFAQ1GIqzAfQYDCi4QtIiqSd+htF 6rwifwt8i8Rasm6ynlcwx6zwL6DjukJDwPgSSVF232d51B5IHyE68iFChchWNtTg ZFzLTHnehB61PQsPkbTTFQrXOSdz/Oxl8u0BayKTT0dRg0JuQI+T/dF/FAgP8kPA GQv4Y9ZUCg7yyBNCTl13roPAg37F3aBmiB/nWeifoEcObG+MoJlGRk9yO1jr1GV7 CNmVAjZTbapcW992c3eLd9VQFDGEJCLnQWZt6IH3F5vkNPo0srRfiMK29/mPZjSY P2ciLdaSDMKXltj8OS19JpVcDdGUQE3NzUSRU21Gl9M7vKLyjKYjICGv/dF5dVZw d9OK72ETLUBQ64STnOQ8hZ8sG5COfLR8qGlcJTkwaHJkYQ7V5c/+ZPFxowFY/8LK bfE6nOilVoeDoqI9U39j7mInDT7ETy6sGUIQzx7l2+svOMskDyR8kt++/Ni+p+GJ UjBK3F4dqn26pVVIztDU8qbooK5E7mHSU2IAdNGFiRR03A0Z0c60OzzvKRPFsRdL QJPxY6f1e2KgoKCcMiTGtU1CnOHJG/x/x4Kncmj0ePw2bZUTfnOm3EdOb71eophJ 2DQ1MrDSNHTMOQuBqsg8 =T5rp -----END PGP SIGNATURE----- --xH3c3b76O1ntHl2JVHc9rwShw4wi0MDLr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54815D29.9060602>