From owner-freebsd-questions@FreeBSD.ORG Wed Jul 8 01:07:20 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 851C0106566C for ; Wed, 8 Jul 2009 01:07:20 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 12E648FC12 for ; Wed, 8 Jul 2009 01:07:19 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by fxm18 with SMTP id 18so4493896fxm.43 for ; Tue, 07 Jul 2009 18:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7UEmqIU4taR7iXfs4M8G/Z9pDCaEu5KgQeK+V3DUEbs=; b=x2wcWT6ZbJ6tjOKCYSn9JgdhOLUCdgQL6kFn9TE+L75bPdFdsRdoP6v3BTe0hMLZ8g dXZ1hROTDzdeNoVuCy8PWjk9kkFSqWToSz8gfeTo/bBoKPQ/r7sjRf3Ck2YQ5YppcR5/ MHIvF25IU86XieYwCVEs0qwUYXlpI55DW7p0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nujBuK23zQK6AwjhyBNjRyhoZXc3kwbKfXB1swUPcm8JHd0Eh3ur7aRMuMCS6SSnMk T3hapxxoRhUulZHNAOiL1taa4qgimPnHYbYoamnq6HixUxyqYpTRSUraKHwAEqccWV0r 8RLCeW0Xo3j/IM/L8OVB7QV57aiPmN/3fGGLw= MIME-Version: 1.0 Received: by 10.239.142.196 with SMTP id h4mr513674hba.31.1247015238855; Tue, 07 Jul 2009 18:07:18 -0700 (PDT) In-Reply-To: References: <4A53EA20.5090500@shadowlair.com> Date: Wed, 8 Jul 2009 01:07:18 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Portupgrade not handling dependencies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2009 01:07:20 -0000 On 7/8/09, Eric Sheesley wrote: > Well, it has been happening with just about every port(no specific ones) > that have a dependency which is also being built. An example from today: > > ===> Registering installation for libtheora-1.0_1 > ===> Cleaning for libtheora-1.0_1 > ---> Cleaning out obsolete shared libraries > [Updating the pkgdb in /var/db/pkg ... - 456 packages > found (-0 +1) . done] > ---> Skipping 'multimedia/ffmpeg' (ffmpeg-2008.07.27_10) because a > requisite package 'libtheora-1.0' () failed (specify -k to force) > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > - (bsdpan-Acme-Damn-0.04) > * multimedia/ffmpeg (ffmpeg-2008.07.27_10) > %portupgrade -a > ---> Skipping 'bsdpan-Acme-Damn-0.04' because it is held by user > (specify -f to force) > ---> Upgrading 'ffmpeg-2008.07.27_10' to 'ffmpeg-2008.07.27_11' > (multimedia/ffmpeg) > ---> Building '/usr/ports/multimedia/ffmpeg' > I see. In the default /usr/local/etc/pkgtools.conf, there is a sample line (not commented out) that places any port that matches the glob bsdpan-* in HOLD_PKGS, meaning that portupgrade will refuse to handle it. Presumably this is so users can manage their own local tree of Perl ports that aren't in the regular ports tree. I don't do this, so I'm not familiar with how the two interact. But portupgrade seems to have done the right thing here: in the snippet you gave us, it ignored bsdpan-Acme-Damn and proceeded to begin building ffmpeg after updating libtheora -- the only problem seems to be that in the intermediate summary it lists ffmpeg, erroneously, as having been skipped -- but that seems to just be a cosmetic problem, because it then proceeds to start updating it. If later on it refuses to update it, then you've got a problem. In that case, you should try running pkgdb -L pkgdb -F to make sure that your pkgdb is in good shape, and then try your updates again. You might also try instead something like: portupgrade -ax bsdpan-* If that doesn't work, then you may either have to rip out your bsdpan-* ports, or just use a another tool for updating -- portmaster, for example. Or you can roll your own. b.