Date: Thu, 08 Jan 2015 07:40:17 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-pkg@freebsd.org Subject: Re: mostly pkg, some ports Message-ID: <54AE3461.7070908@infracaninophile.co.uk> In-Reply-To: <54ADA1DC.9090905@electricembers.coop> References: <54ADA1DC.9090905@electricembers.coop>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --L4XRURHR5j5wPof0BPXegSK0HnBoBAjOS Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/01/07 21:15, Benjamin Connelly wrote: > Is it OK to compile some things (from a current ports tree) and update > the rest with pkg? Yes, you can do this, but you need to be careful when doing it. Packages can lag behind what's available in ports by around a week. > For example, on a new server with mysql56 installed via pkg, I wanted t= o > install mytop, but that binary package wanted to swap mysql56 for > mysql55. So I installed mytop from ports. It built using my installed > mysql56, and everything was happy. But that made it tricky/impossible > to use 'pkg upgrade' going forward: >=20 > New packages to be INSTALLED: > mysql55-client: 5.5.41 >=20 > Installed packages to be REINSTALLED: > p5-DBD-mysql-4.029 (direct dependency changed) > dialog4ports-0.1.5_2 (options changed) >=20 > Knowing I caused this situation with the mytop port, I tried locking it= , > but that doesn't help. It's actually mytop's requirement for > p5-DBD-mysql, which was built using mysql56 locally, but using mysql55 > in the repo. (Even deleting mytop left me confused, until I figured ou= t > it was p5-DBD-mysql still around causing the trouble -- and the appeal > of pkg is to not have to play that old tired game of manually tracking > dependencies up and down.) Yes, in this case, locking p5-DBD-MySQL would be more useful for you. mytop is agnostic about MySQL versions (it's pure perl) but p5-DBD-MySQL links against libmysql.so.X.Y.Z from the mysql client port. Once it's compiled into a package, the dependnecy on a specific version of MySQL is baked it -- so if you want to use a different version of MySQL then you need to compile your own. > Do I need to run poudriere as soon as I want to use anything other than= > the default versions of things (overriding > /usr/ports/Mk/bsd.default-versions.mk with /etc/make.conf)? Or am I jus= t > missing something about how to drive pkg correctly in these situations?= =20 > (Perhaps something with 'pkg set -o'? -- I'm under the impression that'= s > no longer something I should run. . .) You don't *have* to use poudriere. We suggest doing so since poudriere is (IMHO) the easiest and least hassle way to maintain a set of customized packages. Many people prefer using portmaster or similar to compile their own customized packages, but that does involve a bit more work to keep everything maintained. > I was also hoping to use PHP 5.6 on this system, but with the default > still at 5.4 I'm worried there will be similar troubles if I start > mixing ports into my packages. Any and all pointers welcome! And I'm > available to help develop documentation for best practices for > administrators. . . This is a clear case for building your own packages. Just set DEFAULT_VERSIONS appropriately in your build environment. Cheers, Matthew --L4XRURHR5j5wPof0BPXegSK0HnBoBAjOS 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.22 (Darwin) Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUrjRpAAoJEABRPxDgqeTnyvIQAK4G1DkDPJ4ebfdz/UF1YXFy r2/hvo6+aj4F0bd8y9A+etES+DaFiciJsQ1xmqIffbDRlqg37xO+1k7TpFMFesZZ S6W1x00jf/dqZ5ZW8epOTx4c0lhuHh+knkJqKES8fE0Jy9EWhKTFEpej4zB/KMnX oi7MnrWv/yASPW08LICXjo4K/aLmOJvVupgg4tIeS3nLtW580ROnNuCpGIu7cmMo sAmBBGuSPuIwbQME6zVyeywoi3EJTj540z0qQu2q5A+rLyc7fTcFiTL1f6cDhezN JKWyJmt2xNYakxpW5yXwe1QpKFJcaJcZms44dRHzbm7/HjX5OTKBYmAgvmqq2qbm 5bWjuLJq9bHPpPikzKRQyk9nvPLBE6abCi0sCRl17xnP4TzHS/gZhDIs1fM09KbF ZGtvnbTNI6CbtDsN708pKP3T4Vp6A9k9OmqUTfOAfwfp5BFYxHDxseg0V1LEXMQu 7yKFFzLtGW3Gvvjj55G5Ee9i1cwznDt2TLdUEoNKISpc9mfba1INuDN/Wcuu/8dj PL7vb7QcgY+XAvE6W7Q12XqNPzqP+0/0h0cWETaSrbT8wcTOeLM5r3o190r0EL03 ejqWabNyTU4asmJF5wxL8WhrC78ObHP4a5cE0QyMDWMGFQ1e6cTgW6MRlPKMXxfq 4G9OqQx2M8CUFARDMe05 =KPex -----END PGP SIGNATURE----- --L4XRURHR5j5wPof0BPXegSK0HnBoBAjOS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54AE3461.7070908>