From owner-freebsd-ports@FreeBSD.ORG Sun Aug 26 07:06:40 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D73A7106564A for ; Sun, 26 Aug 2012 07:06:40 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id EF4DB8FC17 for ; Sun, 26 Aug 2012 07:06:39 +0000 (UTC) Received: from seedling.local (host109-151-154-120.range109-151.btcentralplus.com [109.151.154.120]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q7Q76K0J041122 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 26 Aug 2012 08:06:27 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q7Q76K0J041122 Authentication-Results: smtp.infracaninophile.co.uk/q7Q76K0J041122; dkim=none (no signature); dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host host109-151-154-120.range109-151.btcentralplus.com [109.151.154.120] claimed to be seedling.local Message-ID: <5039CAE4.3030704@FreeBSD.org> Date: Sun, 26 Aug 2012 08:06:12 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org References: <5039B6E9.90503@paz.bz> In-Reply-To: <5039B6E9.90503@paz.bz> X-Enigmail-Version: 1.4.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig87EE4107846917C6E0FBC219" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Subject: Re: upgrading ports with a lot of dependencies X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2012 07:06:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig87EE4107846917C6E0FBC219 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 26/08/2012 06:40, Jim Pazarena wrote: > My question is a general one, with the following specific example. >=20 > I wanted to re-compile the latest phpmyadmin > but when I tried that, I get a "you must have the latest php5" (5.4.6) The phpMyAdmin port only imposes the restriction that you must be running at least version 5 of php. It should work fine with any of lang/php5, lang/php53 or lang/php52. However, if you already had lang/php5 installed from a few months ago, that would predate the switch of that port from php 5.3.x to 5.4.x. This change did necessitate recompiling and reinstalling anything php dependent. Except that there is an alternative: you could switch to using lang/php53 instead. Unfortunately there are no instructions on how to do that without reinstalling everything in /usr/ports/UPDATING: it involves rewriting dependency information stored in /var/db/pkg and other somewhat risque manipulation of port metadata. Unless you know exactly what you're doing, a full-blown upgrade of php is more likely to give you a good result. > when I try php5 > I get a dependency of devel/pkgconf >=20 > when I compile pkgconf, it conflicts with devel/pkg-config Now, this one is covered in UPDATING -- the 20120726 entry to be precise. Follow the instructions there, and you can avoid mass-reinstallation of everything that uses pkg-config / pkgconf (which is basically just about everything.) > Upon investigation it looks like pkg-config is replaced with pkgconf > however attempting to remove it show dozens of dependencies preventing > the removal. >=20 > I find this series of challenges frequently as installs move along > in age, and usually wind up re-loading the entire server to beat the > challenge. >=20 > There must be an easier way. Advice would be greatly appreciated. It's a lot easier if you update your system more frequently. Meaning each update will be smaller and you're less likely to run into a stack of problems all needing to be solved at once. Fortnightly or monthly updates should be sufficient. Also, get in the habit of reading /usr/ports/UPDATING -- it tells you about most of the gotchas, and more importantly, how to deal with them without having to nuke-and-repave. Finally, yes, this is an area where FreeBSD ends up consuming lots of time and CPU power. You might consider trying out pkgng (http://wiki.freebsd.org/pkgng), which is being developed as a solution to this and other problems. pkgng is just coming up to release-1.0: the code is in pretty good shape, but the infrastructure to support general use isn't in place yet. To get round that, try out poudriere as a way of building pkgs off-line and maintaining your own pkgng repository. pkgng makes upgrading even large numbers of ports very much faster. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig87EE4107846917C6E0FBC219 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.16 (Darwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlA5yuwACgkQ8Mjk52CukIxDDACeNDHMTHGE/NIOjvaAsh/LzHPD /UYAn2hp6l0Jfr6Ay+Y17Cq25xCzRD5i =LElk -----END PGP SIGNATURE----- --------------enig87EE4107846917C6E0FBC219--