Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2006 20:06:03 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Luke Dean <LukeD@pobox.com>
Cc:        wc_fbsd@xxiii.com, freebsd-questions@freebsd.org
Subject:   Re: Update from Ports removes dependency data
Message-ID:  <20060405000603.GA87301@xor.obsecurity.org>
In-Reply-To: <20060404150614.T41459@border.crystalsphere.multiverse>
References:  <6.2.5.6.2.20060403135639.033d6db0@xxiii.com> <20060404150614.T41459@border.crystalsphere.multiverse>

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

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 04, 2006 at 04:36:11PM -0700, Luke Dean wrote:
>=20
>=20
> On Mon, 3 Apr 2006, wc_fbsd@xxiii.com wrote:
>=20
> >I recently noticed if I update a package from ports, the package manager=
=20
> >looses the dependency data for the package.  eg:  updating old version o=
f=20
> >gettext
> >
> ># pkg_info -R gett*
> >Information for gettext-0.14.5_1:
> >Required by:
> >libgpg-error-1.1
> >libgcrypt-1.2.2
> >gnutls-1.2.9
> >p5-gettext-1.03
> >gmake-3.80_2
> >
> >[[[ update from ports - make ; make deinstall ; make reinstall ]]]
> >
> ># pkg_info -R gett*
> >Information for gettext-0.14.5_2:
> >
> >Is my procedure incorrect, or is this normal behavior?
> >
> > -Thanks,  Wayne
>=20
> This is normal.  It's what makes upgrading those ports that are required=
=20
> by lots of other ports so difficult.
> Dependency information is version-specific.
>=20
> If you run "pkg_info -r libgpg-error-1.1" you'll find that it still=20
> depends on gettext-0.14.5_1 until you rebuild libgpg-error.
>=20
> Last weekend I wrote some scripts to help me deal with stale dependencies=
=20
> like this.  My code is such an ugly perl hack that I'm ashamed to post it=
,=20
> and my algorithm isn't really airtight, but I'll give you the algorithm=
=20
> I'm using.  The script just uses pkg_info, pkg_version, and grep.

Sounds like you're reinventing the wheel..portupgrade does all this
and more.

Kris

--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFEMwnqWry0BWjoQKURAnW/AKCTlLRsRGUKkvIU9zZWTtMmW1gTzgCff0zD
ErFNBxs62tlLeEyAX4D/GJY=
=qJ2y
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--



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