Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 10:39:04 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Jay Moore <jaymo@cromagnon.cullmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: unintelligible questions from pkgdb -F [ part of 5.2 portupgrade hairball ]
Message-ID:  <20040406093904.GD17361@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <200404052159.36889.jaymo@cromagnon.cullmail.com>
References:  <200404052159.36889.jaymo@cromagnon.cullmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040406093904.GD17361>