From owner-freebsd-ports@FreeBSD.ORG Wed Aug 29 00:37:24 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 B807A106564A for ; Wed, 29 Aug 2012 00:37:24 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id 4AEA78FC0A for ; Wed, 29 Aug 2012 00:37:23 +0000 (UTC) Received: by wibhq12 with SMTP id hq12so7111601wib.1 for ; Tue, 28 Aug 2012 17:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bIg0djzaYXMF0fJUxtHTGY16JYvb/CWIruUMn6g71CA=; b=M3uQPhawy78D3y06ZK74u6YZXwV8adpmeW1q4CGjTbAPmRORY4G/qFND7Asq14t3VP tsm9vwtjYKbbPlwJGC57XD5y2o9Dm+dblqtSXModjfj6qRXu7QkMTxFJP1ClmZMEXXdK t7QTo12uJZF9O8m1vBDnF5K73ffoW5Jqq/Hm/iQ8tuaC1FAy4hdlT3jGha5VlZvl9aMk ATY9wBo1HNlwZnYr/Nb0VMd//i2svfICXiPMzWzVuWH9gmecYs8iar4O4mSCbZRdrXnp QJr9pQC4gBK1DT8ROoYS99JUVSSpZ1w5X3g4HDWuRcoSXa4HG6GRgCo96ezC6mPZYPuH tISQ== MIME-Version: 1.0 Received: by 10.180.87.34 with SMTP id u2mr24555810wiz.3.1346200637367; Tue, 28 Aug 2012 17:37:17 -0700 (PDT) Received: by 10.223.63.76 with HTTP; Tue, 28 Aug 2012 17:37:17 -0700 (PDT) In-Reply-To: <503D4B98.1010704@gmx.de> References: <5039B6E9.90503@paz.bz> <503D4B98.1010704@gmx.de> Date: Tue, 28 Aug 2012 17:37:17 -0700 Message-ID: From: Kevin Oberman To: Matthias Andree Content-Type: text/plain; charset=UTF-8 Cc: freebsd-ports@freebsd.org 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: Wed, 29 Aug 2012 00:37:24 -0000 On Tue, Aug 28, 2012 at 3:52 PM, Matthias Andree wrote: > Am 26.08.2012 07:40, schrieb Jim Pazarena: >> My question is a general one, with the following specific example. >> >> 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) >> >> when I try php5 >> I get a dependency of devel/pkgconf >> >> when I compile pkgconf, it conflicts with devel/pkg-config >> >> Upon investigation it looks like pkg-config is replaced with pkgconf >> however attempting to remove it show dozens of dependencies preventing >> the removal. >> >> 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. >> >> There must be an easier way. Advice would be greatly appreciated. > > Beyond what Matthew stated, use an upgrade tool, and do not do upgrades > manually. I found that (a) using portmaster, while at the same time (b) > watching /usr/ports/UPGRADING has given me smooth upgrades. > > portmaster sorts out the "if a requisite port was upgraded, rebuild it > first" and the dependency management hassles. > > There are other tools that I have less experience with. I stopped using > portupgrade a while ago, but now that it has got a new active > maintainer, chances are that a new attempt is worthwhile. And, as I mention rather often, pkg-libchk from sysutils/bsdadminscripts can save you from rebuilding a LOT of ports. pkg_libchk -o | grep LIBNAME | cut -d: -f1 | sort | uniq > dep-ports (where LIBNAM is the sharable (.so) installed by the port in question) portmaster -D `cat dep-ports` -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com