From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 02:39:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A02F16A4CE for ; Tue, 6 Apr 2004 02:39:57 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 758A343D1D for ; Tue, 6 Apr 2004 02:39:56 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i369d5tN018206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Apr 2004 10:39:05 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i369d44X018205; Tue, 6 Apr 2004 10:39:04 +0100 (BST) (envelope-from matthew) Date: Tue, 6 Apr 2004 10:39:04 +0100 From: Matthew Seaman To: Jay Moore Message-ID: <20040406093904.GD17361@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Jay Moore , freebsd-questions@freebsd.org References: <200404052159.36889.jaymo@cromagnon.cullmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WChQLJJJfbwij+9x" Content-Disposition: inline In-Reply-To: <200404052159.36889.jaymo@cromagnon.cullmail.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a cc: freebsd-questions@freebsd.org Subject: Re: unintelligible questions from pkgdb -F [ part of 5.2 portupgrade hairball ] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 09:39:57 -0000 --WChQLJJJfbwij+9x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 05, 2004 at 08:59:35PM -0600, Jay Moore wrote: > So portupgrade prompted me to run 'pkgdb -F'... to fix a "stale" dependen= cy. I=20 > complied, typed the requisite command at the prompt, and received the=20 > following in return: >=20 > ---> Checking the package registry database > Stale dependency: eel2-2.4.1 -> gtk-2.2.4_1 (x11-toolkits/gtk20): > gtk-1.2.10_11 (score:61%) ? ([y]es/[n]o/[a]ll) [no] > New dependency? (? to help): ? > [Enter] to skip, [Ctrl]+[D] to delete, [.][Enter] to abort, [Tab] to=20 > complete > New dependency? (? to help): . > Abort. >=20 > What is this "score" business? 61% of what, exactly? >=20 > And what are you telling the program to do exactly when you answer Yes, N= o or=20 > All? >=20 > And New dependency?... what does that mean? >=20 > If there are any docs on this, please supply a pointer. I read the pkgdb = man=20 > page, but it shed little light on these questions. What this means is that the eel2-2.4.1 port claims to have a dependency on the gtk-2.2.4_1 port, but no such port is installed -- it's listed in the file: /var/db/pkg/eel2-2.4.1/+CONTENTS pkgdb(1) attempts to find an alternative port that will fulfill the dependency, which it can edit into the +CONTENTS file. Unfortunately, pkgdb is not any sort of AI program, so it prompts you with the closest matching name out of all the ports you have installed. The percentage figure it gives is a measure of how closely the port name matches the desired name. Usually this works well, because it picks up a slightly different version of the same port. However, in this case things are not quite so simple. pkgdb is prompting you to replace the dependency on gtk20 with a dependency on gtk12, and that simply will not do. gtk20 and gtk12 are completely different ports: both from the same project and development track, but the later release (gtk20) is not code compatible with gtk12, so ports that depend on gtk have to be modified to use one or the other. That's why there are two separate ports: x11-toolkits/gtk12 and x11-toolkits/gtk20, and why some effort has been taken to let you install both of those ports simultaneously. Now, in order to solve the pkgdb problem you have, you can either: * Delete the dependency on gtk20 by hitting Ctrl-D at that prompt then do a forced update on eel2 and gtk20: # portupgrade -f x11-toolkits/eel2 x11-toolkits/gtk20 (which should get you a nice clean +CONTENTS file for eel2 with the correct dependency on gtk20) - or - * Quit out of pkgdb(1) without changing anything, and force an install of gtk20 without using any of the pkgtools stuff: # cd /usr/ports/x11-toolkits/gtk20 # make install Then re-run pkgdb(1), and it will be able to resolve that gtk dependency automatically. You should also take note of the entry in /usr/ports/UPDATING: 20040404: AFFECTS: GNOME desktop users GNOME has been updated to 2.6. Simply portupgrading will cause serious problems if you are using the desktop itself. If you are a GNOME desktop user, you should carefully read the instructions at: http://www.freebsd.org/gnome/docs/faq26.html And use the gnome_upgrade.sh script to properly upgrade to GNOME 2.6. If you are just a casual user of some of the GNOME libraries, portupgrade should be sufficient to update your ports. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --WChQLJJJfbwij+9x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAcnq4dtESqEQa7a0RAsVsAKCbg2FBdHIyC8+aCeADJZJXKMGdrgCfdcyv fQHTyj4HQsnkXAEK32wSldw= =LPfP -----END PGP SIGNATURE----- --WChQLJJJfbwij+9x--