From owner-freebsd-pkg@FreeBSD.ORG Thu Jan 8 07:40:37 2015 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 58D7D1F8 for ; Thu, 8 Jan 2015 07:40:37 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D2E706D7 for ; Thu, 8 Jan 2015 07:40:36 +0000 (UTC) Received: from maggot.black-earth.co.uk (maggot.black-earth.co.uk [81.2.117.101]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t087ePpN015273 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 8 Jan 2015 07:40:25 GMT (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t087ePpN015273 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1420702825; bh=H5Idfc6XNjgi1bFCSqkB/aQmr7pW3pWv4eTw5/DY23E=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Thu,=2008=20Jan=202015=2007:40:17=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-pkg@fr eebsd.org|Subject:=20Re:=20mostly=20pkg,=20some=20ports|References :=20<54ADA1DC.9090905@electricembers.coop>|In-Reply-To:=20<54ADA1D C.9090905@electricembers.coop>; b=rxU1xAhGMGT4sIB7V1rnHy5udvzDbjFf2ShKXhD8Ye/jpGnmc4bMpTKdr8I21J7wq RpjOsXiJ7Y3XqWOslo0AMSUqcBf40MbnPjzfEAbptTtUd5rSP2nVMkac4HZMYrg0ZF Km+J/N75BCbQi2of9G7OdjGMOst/eBYU5p7ivnP4= Message-ID: <54AE3461.7070908@infracaninophile.co.uk> Date: Thu, 08 Jan 2015 07:40:17 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Re: mostly pkg, some ports References: <54ADA1DC.9090905@electricembers.coop> In-Reply-To: <54ADA1DC.9090905@electricembers.coop> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="L4XRURHR5j5wPof0BPXegSK0HnBoBAjOS" X-Virus-Scanned: clamav-milter 0.98.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 07:40:37 -0000 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--